3

solr-5.2.1 version

My Java version:

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

I used this url to install solr, did all steps but after

sudo service solr start

Waiting up to 30 seconds to see Solr running on port 8983
Still not seeing Solr listening on 8983 after 30 seconds!

finally am getting this error:

tail: cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory

I created the touch solr.log file. but will start the solr log file is removed.

How to fix this error?

  • just had the same problem, and it appears to be because of a JVM option... you can check solr-xxxx-console.log to see if jvm is not starting up due to an option problem – denizdurmus Feb 18 '16 at 1:24
2

Just update java version to java 8

Run command:

sudo bin/solr start

For example:

Vostro-3550:/opt/solr-6.0.0$ sudo bin/solr start

Then open browser and the past: http://localhost:8983/solr/

  • I fixed this issue . my server don't have memory so solr is not worked . after update the memory its worked perfectly . – Dinesh Kumar May 28 '16 at 5:15
  • D'oh! I just realized I was still running Java 7 on the server that was running into this same error. I re-provisioned the server (CentOS 7) using the java-1.8.0-openjdk package and now everything's working. – geerlingguy Jul 24 '16 at 4:14
1

I also faced exactly same problem :

  cannot open ‘/var/solr/logs/solr.log’ for reading: No such file or directory

  Found 1 Solr nodes: 

  Solr process pid from /var/solr/solr-8983.pid not found.
  Service solr installed.

in my case its because of low memory available. I found the prove in kern.log
Out of memory: Kill process pid () score 227 or sacrifice child . and it worked when I increased the RAM size.

0

Which version of solr you are using? I am using solr5.4 and it's working all fine

root@ashu-700-430qe:/opt/solr-5.4.0# bin/solr start
Waiting up to 30 seconds to see Solr running on port 8983 [/]  
Started Solr server on port 8983 (pid=5509). Happy searching!

root@ashu-700-430qe:/opt/solr-5.4.0# 

I am also using Oracle Java 8

enter image description here

And my logs are also working fine. Here is the listing with permissions:

root@ashu-700-430qe:/opt/solr-5.4.0/server/logs# ls -lrt
total 176
-rw-r--r-- 1 root root 41795 Jan 10 08:02 solr_log_20160216_2032
-rw-r--r-- 1 root root 49305 Jan 10 08:02 solr_gc_log_20160216_2032
-rw-r--r-- 1 root root 26960 Feb 16 20:33 solr_gc.log
-rw-r--r-- 1 root root 25547 Feb 16 20:33 solr.log
-rw-r--r-- 1 root root 22764 Feb 16 20:33 solr-8983-console.log
root@ashu-700-430qe:/opt/solr-5.4.0/server/logs# 

P.S. I install good amount of tools as root as I do a lot of evaluations. I just downloaded the solr5.4 zip file and unzipped into /opt - very much OOTB installation with no setup or configuration. You can install Apache SOLR from here

  • my server is digital ocean 1. wget archive.apache.org/dist/lucene/solr/5.4.0/solr-5.4.0.tgz 2. tar xzf solr-5.4.0.tgz solr-5.4.0/bin/install_solr_service.sh --strip-components=2 3. sudo bash ./install_solr_service.sh solr-5.4.0.tgz sudo bash ./install_solr_service.sh solr-5.4.0.tgz Extracting solr-5.4.0.tgz to /opt Installing symlink /opt/solr -> /opt/solr-5.4.0 ... Installing /etc/init.d/solr script ... Moving existing /var/solr/solr.in.sh to /etc/default/solr.in.sh ... /var/solr/data/solr.xml already exists. Skipping install ... – Dinesh Kumar Feb 17 '16 at 16:05
  • Found 1 Solr nodes: Solr process 990 from /var/solr/solr-8983.pid not found. Service solr installed. root@dindudu:/opt# sudo service solr status Found 1 Solr nodes: Solr process 990 from /var/solr/solr-8983.pid not found. – Dinesh Kumar Feb 17 '16 at 16:05
  • @DineshKumar. What does that mean? Sorry i couldn't get it. I am starting solr as a root and all my solr directories are owned by root. This is OOTB solr installation..it works for me in linux as well as in Mac and Windows. – Ashu Feb 17 '16 at 16:05
  • Y am getting this error sudo service solr status Found 1 Solr nodes: Solr process 990 from /var/solr/solr-8983.pid not found. – Dinesh Kumar Feb 18 '16 at 1:59
  • Your Flow am getting this error bin/solr start Waiting up to 30 seconds to see Solr running on port 8983Still not seeing Solr listening on 8983 after 30 seconds! tail: [-] cannot open ‘/opt/solr-5.4.0/server/logs/solr.log’ for reading: No such file or directory – Dinesh Kumar Feb 18 '16 at 2:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.