Tag Archives: logrotate

Logrotate: duplicate log entry

Cron is mailing me reports like these:

/etc/cron.daily/logrotate:
error: squeezeboxserver:1 duplicate log entry for /var/log/squeezeboxserver/server.log
error: found error in /var/log/squeezeboxserver/server.log , skipping
error: squeezeboxserver:14 duplicate log entry for /var/log/squeezeboxserver/scanner.log
error: found error in /var/log/squeezeboxserver/scanner.log , skipping

As the report tells you, logrotate tries to rotate some logs twice. Not a severe error but annoying enough to be fixed.

Begin by changing directory:

cd /etc/logrotate.d

Search for the filenames mentioned in the error report:

grep "/var/log/squeezeboxserver/scanner.log" *
logitechmediaserver:/var/log/squeezeboxserver/scanner.log {
squeezeboxserver:/var/log/squeezeboxserver/scanner.log {

It seems that squeezeboxserver changed name (this has happened before…) to logitechmediaserver with the latest software upgrade. An old entry still exists in logrotate for squeezeboxserver. Move this file out of the way:

mv squeezeboxserver /tmp/

There, problem fixed!

Posted in Linux | Tagged , , , , , , , , | Leave a comment