lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaeger, Jay - DOT" <Jay.Jae...@dot.wi.gov>
Subject RE: Unable to get multicore working
Date Tue, 16 Aug 2011 20:10:30 GMT
Perhaps your admin doesn’t work because you don't have defaultCoreName="whatever-core-you-want-by-default"
in your <cores> tag?  E.g.:

	<cores adminPath="/admin/cores" defaultCoreName="collection1">

Perhaps this was enough to prevent it starting any cores -- I'd expect a default to be required.

Also, from experience, if you add cores, and you have security turned on, you probably need
to modify web.xml to teach it about them, so it maps the URLs to the right place with the
right security.

Finally, check your logs to make sure that Solr isn't complaining about something else (like
not having a defaultCoreName, for instance)


-----Original Message-----
From: David Sauve [mailto:dnsauve@gmail.com] 
Sent: Tuesday, August 16, 2011 3:02 PM
To: solr-user@lucene.apache.org
Subject: Unable to get multicore working

I've been trying (unsuccessfully) to get multicore working for about a day and a half now
I'm nearly at wits end and unsure what to do anymore. **Any** help would be appreciated.

I've installed Solr using the solr-jetty packages on Ubuntu 10.04. The default Solr install
seems to work fine.

Now, I want to add three cores: live, staging, preview to be used for the various states of
the site.

I've created a `solr.xml` file as follows and symlinked it in to /usr/share/solr: 

<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="false">
<cores adminPath="/admin/cores">
<core name="preview" instanceDir="/home/webteam/config/search/preview" dataDir="/home/webteam/preview/data"
/>
<core name="staging" instanceDir="/home/webteam/config/search/staging" dataDir="/home/webteam/staging/data"
/>
<core name="live" instanceDir="/home/webteam/config/search/live" dataDir="/home/webteam/live/data"
/>
</cores>
</solr>

Now, when I try to view any cores, I get a 404 - Not found. In fact, I can't even view /solr/admin/
anymore after installing that `solr.xml` file.

Also, /solr/admin/cores returns an XML file, but it looks to me like there's no cores listed.
The output:

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>

</lst>


<lst name="status"/>

</response>


Finally, looking through the logs produced by Jetty doesn't seem to reveal any clues about
what is wrong. There doesn't seem to be any errors in there, except the 404s.

Long story short. I'm stuck. Any suggestions on where to go with this?

David 

Mime
View raw message