This question about Using an extension: Answered
Configuration issues - can't find server, etc
I have installed
SolrPlugin and the Java runtime from SVN.
I am using the recommended
localhost
URL.
1. The SOLR server is running
ps auxw | grep solr
root 72409 0.0 0.6 2956448 81740 s001 R 11:59AM 0:02.92 /usr/bin/java -Dsolr.solr.home=multicore -jar start.jar
2. System.SolrSearch says
cannot connect to the server
3.
http://localhost:8983/solr
says "Welcome to solr" and provides a link to
Solr Admin
4. The
Solr Admin
link on that page gives a 404 error and says "missing core name in path".
5. According to the
docs, the default core is foswiki, and I should be able to access the admin consol at
http://localhost:8983/solr/foswiki/admin
but that presents a 404 error. (ref
Support/Question1134)
NOT_FOUND
RequestURI=/solr/foswiki/admin/
Apparently something is misconfigured. As I am using the default configuration, I'm at a loss as to what I should change or review.
--
VickiBrown - 24 Jul 2012
Whats in the solr logs?
--
OliverKrueger - 26 Jul 2012
In the
request.log
I have
127.0.0.1 - - [26/07/2012:03:21:01 +0000] "GET /solr/admin/ping?wt=json HTTP/1.1" 404 1408
In the
stderrout.log
I have
2012-07-25 20:20:57.305::WARN: /solr/admin/ping
java.lang.IllegalStateException: STREAM
both of which make sense since it can't connect. But neither gives a clue as to what I need to do to make the connection.
--
VickiBrown - 28 Jul 2012
Just those two lines? - Do you have more context? - Do you start your solr server via tools/solrstart? If yes, try
java -Dsolr.solr.home=multicore -jar start.jar
instead of
nohup java -Dsolr.solr.home=multicore -jar start.jar >/dev/null &
That should print more logs to stdout/stderr.
--
OliverKrueger - 28 Jul 2012
Yes, just those two lines.
I use
tools/solrstart
, which I have modified to remove both the
nohup
and the
>/dev/null
. The only obvious error is that it cannot connect to the server. Probably because the /admin directory does not exist. I don't know
why the admin directory does not exist, hence this question.
--
VickiBrown - 01 Aug 2012
According to
http://localhost:8983
:
/solr ---> org.mortbay.jetty.webapp.WebAppContext@2b68989e{/solr,jar:file:/Volumes/Datastore/Local/WWW/web/cfcl/Foswiki-1.1.4/solr/webapps/solr.war!/}
solr.war
is a file.
I also see, in my Foswiki
solr/work
directory:
Jetty_localhost_8983_solr.war__solr__sr8jbf
I have an admin dir below this:
./Jetty_localhost_8983_solr.war__solr__sr8jbf/webapp/admin
Is this "the" admin directory I should be getting to through the web interface?
I'm also seeing what appear to be errors in the log file:
Note that I have successfully installed and run SOLR and its
example
from the
lucene.apache.org/solr
, so I should have an "typical" Java configuration. But it looks like libraries are missing?
--
VickiBrown - 08 Aug 2012
Vicki, it seems you are using an old solr distribution lacking the
ClassicTokenizerFactory
. The server then shuts down. Therefore the 404 as it isn't there anymore.
Please go to
http://lucene.apache.org/solr/downloads.html and download and install the software. Do
NOT use the
tools/solrstart
approach to start the solr server. This is not recommended. Instead, use a tomcat or jetty servlet container controlled by your server's init process. Deploy solr there by copying the solr.war file to the webapps directory. Set the
solr.home
to the full path to where your multicore/...
--
MichaelDaum - 08 Aug 2012