Package: amavis-stats
Version: 0.1.12-7.2
Severity: normal
Hello,
Due to some reason i haven't identified(*), amavis-stats' state-file
contained an incorrect offset value, which points to the middle a of
a line of the log file.
Therefore, when amavis-stats tries to parse the line, it dies with
error message (then mailed by Cron Daemon) :
[..]
amavis-stats: parseFile (/var/log/mail.info, 235, 63385)
amavis-stats: lock /var/lock/amavis-stats removed
amavis-stats: Unknown month "" (current locale is "C")
# head -n 2 /var/log/mail.info
Dec 10 06:55:01 slxmrml1 amavis[4168]: (04168-04) Passed CLEAN,
[64.56.70.119] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>,
mail_id: sA+RmInUjoa3, Hits: -, queued_as: 250 OK id=1GtHeP-0002GK-RE,
306 ms
Dec 10 07:02:32 slxmrml1 amavis[4787]: (04787-04) Passed CLEAN,
<[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID:
<[EMAIL PROTECTED]>, mail_id: DVSRaN2MiRd9, Hits:
-, queued_as: 250 OK id=1GtHlg-0002Yo-BG, 258 ms
note : offset 235 is right after "Dec 10 07:02:32 slxmrml1" but before
"amavis[4168]" so, the test /usr/bin/amavis-stats line 624 :
if ($line =~ /amavis.*?\[\d+\]:/) {
is valid !
I guess it should be safer to make sure that the offset is right after
an "\n" when the state file is loaded.
regards,
Franklin
(*) I have recently upgraded to Etch, but i'm not sure it's related..
it my just be a race condition.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-486
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages amavis-stats depends on:
ii adduser 3.100 Add and remove users and groups
ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy
ii librrds-perl 1.2.15-0.2 Time-series data storage and displ
ii rrdtool 1.2.15-0.2 Time-series data storage and displ
ii wwwconfig-common 0.0.48 Debian web auto configuration
Versions of packages amavis-stats recommends:
ii amavisd-new [amavis] 1:2.4.2-5 Interface between MTA and virus sc
-- debconf information:
* amavis-stats/stay_on_purge: false
* amavis-stats/config_apache: None
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]