Jan Evert van Grootheest
2008-Oct-21 17:11 UTC
[Logcheck-devel] Bug#503000: logcheck fails due to a perl warning
Package: logcheck Version: 1.2.68 Severity: important I upgraded my lenny server today. I guess the previous update is something like two weeks ago. Now logcheck started sending mails containing only this perl error: This email is sent by logcheck. If you wish to no-longer receive it, you can either deinstall the logcheck package or modify its configuration file (/etc/logcheck/logcheck.conf). System Events =-=-=-=-=-=- LANG = "en_US.UTF-8" LANG = "en_US.UTF-8" LANGUAGE = (unset), LANGUAGE = (unset), LC_ALL = (unset), LC_ALL = (unset), are supported and installed on your system. are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Falling back to the standard locale ("C"). perl: warning: Please check that your locale settings: perl: warning: Please check that your locale settings: perl: warning: Setting locale failed. perl: warning: Setting locale failed. -- end quote -- Obviously there's something wrong with perl. But I also consider it a bug that logcheck produces 'half' a result in this manner. It should really not be doing this. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-21-xen (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=sh: locale: command not found) Shell: /bin/sh linked to /bin/bash Versions of packages logcheck depends on: ii adduser 3.110 add and remove users and groups ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-3 A simple mail user agent ii cron 3.0pl1-105 management of regular background p ii exim4 4.69-9 metapackage to ease Exim MTA (v4) ii exim4-daemon-light 4.69-9 lightweight Exim MTA (v4) daemon ii lockfile-progs 0.1.11-0.1 Programs for locking and unlocking ii logtail 1.2.68 Print log file lines that have not ii mailx 1:20071201-3 Transitional package for mailx ren ii sysklogd [system-l 1.5-5 System Logging Daemon Versions of packages logcheck recommends: ii logcheck-database 1.2.68 database of system log rules for t Versions of packages logcheck suggests: pn syslog-summary <none> (no description available) -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17. logcheck/changes: logcheck/install-note:
Gerfried Fuchs
2008-Oct-22 07:11 UTC
[Logcheck-devel] Bug#503000: Bug#503000: logcheck fails due to a perl warning
Am Dienstag, den 21.10.2008, 19:11 +0200 schrieb Jan Evert van Grootheest:> Package: logcheck > Version: 1.2.68 > Severity: important > > I upgraded my lenny server today. I guess the previous update is something like two weeks ago. > Now logcheck started sending mails containing only this perl error: > This email is sent by logcheck. If you wish to no-longer receive it, > you can either deinstall the logcheck package or modify its > configuration file (/etc/logcheck/logcheck.conf). > > System Events > =-=-=-=-=-=-> LANG = "en_US.UTF-8" > LANG = "en_US.UTF-8" > LANGUAGE = (unset), > LANGUAGE = (unset), > LC_ALL = (unset), > LC_ALL = (unset), > are supported and installed on your system. > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). > perl: warning: Falling back to the standard locale ("C"). > perl: warning: Please check that your locale settings: > perl: warning: Please check that your locale settings: > perl: warning: Setting locale failed. > perl: warning: Setting locale failed. > -- end quote -- > > Obviously there's something wrong with perl. But I also consider it a bug that logcheck produces > 'half' a result in this manner. It should really not be doing this.It's not really just wrong with perl but your general locale setup. Please see /etc/environment and /etc/locale.gen. I expect that you have a LANG=en_US.UTF-8 entry in the former but not in the later. This will spit out messages like this with every other perl code you are using, like e.g. also in upgrade logs, and I expect you haven't filed a bugreport against apt for that, did you. :) Pretty please tell locales to generate the locale you set, that's the only proper fix for that. This is not limited to logcheck at all, it affects your whole system. Go through "dpkg-reconfigure locales" as root. If you don't have the locales package installed you shouldn't set LANG to anything else but the standard locale (C or POSIX), especially not systemwide. Thanks. :) Rhonda -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Dies ist ein digital signierter Nachrichtenteil Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20081022/1e04ea8d/attachment.pgp
Jan Evert van Grootheest
2008-Oct-23 18:06 UTC
[Logcheck-devel] Bug#503000: Info received ( Bug#503000: logcheck fails due to a perl warning)
Just figured it out. In debian, /usr/bin/locale is in the libc6 package. But, for xen from ubuntu, I'm using ubuntus libc6 which does not have it. Hence the problem. Same story for localedef. If somebody would please close this brown-paper bag bug for this naive soul, thanks.
Debian Bug Tracking System
2008-Oct-24 13:51 UTC
[Logcheck-devel] Bug#503000: marked as done (logcheck fails due to a perl warning)
Your message dated Fri, 24 Oct 2008 15:47:51 +0200 with message-id <1224856071.27252.27.camel at edna.deb.at> and subject line Re: [Logcheck-devel] Bug#503000: Info received ( Bug#503000: logcheck fails due to a perl warning) has caused the Debian Bug report #503000, regarding logcheck fails due to a perl warning to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 503000: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503000 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Jan Evert van Grootheest <j.e.van.grootheest at caiway.nl> Subject: logcheck fails due to a perl warning Date: Tue, 21 Oct 2008 19:11:52 +0200 Size: 4757 Url: http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20081024/c209d6c6/attachment.eml -------------- next part -------------- An embedded message was scrubbed... From: Gerfried Fuchs <rhonda at deb.at> Subject: Re: [Logcheck-devel] Bug#503000: Info received ( Bug#503000: logcheck fails due to a perl warning) Date: Fri, 24 Oct 2008 15:47:51 +0200 Size: 2835 Url: http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20081024/c209d6c6/attachment-0001.eml
Possibly Parallel Threads
- Bug#470929: dhcp: interface names can have dash in them
- Bug#608256: /etc/logcheck/ignore.d.server/dnsmasq: dnsmasq: interface names are allowed to have a dash (-) please add this to the filter
- Bug#510472: logcheck-database: pam_unix messages could be ignored.
- Bug#500017: ignore.d.server/ssh: outdated 'reverse mapping checking ... failed' rule
- Bug#489172: logcheck: please add Auto-Submitted header field to mailouts