[Bug 1801910] Re: logrotate fails on LXC
Phan Van Cuong
1801910 at bugs.launchpad.net
Mon Jan 14 09:15:19 UTC 2019
I have met same case with you also I'm using proxmox. Should like the
image of Proxmox provided for us diffent a bit with normal OS. My laptop
using Ubuntu 18.04 but no problem with the rsyslog. It still is version
rsyslogd 8.32.0.
Rsyslog is included in all major distributions. So you do not
necessarily need to take care of where packages can be found - they are
“just there”. Unfortunately, the distros provide often rather old
versions. This is especially the case for so-called enterprise
distributions.
So to fix this, I have still newest version of rsyslog then the issue
has solved.
sudo apt-get install -y software-properties-common # Provide add-apt-repository
sudo add-apt-repository ppa:adiscon/v8-stable
sudo apt-get update
sudo apt-get install rsyslog
Let's run again:
# /etc/cron.daily/logrotate
--
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/1801910
Title:
logrotate fails on LXC
Status in logrotate package in Ubuntu:
Confirmed
Bug description:
daily, I receive this alert from logrotate script in cron.daily:
/etc/cron.daily/logrotate:
Failed to kill unit rsyslog.service: Input/output error
error: error running non-shared postrotate script for /var/log/syslog of '/var/log/syslog
'
run-parts: /etc/cron.daily/logrotate exited with return code 1
My ubuntu is a LXC running on top of ProxmoxVE.
the problem occour when logrotate script call /usr/lib/rsyslog
/rsyslog-rotate that has this call:
systemctl kill -s HUP rsyslog.service
I already checked my disks status (because the input/output error) but
them are ok.
The same issue is present also in another LXC, ubuntu also this one,
running on another node of the same cluster
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: logrotate 3.11.0-0.1ubuntu1
ProcVersionSignature:
Uname: Linux 4.15.18-7-pve x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
Date: Tue Nov 6 10:26:37 2018
ProcEnviron:
LANG=C
SHELL=/bin/bash
TERM=xterm
XDG_RUNTIME_DIR=<set>
PATH=(custom, no user)
SourcePackage: logrotate
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1801910/+subscriptions
More information about the foundations-bugs
mailing list