Been trying to get solr running for a while now... finally seemed like I got it. Following this tutorial. Ran this command
bin/solr start
And saw this text
Waiting up to 30 seconds to see Solr running on port 8983
But then...
Still not seeing Solr listening on 8983 after 30 seconds!
tail: cannot open `/root/downloads/solr-6.0.0/server/logs/solr.log' for reading: No such file or directory
This is getting highly frustrating. I tried to run the bin command with sudo, still no luck. What am I doing wrong?
EDIT : I ran it in the foreground with
bin/solr start -f
and got this
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jetty/start/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)
My java-foo is not up to par, so I have no idea what to make of this.
Had to update to java 1.8 This was useful
I faced the same issue. Make sure these are set
java -version
outputs
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
and
echo $JAVA_HOME
outputs
/usr/lib/jvm/java-8-oracle
Note: The minor version of java and java home path may change from system to system. But make sure they are of the same version(Java 8).
Please check your /var/solr/logs/solr_gc.log and see which version of java it has used to install/start solr. In my case, though these parameters were set, it was using java 7. So I uninstalled java 7 and started solr again. It started working
Waiting up to 30 seconds to see Solr running on port 8983 [/]
Started Solr server on port 8983 (pid=11983). Happy searching!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With