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?

muru
  • 207,228

3 Answers3

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/

Zanna
  • 72,312
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.

anand
  • 111
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

Ashu
  • 4,004