[Bug 1953719] [NEW] logrotate.service fails because it starts before winbind.service
R. Diez
1953719 at bugs.launchpad.net
Thu Dec 9 07:37:05 UTC 2021
Public bug reported:
I have started to play with Prometheus on my Ubuntu 20.04.3. You can
configure Prometheus to alert you when a systemd service fails, and in
this way I noticed a problem with the logrotate.service immediately
after booting the system.
I looked with Cockpit, and Cockpit was reporting logrotate.service as
"Failed to start". This is the log for logrotate.service :
----8<----8<----8<----
Dez 09 08:00:56 rdiez3 systemd[1]: Starting Rotate log files...
Dez 09 08:00:58 rdiez3 logrotate[1760]: Can't find pid for destination 'winbindd'
Dez 09 08:00:58 rdiez3 logrotate[1069]: error: error running non-shared postrotate script for /var/log/samba/log.winbindd of '/var/log/samba/log.winbindd '
Dez 09 08:00:58 rdiez3 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Dez 09 08:00:58 rdiez3 systemd[1]: logrotate.service: Failed with result 'exit-code'.
Dez 09 08:00:58 rdiez3 systemd[1]: Failed to start Rotate log files.
----8<----8<----8<----
I then looked at winbind.service , which was fine:
----8<----8<----8<----
Dez 09 08:01:01 rdiez3 systemd[1]: Starting Samba Winbind Daemon...
Dez 09 08:01:01 rdiez3 systemd[1]: Started Samba Winbind Daemon.
----8<----8<----8<----
But I noticed that winbind.service started after logrotate.service . I
wonder whether this is a service dependency issue.
I am using this PC only during normal working hours, and logrotate.timer
is set to run at midnight, when the computer will never be turned on.
The worry is that this problem could effectively cause the complete log
rotation to stop working.
** Affects: logrotate (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to logrotate in Ubuntu.
https://bugs.launchpad.net/bugs/1953719
Title:
logrotate.service fails because it starts before winbind.service
Status in logrotate package in Ubuntu:
New
Bug description:
I have started to play with Prometheus on my Ubuntu 20.04.3. You can
configure Prometheus to alert you when a systemd service fails, and in
this way I noticed a problem with the logrotate.service immediately
after booting the system.
I looked with Cockpit, and Cockpit was reporting logrotate.service as
"Failed to start". This is the log for logrotate.service :
----8<----8<----8<----
Dez 09 08:00:56 rdiez3 systemd[1]: Starting Rotate log files...
Dez 09 08:00:58 rdiez3 logrotate[1760]: Can't find pid for destination 'winbindd'
Dez 09 08:00:58 rdiez3 logrotate[1069]: error: error running non-shared postrotate script for /var/log/samba/log.winbindd of '/var/log/samba/log.winbindd '
Dez 09 08:00:58 rdiez3 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Dez 09 08:00:58 rdiez3 systemd[1]: logrotate.service: Failed with result 'exit-code'.
Dez 09 08:00:58 rdiez3 systemd[1]: Failed to start Rotate log files.
----8<----8<----8<----
I then looked at winbind.service , which was fine:
----8<----8<----8<----
Dez 09 08:01:01 rdiez3 systemd[1]: Starting Samba Winbind Daemon...
Dez 09 08:01:01 rdiez3 systemd[1]: Started Samba Winbind Daemon.
----8<----8<----8<----
But I noticed that winbind.service started after logrotate.service . I
wonder whether this is a service dependency issue.
I am using this PC only during normal working hours, and
logrotate.timer is set to run at midnight, when the computer will
never be turned on.
The worry is that this problem could effectively cause the complete
log rotation to stop working.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1953719/+subscriptions
More information about the foundations-bugs
mailing list