journalctl -u logrotate:

Nov 06 17:12:22 syslog systemd[1]: Starting Rotate log files...
Nov 06 17:12:22 syslog systemd[381]: logrotate.service: Failed to set up mount 
namespacing: Permission denied
Nov 06 17:12:22 syslog systemd[381]: logrotate.service: Failed at step 
NAMESPACE spawning /usr/sbin/logrotate: Permission denied
Nov 06 17:12:22 syslog systemd[1]: logrotate.service: Main process exited, 
code=exited, status=226/NAMESPACE
Nov 06 17:12:22 syslog systemd[1]: logrotate.service: Failed with result 
'exit-code'.
Nov 06 17:12:22 syslog systemd[1]: Failed to start Rotate log files.


systemctl status logrotate

● logrotate.service - Rotate log files
   Loaded: loaded (/lib/systemd/system/logrotate.service; static; vendor 
preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-11-06 17:12:22 CET; 11min 
ago
     Docs: man:logrotate(8)
           man:logrotate.conf(5)
  Process: 381 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, 
status=226/NAMESPACE)
 Main PID: 381 (code=exited, status=226/NAMESPACE)

Nov 06 17:12:22 syslog systemd[1]: Starting Rotate log files...
Nov 06 17:12:22 syslog systemd[381]: logrotate.service: Failed to set up mount 
namespacing: Permission denied
Nov 06 17:12:22 syslog systemd[381]: logrotate.service: Failed at step 
NAMESPACE spawning /usr/sbin/logrotate: Permission denied
Nov 06 17:12:22 syslog systemd[1]: logrotate.service: Main process exited, 
code=exited, status=226/NAMESPACE
Nov 06 17:12:22 syslog systemd[1]: logrotate.service: Failed with result 
'exit-code'.
Nov 06 17:12:22 syslog systemd[1]: Failed to start Rotate log files.


> Can you give some more information where you did encounter the
> "Permission denied" message.
> Please provide some log entries (from /var/log/syslog or `journalctl
> -u logrotate` or `systemctl status logrotate`).

Reply via email to