[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
This bug was fixed in the package upstart - 1.13.2-0ubuntu1rtm1 --- upstart (1.13.2-0ubuntu1rtm1) 14.09; urgency=medium [ James Hunt ] * debian/user-conf/logrotate.conf: Handle corrupt status files. (LP: #1385464) -- Ricardo Salveti de Araujo ricardo.salv...@canonical.com Fri, 23 Jan 2015 22:53:28 -0200 ** Changed in: upstart (Ubuntu RTM) Status: New = Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upstart in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Confirmed Status in upstart package in Ubuntu: Fix Released Status in upstart package in Ubuntu RTM: Fix Released Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
** Changed in: canonical-devices-system-image Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upstart in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Fix Released Status in upstart package in Ubuntu: Fix Released Status in upstart package in Ubuntu RTM: Fix Released Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
to get someone assigned, nit sure we will see corrupt files anymore but better to be safe ** Changed in: logrotate (Ubuntu RTM) Assignee: (unassigned) = Ricardo Salveti (rsalveti) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Confirmed Status in logrotate package in Ubuntu: New Status in logrotate package in Ubuntu RTM: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
** Also affects: logrotate (Ubuntu RTM) Importance: Undecided Status: New ** Also affects: canonical-devices-system-image Importance: Undecided Status: New ** Changed in: canonical-devices-system-image Importance: Undecided = High ** Changed in: canonical-devices-system-image Status: New = Confirmed ** Changed in: canonical-devices-system-image Milestone: None = ww05-2015 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Confirmed Status in logrotate package in Ubuntu: New Status in logrotate package in Ubuntu RTM: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
sync ./debian/user-conf/logrotate.conf from lp:ubuntu/upstart to the upstart package used on touch so ~/.cache/upstart/ shrinks a lot -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Confirmed Status in logrotate package in Ubuntu: New Status in logrotate package in Ubuntu RTM: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
** Package changed: logrotate (Ubuntu) = upstart (Ubuntu) ** Changed in: upstart (Ubuntu) Status: New = Fix Released ** Package changed: logrotate (Ubuntu RTM) = upstart (Ubuntu RTM) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upstart in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in the base for Ubuntu mobile products: Confirmed Status in upstart package in Ubuntu: Fix Released Status in upstart package in Ubuntu RTM: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
Can we land this soon? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in “logrotate” package in Ubuntu: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
** Tags added: touch-2014-10-30 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in “logrotate” package in Ubuntu: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
** Tags added: rtm14 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in “logrotate” package in Ubuntu: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1385464] Re: logrotate fails to run, if status file is corrupt (logrotate running during reboot?)
To be clear, this issue was observed on Touch. Interestingly, we already have a fix for this, but it hasn't landed in the archive or on Tocuh; the upstart session init has a logrotate job (/usr/share/upstart/sessions/logrotate.conf) which is used to rotate the users session init log files. I'd noticed the corruption issue and put a fix in the tip of lp:ubuntu/upstart. Essentially, the solution is to remove the status file as it will be regenerated on next logrotate run. However, if the status file is corrupt, logrotate will never rewrite it and as such, no logrotation occurs leading to unlimited logfile growth. Here's the fix from the upstart job: __ # Sometimes the state file can become corrupt (probably caused by # logrotate updating it on shutdown). In these cases the file ends in # nul bytes which causes a subsequent logrotate run (even a forced run) # to refuse to process it meaning no files get rotated. # # Hence, if nul bytes are detected, reset the state file to allow logrotate # to work. [ -e $statefile ] egrep '[^[:print:]]' $statefile rm $statefile __ -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/1385464 Title: logrotate fails to run, if status file is corrupt (logrotate running during reboot?) Status in “logrotate” package in Ubuntu: New Bug description: phablet@ubuntu-phablet:~$ du -h /var/log/syslog 654M /var/log/syslog phablet@ubuntu-phablet:~$ sudo logrotate -f /etc/logrotate.conf error: bad top line in state file /var/lib/logrotate/status phablet@ubuntu-phablet:~$ cat /var/lib/logrotate/status /opt/click.ubuntu.com/com.ubuntu.developer.webapps.webapp-gmail/1.0.25phablet@ubuntu-phablet:~$ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1385464/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp