logcheck cant get lockfile, does not work. (Dapper)

Bug #29550 reported by Kent Nyberg on 2006-01-24
46
Affects Status Importance Assigned to Milestone
logcheck (Ubuntu)
High
Scott James Remnant (Canonical)

Bug Description

I have upgraded from Breezy to Dapper and now Logcheck dont work.
The message from logcheck is inlined in the bottom here. It might be the same kind of problem I have with courier imap where it seems that the courier directory is not created in /var/run which makes courier bail out. It seems I have no logcheck directory in /var/lock/. But I'm no expert so Im probably wrong. It does not work anyway.

Heres the mail I get from logcheck:

Warning: If you are seeing this message, your log files may not have been
checked!

Details:
Failed to get lockfile: /var/lock/logcheck/logcheck.lock

Check temporary directory:

declare -x HOME="/home/logcheck"
declare -x LANG="sv_SE.UTF-8"
declare -x LANGUAGE="sv_SE:sv:en_GB:en"
declare -x LOGNAME="logcheck"
declare -x MAILTO="root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PWD="/var/spool/cron"
declare -x SHELL="/bin/sh"
declare -x SHLVL="2"

MaxNegro (maxnegro) wrote :

Experienced same problem on my system, after upgrading from breezy to dapper. Manually creating /var/lock/logcheck solves the problem, but after rebooting the dir is gone.

MaxNegro (maxnegro) on 2006-02-27
Changed in logcheck:
status: Unconfirmed → Confirmed

I fixed it like this. Presumably the lock directory is now
purged at startup, though I don't know what's changed. I think the fix should be made upstream.
The diff is actually against Debian's 1.2.43a.

Matt Zimmerman (mdz) on 2006-04-14
Changed in logcheck:
assignee: nobody → keybuk
Luis Mondesi (lemsx1) wrote :

/var/lock is now tmpfs.

i temporarily fixed this by adding a line to the cron job:

$> cat /etc/cron.d/logcheck

# /etc/cron.d/logcheck: crontab entries for the logcheck package

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root

@reboot logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi

2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi

1 * * * * root test ! -d /var/lock/logcheck && mkdir -p /var/lock/logcheck && chown -R logcheck /var/lock/logcheck

# EOF

Debdiff applying Dave's patch.

Ready for upload after beta.

Changed in logcheck:
status: Confirmed → Fix Committed
Changed in logcheck:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers