How to fix: Error CREATEing SolrCore 'gettingstarted': Unable to create core

后端 未结 7 2000
时光说笑
时光说笑 2021-02-01 05:44

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         


        
7条回答
  •  广开言路
    2021-02-01 05:49

    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

提交回复
热议问题