Discussion:
[Clamav-users] Problem with internal logger
(too old to reply)
nikos
2007-12-27 12:08:07 UTC
Permalink
Hello list.
After upgrade to 0.92 version on a linux server, the cron sending the
following error:

ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).

In the cron I have put this line: 7 * * * * /usr/local/bin/freshclam --quiet

In freshclam.conf I have the configuration:
UpdateLogFile /var/log/freshclam.log
LogSyslog yes
...


The strange is that the clam updates the database...

What's wrong here?

Thank you,
Nikos



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
Török Edwin
2007-12-27 12:19:52 UTC
Permalink
Post by nikos
Hello list.
After upgrade to 0.92 version on a linux server, the cron sending the
ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).
In the cron I have put this line: 7 * * * * /usr/local/bin/freshclam --quiet
UpdateLogFile /var/log/freshclam.log
LogSyslog yes
...
check permissions on /var/log/freshclam.log for the user freshclam is
running as (usually clamav).

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
David F. Skoll
2007-12-27 13:45:36 UTC
Permalink
Post by nikos
UpdateLogFile /var/log/freshclam.log
LogSyslog yes
If you are using LogSyslog, why do you specify an UpdateLogFile? I
would only use Syslog; the internal logger is not a good idea.
It locks the log file, so if a "freshclam" process becomes stuck,
subsequent freshclams complain. (I have no idea *why* it's necessary
to lock the file; if the file is opened in "append" mode and log
messages are shorter than PIPE_BUF, no locking should be needed.)

Regards,

David.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html
nikos
2007-12-28 14:51:27 UTC
Permalink
Hello list again.
I solve tho problem.
Stupidly I add freshclam line in root's crontab and it was also running for clamav user cron at the same time!

Sorry for bothering the list.
Nikos
Post by nikos
UpdateLogFile /var/log/freshclam.log
LogSyslog yes
If you are using LogSyslog, why do you specify an UpdateLogFile? I
would only use Syslog; the internal logger is not a good idea.
It locks the log file, so if a "freshclam" process becomes stuck,
subsequent freshclams complain. (I have no idea *why* it's necessary
to lock the file; if the file is opened in "append" mode and log
messages are shorter than PIPE_BUF, no locking should be needed.)

Regards,

David.


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Loading...