← Back to team overview

touch-packages team mailing list archive

[Bug 1362582] Re: syslog not rotated

 

I forced the syslog to be >10 MB
Within an hour a new log was created and the previous log was removed
This is now behaving as intended
Verified on Krillin build 59

** Changed in: logrotate (Ubuntu)
       Status: In Progress => Fix Released

** Tags added: touch-2014-09-25

-- 
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/1362582

Title:
  syslog not rotated

Status in “logrotate” package in Ubuntu:
  Fix Released

Bug description:
  krillin: #2

  /var/log/syslog is not rotated even if it reaches 10M for over one
  hour.

  More than 10M
  root@ubuntu-phablet:~# ls -lh /var/log/syslog
  -rw-r----- 1 syslog adm 56M août  28 14:15 /var/log/syslog

  syslog was created more than one hour ago
  root@ubuntu-phablet:~# head -1 /var/log/syslog
  Aug 26 14:17:02 ubuntu-phablet kernel: [ 6236.421628] (0)[6279:PreviewCmdQueTh][mt-i2c]mt_get_gpio_in I2C0_SDA=1,I2C0_SCA=1,I2C1_SDA=0,I2C1_SCA=0

  and it started growing more than one hour ago
  root@ubuntu-phablet:~# cut -d' ' -f-2 /var/log/syslog|uniq -c
   143358 Aug 26
   299959 Aug 27
   110605 Aug 28

  touch-syslog exists:
  root@ubuntu-phablet:~# ls -l /etc/logrotate.d/touch-syslog
  -rw-r--r-- 1 root root 261 juil. 31 14:04 /etc/logrotate.d/touch-syslog

  logrotate hourly script exists:
  root@ubuntu-phablet:~# ls -l /etc/cron.hourly/logrotate 
  -rwxr-xr-x 1 root root 372 août   1 00:19 /etc/cron.hourly/logrotate

  and cron.hourly is executed *not* hourly but almost
  Aug 28 00:20:56 ubuntu-phablet CRON[30368]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 04:17:01 ubuntu-phablet CRON[18282]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 06:17:02 ubuntu-phablet CRON[27962]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 07:17:01 ubuntu-phablet CRON[32669]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 09:17:01 ubuntu-phablet CRON[10180]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 10:17:01 ubuntu-phablet CRON[1225]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 11:17:01 ubuntu-phablet CRON[11309]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 13:17:01 ubuntu-phablet CRON[31379]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
  Aug 28 14:17:01 ubuntu-phablet CRON[7355]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

  
  ProblemType: Bug
  DistroRelease: Ubuntu RTM 14.09
  Package: logrotate 3.8.7-1ubuntu1
  Uname: Linux 3.4.67 armv7l
  ApportVersion: 2.14.6-0ubuntu2
  Architecture: armhf
  Date: Thu Aug 28 14:07:26 2014
  InstallationDate: Installed on 2014-08-28 (0 days ago)
  InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140828-030204)
  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/1362582/+subscriptions


References