Failed changing permissions of directory "/usr/lib64/netopeer2-server" (Read-only file system) #1619
Labels
is:bug
Bug description.
status:completed
From the developer perspective, the issue was solved (bug fixed, question answered,...)
Hey,
I encountered a problem with netopeer2-server-2.1.71-1.el8.x86_64
I don't know if this is an issue with this repo or someone elses build configuration, as I have a hard time finding out who built this package and what the configuration was (see SERVER_DIR below).
But maybe you can enlighten me.
When using a request that changes the candidate target and then commits:
The following error is logged:
I managed to track down the error to the following line in the systemd unit file:
netopeer2/distro/pkg/rpm/netopeer2-server.service
Line 11 in 1e639fe
which mounts /usr read only:
in combination with SERVER_DIR being
/usr/lib64/netopeer2-server
in that build (I don't know if that comes from your repo or the distro build config), the directory cannot be written/created/chmodded.This:
netopeer2/CMakeLists.txt
Line 117 in 1e639fe
looks like it should be set to /var/netopeer2 instead, but it seems like it is not..
I guess
netopeer2/distro/pkg/rpm/netopeer2.spec
Line 68 in 1e639fe
is the culprit, maybe this should not use
_libdir
, but some/var
-like directory, like in the debian build:netopeer2/distro/pkg/deb/rules
Line 21 in 1e639fe
Changing server_dir via the -f option (or, less safe, changing ProtectSystem from yes to no) is a usable workaround for now.
The text was updated successfully, but these errors were encountered: