The System Logger Daemon failed to start after an upgrade to syslog-ng PE 7.0.33
说明
The System Logger Daemon failed to start after an upgrade to syslog-ng PE 7.0.33.
After upgrading the syslog-ng PE to 7.0.33, the System Logger Daemon failed to start and had the following errors:
systemd[1]: Starting System Logger Daemon... -- Subject: Unit syslog-ng.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit syslog-ng.service has begun starting up. syslog-ng[4330]: [2023-09-08T12:12:07.074453] systemd-journal: Current position does not match the previously restored cursor position, seeking to head; cursor='s=96564f7d2e0a4291af8c9e3a844e9b90;i=a54;b=99b77b9a5f0348ffa829d90dbb4b6ffa;m syslog-ng[4330]: [2023-09-08T12:12:07.076265] Error setting up TLS session context; tls_error='error:0200100D:system library:fopen:Permission denied', location='/opt/syslog-ng/share/syslog-ng/include/scl/custom-network-drivers/plugin.conf syslog-ng[4330]: [2023-09-08T12:12:07.076323] Error initializing message pipeline; plugin_name='syslog', location='/opt/syslog-ng/share/syslog-ng/include/scl/custom-network-drivers/plugin.conf:47:25' systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT systemd[1]: Failed to start System Logger Daemon. -- Subject: Unit syslog-ng.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit syslog-ng.service has failed. -- -- The result is failed. systemd[1]: Unit syslog
解决办法
The folder permissions of the certificate path was not set properly. The failed upgrade had the certificate folder permissions set to 644 (drw-r-r--). The successful upgrade had the certificate folder permissions of 755 (drwxr-xr-x).