Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
Solved by setting a SOLR_PID_DIR path in my solr.in.sh. And then giving the solr user ownership of that directory. Thanks On Thu, Oct 15, 2020 at 11:17 AM Alexandre Rafalovitch wrote: > If the .pid file is not at that location, then I would investigate > where that file is instead (after Solr

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Alexandre Rafalovitch
If the .pid file is not at that location, then I would investigate where that file is instead (after Solr is started). If it is in a different location, then you have different environment expectations, somehow. This, in all honesty, would still be consistent with my theory that Solr was started s

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Joe Doupnik
    Ah so, systemd style. I suggestion which might help. Look at the /etc/init.d style script in the Solr distribution and uses its commands as a reference when you review the systemd equivalents. In addition, a prerequisite is choosing the user+group for Solr files, applying ownership of those

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
The .pid file referenced in the "Permission denied" message does not exist. On Thu, Oct 15, 2020 at 11:01 AM Ryan W wrote: > I have been starting solr like so... > > service solr start > > > On Thu, Oct 15, 2020 at 10:31 AM Joe Doupnik wrote: > >> Alex has it right. In my environment I cre

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
I have been starting solr like so... service solr start On Thu, Oct 15, 2020 at 10:31 AM Joe Doupnik wrote: > Alex has it right. In my environment I created user "solr" in group > "users". Then I ensured that "solr:user" owns all of Solr's files. In > addition, I do Solr start/stop with a

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Joe Doupnik
    Alex has it right. In my environment I created user "solr" in group "users". Then I ensured that "solr:user" owns all of Solr's files. In addition, I do Solr start/stop with an /etc/init.d script (the Solr distribution has the basic one which we can embellish) in which there is control line

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Alexandre Rafalovitch
It sounds like maybe you have started the Solr in a different way than you are restarting it. E.g. maybe you started it manually (bin/solr start, probably as a root) but are trying to restart it via service script. Who owned the .pid file? I am guessing 'root', while the service script probably run