I\'m getting this error when I try to create a new core in solr.
root@ubuntu:/opt/solr# bin/solr create -c gettingstarted -n data_driven_schema_configs
Setup n
Since it might help anybody with the same issue, it's indeed caused by permission issues when using root
. The script doesn't terminate quickly when executing the command as root and instead creates a piece of the core definition before failing.
So first cleanup the broken core:
bin/solr delete -c mycore
Make sure that no folder(s) linger under /var/solr/data
for your mycore
core.
Next create the core as the solr
user
su -u solr -c "/opt/solr/bin/solr create_core -c mycore"
This time it should succeed