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
Don't run solr script as root user (it is not recommended). You should run as solr user, e.g.:
solr
root
sudo -u solr ./bin/solr create -c mycore