Bug#944243: logrotate fails with "Permission denied" on LXC guest

2020-09-01 Thread Harald Dunkel
See https://github.com/lxc/lxc/issues/3520 for possible workarounds. Regards Harri

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2020-05-05 Thread Pierre-Elliott Bécue
Le vendredi 29 novembre 2019 à 16:14:21+0100, Lukáš Jelínek a écrit : > Thanks very much for this workaround. It works well. > > But I think it is a bug because it prevents Debian 10 in LXC containers > to work out-of-the-box in many cases and requires manual hardcore > intervention (in a file whi

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-29 Thread Lukáš Jelínek
Thanks very much for this workaround. It works well. But I think it is a bug because it prevents Debian 10 in LXC containers to work out-of-the-box in many cases and requires manual hardcore intervention (in a file which is not intended to be "cut-and-dry" modified by administrators). > Le mercr

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-28 Thread Pierre-Elliott Bécue
Le mercredi 06 novembre 2019 à 17:27:28+0100, Lukáš Jelínek a écrit : > 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 s

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-11 Thread Christian Göttsche
Control: reassign -1 lxc Control: notfound -1 3.14.0-4 Control: affects -1 logrotate Re-assingning to lxc. Message #15 indicates this is not a problem in logrotate, but rather of lxc, systemd and maybe apparmor.

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-11 Thread Lukáš Jelínek
AppArmor is used and aa-status on the LXC host gives the following output: apparmor module is loaded. 23 profiles are loaded. 21 profiles are in enforce mode.    /usr/bin/evince    /usr/bin/evince-previewer    /usr/bin/evince-previewer//sanitized_helper    /usr/bin/evince-thumbnailer    /us

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-11 Thread Christian Göttsche
Are you using apparmor, respectively is apparmor active (aa-status)? As I am not using lxc, can you please provide steps to reproduce the problem.

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-11 Thread Lukáš Jelínek
All of these directories are present and are regular directories (not symbolic links). Deleting the specified line has no effect and the problem persists. > Can you please check whether the following directories exist and if > they are symbolic links what target they have: > /var > /var/log > /t

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-06 Thread Christian Göttsche
Can you please check whether the following directories exist and if they are symbolic links what target they have: /var /var/log /tmp /var/tmp Also can you try to delete the line `PrivateTmp=true` from `/lib/systemd/system/logrotate.service` and retry? Might be related to https://github.com/syst

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-06 Thread Lukáš Jelínek
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/sb

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-06 Thread Christian Göttsche
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`).

Bug#944243: logrotate fails with "Permission denied" on LXC guest

2019-11-06 Thread Lukas Jelinek
Package: logrotate Version: 3.14.0-4 Severity: grave Justification: renders package unusable -- Package-specific info: Contents of /etc/logrotate.d total 52 -rw-r--r-- 1 root root 120 Apr 19 2019 alternatives -rw-r--r-- 1 root root 173 May 28 16:40 apt -rw-r--r-- 1 root root 79 Feb 13 2019 ap