You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thomas Fischer <fi...@aon.at> on 2014/03/03 17:02:37 UTC

Configuration problem

Hello,

for some reason I have problems to get my local solr system to run (MacBook, tomcat 6.0.35).

The setting is
solr directories (I use different solr versions at the same time):
/srv/solr/solr4.6.1 is the solr home, in solr home is a file solr.xml of the new "discovery type" (no cores), and inside the core directories are empty files core.properties and symbolic links to the universal conf directory.
 
solr webapps (I use very different webapps simultaneously):
/srv/www/webapps/solr/solr4.6.1 is the solr webapp

I tried to convey this information to the tomcat server by putting a file solr4.6.1.xml into the cataiina/localhost folder with the contents
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/srv/www/webapps/solr/solr4.6.1" debug="0" crossContext="true">
	<Environment name="solr/home" type="java.lang.String" value="/srv/solr/solr4.6.1" override="true"/>
</Context>

The Tomcat Manager shows solr4.6.1 as started, but following the given link gives an error with the message:
"SolrCore 'collection1' is not available due to init failure: Could not load config file /srv/solr4.6.1/collection1/solrconfig.xml"
which is plausible, since
1. there is no folder /srv/solr4.6.1/collection1 and
2.for the actual cores solrconfig.xml is inside of /srv/solr4.6.1/cores/geo/conf/

But why does Tomcat try to find a solrconfig.xml there?
The problem persists if I start tomcat with -Dsolr.solr.home=/srv/solr/solr4.6.1, it seems that the system just ignores the solr home setting.

Can somebody give me a hint what I'm doing wrong?

Best regards
Thomas

P.S.: Is there a way to stop Tomcat from throwing these errors into my face threefold: once as heading (<h1>!), once as message and once as description?



Re: Configuration problem

Posted by Shawn Heisey <so...@elyograg.org>.
On 3/3/2014 9:02 AM, Thomas Fischer wrote:
> The setting is
> solr directories (I use different solr versions at the same time):
> /srv/solr/solr4.6.1 is the solr home, in solr home is a file solr.xml of the new "discovery type" (no cores), and inside the core directories are empty files core.properties and symbolic links to the universal conf directory.
>   
> solr webapps (I use very different webapps simultaneously):
> /srv/www/webapps/solr/solr4.6.1 is the solr webapp
>
> I tried to convey this information to the tomcat server by putting a file solr4.6.1.xml into the cataiina/localhost folder with the contents
> <?xml version="1.0" encoding="utf-8"?>
> <Context docBase="/srv/www/webapps/solr/solr4.6.1" debug="0" crossContext="true">
> 	<Environment name="solr/home" type="java.lang.String" value="/srv/solr/solr4.6.1" override="true"/>
> </Context>

Your message is buried deep in another message thread about NoSQL, 
because you replied to an existing message rather than starting a new 
message to solr-user@lucene.apache.org.  On list-mirroring forums like 
Nabble, nobody will even see your message (or this reply) unless they 
actually open that other thread.  This is what it looks like on a 
threading mail reader (Thunderbird):

https://www.dropbox.com/s/87ilv7jls7y5gym/solr-reply-thread.png

I don't use Tomcat, so I can't even begin to comment on that.  I can 
talk about your solr home setting and what Solr is going to do with that.

You probably do not have /srv/solr/solr4.6.1/solr.xml on your system.  
Solr will look for solr.mxl in your solr home, and if it cannot find it, 
it assumes that you are not running multicore, so it look for things 
like collection1/conf/solrconfig.xml instead.

There is a solr.xml in the example.  Use that, changing as necessary, or 
create a solr.xml file with just the following line in it.  It will 
probably start working:

<solr/>

You *might* need the following instead, but since Solr uses standard XML 
parsing libraries, I would guess that the above line will work.

<solr>
</solr>

Thanks,
Shawn