Re: logrotate problem
On Mon, 6 Oct 2014 19:51:38 +0100
Michael Grant <mgrant@grant.org> wrote:
> When logrotate fired this month, almost all of my logs remain at zero
> length and the .1 log continues to grow. For example:
>
> ls -l /var/log
> ...
> -rw-r----- 1 root adm 0 Oct 5 06:25 messages
> -rw-r----- 1 root adm 4938 Oct 6 06:56 messages.1
> ...
> -rw-r----- 1 root adm 0 Oct 1 06:25 syslog
> -rw-r----- 1 root adm 15767734 Oct 6 13:17 syslog.1
>
> I'm running debian wheezy 7.6 on two separate systems.
>
> I'm guessing that logrotate didn't complete to restart the daemons.
> When I run logrotate -dv, I see no errors.
>
> I update both with cron-apt and I would not be surprised if one of the
> updates caused this but I'm not sure.
>
> Has anyone else seen this? Any idea how to fix it so this works next
> month?
Mine rotate every day, and seem to be doing so quite happily, but they
are on a server and it's run by the default cron system.
Have you tried running logrotate manually without -d? It's possible an
update has caused a permissions issue somewhere, and you may get clues
from the console.
--
Joe
Reply to: