Package: sysrepo-plugind
Version: 1.4.70-4
Severity: grave

Appears to be due to this error when the error starts:

sysrepo-plugind error: Creating plugins dir
"/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed (Read-only file system).

Should this directory be created as part of the debian package installed?
(or if the plugin directory contains runtime generated data, should
-DPLUGINS_PATH be set to something under /var/ instead of default?
Somewhat related; should -DREPO_PATH be set to be under /var instead of
it's default under /etc as again it might contain runtime generated
content?)

-----

$ sudo apt install sysrepo-plugind
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libsysrepo5 libyang1
The following NEW packages will be installed:
  libsysrepo5 libyang1 sysrepo-plugind
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 605 kB of archives.
After this operation, 1,757 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bullseye/main amd64 libyang1 amd64
1.0.225-1.1 [452 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libsysrepo5 amd64
1.4.70-4 [143 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 sysrepo-plugind
amd64 1.4.70-4 [10.8 kB]
Fetched 605 kB in 0s (2,654 kB/s)
Selecting previously unselected package libyang1.
(Reading database ... 70421 files and directories currently installed.)
Preparing to unpack .../libyang1_1.0.225-1.1_amd64.deb ...
Unpacking libyang1 (1.0.225-1.1) ...
Selecting previously unselected package libsysrepo5:amd64.
Preparing to unpack .../libsysrepo5_1.4.70-4_amd64.deb ...
Unpacking libsysrepo5:amd64 (1.4.70-4) ...
Selecting previously unselected package sysrepo-plugind.
Preparing to unpack .../sysrepo-plugind_1.4.70-4_amd64.deb ...
Unpacking sysrepo-plugind (1.4.70-4) ...
Setting up libyang1 (1.0.225-1.1) ...
Setting up libsysrepo5:amd64 (1.4.70-4) ...
Setting up sysrepo-plugind (1.4.70-4) ...
Created symlink
/etc/systemd/system/multi-user.target.wants/sysrepo-plugind.service →
/lib/systemd/system/sysrepo-plugind.service.
Processing triggers for libc-bin (2.31-13+deb11u2) ...

$ sudo systemctl status sysrepo-plugind
● sysrepo-plugind.service - YANG-based configuration and operational state
data store
     Loaded: loaded (/lib/systemd/system/sysrepo-plugind.service; enabled;
vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2021-10-19 16:05:51 BST;
2s ago
    Process: 1234109 ExecStart=/usr/bin/sysrepo-plugind -d -v 2
(code=exited, status=1/FAILURE)
   Main PID: 1234109 (code=exited, status=1/FAILURE)
        CPU: 9ms

Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 5.
Oct 19 16:05:51 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Start request
repeated too quickly.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: Failed to start YANG-based configuration
and operational state data store.

$ sudo journalctl -u sysrepo-plugind.service --no-pager
Oct 19 16:05:50 dev systemd[1]: Started YANG-based configuration and
operational state data store.
Oct 19 16:05:50 dev sysrepo-plugind[1234016]: sysrepo-plugind error:
Creating plugins dir "/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed
(Read-only file system).
Oct 19 16:05:50 dev systemd[1]: sysrepo-plugind.service: Main process
exited, code=exited, status=1/FAILURE
Oct 19 16:05:50 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:50 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 1.
Oct 19 16:05:50 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:50 dev systemd[1]: Started YANG-based configuration and
operational state data store.
Oct 19 16:05:50 dev sysrepo-plugind[1234099]: sysrepo-plugind error:
Creating plugins dir "/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed
(Read-only file system).
Oct 19 16:05:50 dev systemd[1]: sysrepo-plugind.service: Main process
exited, code=exited, status=1/FAILURE
Oct 19 16:05:50 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 2.
Oct 19 16:05:51 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev systemd[1]: Started YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev sysrepo-plugind[1234102]: sysrepo-plugind error:
Creating plugins dir "/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed
(Read-only file system).
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Main process
exited, code=exited, status=1/FAILURE
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 3.
Oct 19 16:05:51 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev systemd[1]: Started YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev sysrepo-plugind[1234106]: sysrepo-plugind error:
Creating plugins dir "/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed
(Read-only file system).
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Main process
exited, code=exited, status=1/FAILURE
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 4.
Oct 19 16:05:51 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev systemd[1]: Started YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev sysrepo-plugind[1234109]: sysrepo-plugind error:
Creating plugins dir "/usr/lib/x86_64-linux-gnu/sysrepo/plugins" failed
(Read-only file system).
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Main process
exited, code=exited, status=1/FAILURE
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Scheduled restart
job, restart counter is at 5.
Oct 19 16:05:51 dev systemd[1]: Stopped YANG-based configuration and
operational state data store.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Start request
repeated too quickly.
Oct 19 16:05:51 dev systemd[1]: sysrepo-plugind.service: Failed with result
'exit-code'.
Oct 19 16:05:51 dev systemd[1]: Failed to start YANG-based configuration
and operational state data store.

Reply via email to