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
I found this as the solution:
sudo su - solr -c "/opt/solr/bin/solr create -c mycore"
More information here: https://www.howtoforge.com/tutorial/how-to-install-and-configure-solr-on-ubuntu-1604/