Bug#933857: solr-jetty: Jetty lacks necessary write permissions to /var/lib/solr/data/index/

J.P. Larocque jpl-debian-bts at thoughtcrime.us
Mon Sep 2 03:47:48 BST 2019


stephan, thanks for tracking this down.  I almost figured it out, and
then I found that you already reported this bug.  Your other bug
report was also super helpful for me to get Solr working after my
upgrade to Buster.

On Sun, Aug 04, 2019 at 03:31:52PM +0200, beirer wrote:
> The fix is also similar:
> 
> Copy /lib/systemd/system/jetty9.service to /etc/systemd/system and modify
> it by adding
> 
> ReadWritePaths=/var/lib/solr/data
> 
> to the # Security paragraph.

I found that adding a file
/etc/systemd/system/jetty9.service.d/override.conf (and making its
parent directory, both via `systemctl edit jetty9`) with these
contents allowed me to append to the ReadWritePaths list, overriding
just the right part to get Solr to work under Jetty:

-----
[Service]
ReadWritePaths=/var/lib/solr/data/
-----

Debian Java Maintainers, is there a sensible way to ship a systemd
override file like this with solr-jetty?  (The right path for such a
packaged override file might be under /lib/systemd/ somewhere, because
I think /etc/systemd/ is reserved for user-made customizations.)

-- 
J.P. Larocque <jpl-debian-bts at thoughtcrime.us>



More information about the pkg-java-maintainers mailing list