Author Topic: [SOLVED] Clam-av errors reported since last update  (Read 2360 times)

fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
[SOLVED] Clam-av errors reported since last update
« on: March 25, 2013, 06:02:47 pm »
Hi Folks

I applied all the latest updates on Saturday (2013-03-23) and since then Anacron as been mailing me the following errors:

/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

Any ideas?
« Last Edit: March 27, 2013, 12:50:01 am by fatbob »

nontrivial

  • Zen Warrior
  • ***
  • Posts: 181
  • Karma: +16/-0
    • View Profile
Re: Clam-av errors reported since last update
« Reply #1 on: March 25, 2013, 06:49:23 pm »
Yes, this was broken in zentyal, then fixed for a while, and now it appears to be broken again. The problem is the config file /etc/logrotate.d/clamav-daemon has been mangled. What I did to fix was:

* Change the first line to be "/var/log/clamav/clamav.log {"
* Change the create line to be "create 640 clamav clamav"

I also changed the create line in /etc/logrotate.d/clamav-freshclam to match

fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: Clam-av errors reported since last update
« Reply #2 on: March 25, 2013, 07:49:40 pm »
Great thanks

Have you raised a ticket for this? If not I don't mind doing it.

Cheers
f

nontrivial

  • Zen Warrior
  • ***
  • Posts: 181
  • Karma: +16/-0
    • View Profile
Re: Clam-av errors reported since last update
« Reply #3 on: March 25, 2013, 08:05:16 pm »
Nope, go for it. There is also a related issue with freshclam that has to do with the clamav log file permissions, but the create line changes also fixes that issue as well.

James

fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: Clam-av errors reported since last update
« Reply #4 on: March 27, 2013, 12:49:51 am »
Raised Case #6363

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: [SOLVED] Clam-av errors reported since last update
« Reply #5 on: March 27, 2013, 07:26:00 am »
Sorry, but this is a bug of the clamav package itself. This file is not touched by zentyal so if it was fixed and now is broken, it must be for a upgrade of clamav.

I have reported it upstream, but it odes not seem to have caught much attention:

https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/799623

fatbob

  • Zen Warrior
  • ***
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: [SOLVED] Clam-av errors reported since last update
« Reply #6 on: March 27, 2013, 02:07:40 pm »
Yeah no worries Javier as long as it's reached the right people. Not a serious issue for me anyway