dwradcliffe / chef-solr

Chef cookbook for solr.
http://community.opscode.com/cookbooks/solr
MIT License
23 stars 39 forks source link

Core auto detection not working #10

Open gerard76 opened 9 years ago

gerard76 commented 9 years ago

If I create a core in /etc/solr/ and add it in the interface. It is gone after a solr restart.

If I skip the SOLR_HOME argument in the startup script and run everything from that example directory and put cores in example/etc/ my cores are auto detected on start of the server.

gerard76 commented 9 years ago

Settings data_dir to: '/opt/solr-4.6.1/example/solr' solves this problem. I am guessing this is a solr issue though.

I can now create a core by copying /opt/solr-4.6.1/example/solr/collection1 to /opt/solr-4.6.1/example/solr/new_core and change the name in /opt/solr-4.6.1/example/solr/new_core/core.properties and restart solr.

twistedgrim commented 9 years ago

It has to do with the solr_dir being set to /opt/solr when the default location solr is installed to is /opt/solr-#version. It can be fixed by adding the 'ark' cookbook to help version the installs. Seems this repo is neglected for a bit though.