Modify

Ticket #2596 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 months ago

Error in clamav-daemon logrotate's conf

Reported by: anonymous Owned by: jamor@…
Milestone: Component: antivirus
Severity: normal Keywords: clamav logrotate
Cc:

Description

I receive an email from logrotate's cron:

/etc/cron.daily/logrotate:
error: clamav-daemon:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: clamav-daemon:10 unexpected }
error: found error in file clamav-daemon, skipping

Contents of /etc/logrotate.d/clamav-daemon:

0 {
     rotate 12
     weekly
     compress
     delaycompress
     create 640  root adm
     postrotate
     /etc/init.d/clamav-daemon reload-log > /dev/null
     endscript
     }

The "0" in the file should be "/var/log/clamav/clamav.log" (I guess). Currently, that file contains entries since Dec 6th till today Dec 14th, which is more than a week and it has clearly not been rotated.

Attachments

Change History

comment:1 Changed 3 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to worksforme

I've just tried to reproduce it and I have "var/log/clamav/clamav.log" on that file. I don't know why you have a 0, but Zentyal does not modify that file at all...

comment:2 Changed 2 years ago by brumela@…

I can confirm that bug.

comment:3 follow-up: ↓ 4 Changed 2 years ago by anonymous

Hello,

I had looked in the Zentyal code and this file is not modified at all. To try to clear things could you provide this information?

  • output of "apt-cache policy clamav-daemon"
  • output of "dpkg -S /var/log/clamav/clamav.log'

Thanks

comment:4 in reply to: ↑ 3 Changed 2 years ago by anonymous

Replying to anonymous:

Hello,

I had looked in the Zentyal code and this file is not modified at all. To try to clear things could you provide this information?

  • output of "apt-cache policy clamav-daemon"
clamav-daemon:
  Installed: 0.96.5+dfsg-1ubuntu1.10.04.1
  Candidate: 0.96.5+dfsg-1ubuntu1.10.04.1
  Version table:
 *** 0.96.5+dfsg-1ubuntu1.10.04.1 0
        500 http://si.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     0.96.3+dfsg-2ubuntu1.0.10.04.2 0
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
     0.96+dfsg-2ubuntu1 0
        500 http://si.archive.ubuntu.com/ubuntu/ lucid/main Packages
  • output of "dpkg -S /var/log/clamav/clamav.log'
dpkg: /var/log/clamav/clamav.log not found.

comment:5 Changed 2 years ago by jamor@…

comment:6 Changed 3 months ago by jag

  • Keywords clamav logrotate added
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.