Adnan
Adnan

Reputation: 97

Solr home directory not found

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.

Upvotes: 0

Views: 2510

Answers (1)

Persimmonium
Persimmonium

Reputation: 15789

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

Upvotes: 1

Related Questions