Solved apache-solr error

Hello,

I am trying to setup textproc/apache-solr on my server. The package instructions suggest to do the following:
Code:
To have a working initial config, use:

cp -R /usr/local/solr/example/example-DIH/solr/solr /var/db/solr/
chown -R www /var/db/solr/solr

With the above changes I do get a server running on port 8983. However, the webpage gives an error:
Code:
solr: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: java.nio.file.AccessDeniedException: /var/db/solr/solr/data

I suspect this because the solr process is running as user 'solr' rather than 'www'. How can I change the owner:group of the solr service to www:www?

Thanks
 
My guess is that the www user has access to /var/db/solr/solr but not /var/db/solr/solr/data. But if you're sure the process runs as solr then I'd give the solr user access to /var/db/solr/solr/data.
 
Back
Top