Question

Solr installtion is not working ubuntu

solr installation error

after installation am getting error root@dindudu:/opt# ls installsolrservice.sh solr-5.2.1.tgz root@dindudu:/opt# sudo bash ./installsolrservice.sh solr-5.2.1.tgz Extracting solr-5.2.1.tgz to /opt Creating /etc/init.d/solr script … System start/stop links for /etc/init.d/solr already exist. Waiting to see Solr listening on port 8983 [/] Still not seeing Solr listening on 8983 after 30 seconds! tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory

Found 1 Solr nodes:

Solr process 12410 from /var/solr/solr-8983.pid not found. Service solr installed. root@dindudu:/opt# sudo service solr status

Found 1 Solr nodes:

Solr process 12410 from /var/solr/solr-8983.pid not found. root@dindudu:/opt# service solr start Waiting to see Solr listening on port 8983 [/] Still not seeing Solr listening on 8983 after 30 seconds! tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory root@dindudu:/opt# /etc/init.d/solr status

Found 1 Solr nodes:

Solr process 12855 from /var/solr/solr-8983.pid not found. How to fix this error?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Judging from the error messages, it sounds like Solr was previously installed. In that case, you can reinstall over the old installation by adding the -f flag to the installation command. E.g:

sudo bash ./install_solr_service.sh solr-5.5.1.tgz -f

It also seems that there is a stale pid file sitting around. Normally the existence of /var/solr/solr-8983.pid would imply that Solr was actively running, but as the process it refers to doesn’t seem to exist, it might have shutdown uncleanly or crashed. You may need to remove that file before reinstalling. First check to see if Solr is really running. Run the command:

ps aux | grep solr

If it is running, you should see something like this in the output:

solr     32127  1.2 15.3 2499684 155976 ?      Sl   16:14   0:05 java -server -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/var/solr/logs/solr_gc.log -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/opt/solr/server -Dsolr.solr.home=/var/solr/data -Dsolr.install.dir=/opt/solr -Dlog4j.configuration=file:/var/solr/log4j.properties -Xss256k -XX:OnOutOfMemoryError=/opt/solr/bin/oom_solr.sh 8983 /var/solr/logs -jar start.jar --module=http

If not, it should be safe to remove the file:

sudo rm /var/solr/solr-8983.pid