Comments (8)
Did you have Solr running on these boxes prior to installing this script? It will look for /var/run/solr.pid when you run the start command, if that file already existed you would get this message.
from solr-initd.
I'll give it a shot and reply back with my results
from solr-initd.
There is not a pid file for solr beforehand
from solr-initd.
This is very strange. It seems as if I have to wait a certain amount of time after running chkconfig. I ran chkconfig through fabric, then ssh'd into the box and manually started it and it worked.
from solr-initd.
Can you post the fabric script?
from solr-initd.
The whole thing is huge. I'll just post the necessary area
# place init script for solr
put('install/solr.initd', '/etc/init.d/solr', use_sudo=True)
put('install/solr.start', '/opt/solr/example/solr.start')
put('install/solr.conf', '/etc/solr.conf', use_sudo=True)
sudo('chmod +x /etc/init.d/solr')
sudo('chmod +x /opt/solr/example/solr.start')
append('/etc/profile', 'export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre', use_sudo=True)
sudo('sudo chkconfig --add solr')
sudo('service solr start')
The file has already been configured
EDIT*
It's not a matter of time. If I'm ssh'd into the box and run service solr start
directly after the fabfile finishes, it works correctly.
from solr-initd.
I'm assuming the problem occurs on the last line? I only have a centos 5 VM to test on right now and I can't recreate issue. I have a centos 6 VM at home, I'll have a look tonight. In the mean time if you find the solution please let me know.
from solr-initd.
I'm closing this, as I'm unable to recreate it.
from solr-initd.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solr-initd.