Solr home directory not found

2.3k Views Asked by At

After I change owner of Solr core directory in /var/solr/data I cannot start solr service again.

su[1706]: Solr home directory /var/solr/data not found!
su[1706]: pam_unix(su:session): session closed for use...lr
systemd[1]: solr.service: control process exited, code...=1
systemd[1]: Failed to start LSB: Controls Apache Solr ...e.
systemd[1]: Unit solr.service entered failed state.

How to reset owner of that directory?

I have changed owner to root, but solr keep show this error.

1

There are 1 best solutions below

1
On

yeah, it is better (required for many dirs) for solr process to be the owner of those dirs. Do this and restart:

sudo chown -R solr:solr /var/solr/data