[email protected]
[Top] [All Lists]

Bug#363391: marked as forwarded (fail2ban: need to run with LANG=C)

Subject: Bug#363391: marked as forwarded fail2ban: need to run with LANG=C
From: Debian Bug Tracking System
Date: Tue, 18 Apr 2006 14:49:50 -0700
Your message dated Tue, 18 Apr 2006 17:22:33 -0400
with message-id <[email protected]>
has caused the Debian Bug report #363391,
regarding fail2ban: need to run with LANG=C
to be marked as having been forwarded to the upstream software
author(s) francois <[email protected]>, [email protected], 
[email protected], Cyril Jaquier <[email protected]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Subject: Re: Bug#363391: fail2ban: need to run with LANG=C
From: Yaroslav Halchenko
Date: Tue, 18 Apr 2006 17:22:33 -0400
Hi Cyril,

So what should we really do about locale problem? should we may be
specify in the configuration?

but then how to allow it to be different for some section since
different daemons can be running under different locales, and if not
using syslog, they would have different timestamp locales. Or am I

I doubt that we should keep it hardcoded to be locale.LC_ALL anyway...

Or should we finally implement automatic time data format matching also
sensing possible locales...? ;-)

Francois -- could you please send me exemplar lines of your log files
(including fail2ban log, auth.log, and apache.log/exim/postfix if you
have any of those) -- single line with timestamp would suffice.

On Tue, 18 Apr 2006, francois wrote:

> Package: fail2ban
> Version: 0.6.1-1
> Severity: normal

> The default locale of my system is fr_FR.UTF-8, so fail2ban make errors when
> reading date and time in log files which contain names for month and day in
> English. For exemple I obtain in /var/log/fail2ban :

> 2006-04-18 21:27:26,915 ERROR: time data did not match format:  data=Apr 18 
> 21:26:41  fmt=%b %d %H:%M:%S
> 2006-04-18 21:27:26,915 ERROR: Please check the format and your locale 
> settings.

> To by-pass the problem I change in /etc/init.d/fail2ban the line :

> start-stop-daemon --start --quiet --pidfile $PIDFILE \
>                         --exec $DAEMON -- $DAEMON_OPTS

> by

> LANG=C start-stop-daemon --start --quiet --pidfile $PIDFILE \
>                         --exec $DAEMON -- $DAEMON_OPTS

> It seems to work fine after that.

> -- System Information:
> Debian Release: testing/unstable
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.12-1-686
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

> Versions of packages fail2ban depends on:
> ii  iptables                      1.3.3-2    Linux kernel 2.4+ iptables 
> adminis
> ii  python                        2.3.5-5    An interactive high-level 
> object-o

> fail2ban recommends no packages.

> -- no debconf information

=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     ([email protected]|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#363391: marked as forwarded (fail2ban: need to run with LANG=C), Debian Bug Tracking System <=