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?
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.
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: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:If it is running, you should see something like this in the output:
If not, it should be safe to remove the file: