Your message dated Wed, 27 Aug 2008 16:38:38 -0400
with message-id <[EMAIL PROTECTED]>
has caused the report #496633,
regarding fail2ban: Does not start
to be marked as having been forwarded to the upstream software
author(s) Cyril Jaquier <[EMAIL PROTECTED]>
(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 [EMAIL PROTECTED]
immediately.)
--
496633: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496633
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Lets see what upstream thinks about it.
Cyril?
Stefan could you check if the same issue happens with python 2.4?
just start server with explicit
python2.4 fail2ban-server -f
and client analogousely
Cyril,
more information and complete configuration could be found in bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496633
On Wed, 27 Aug 2008, Stefan wrote:
> > hard to figure out in all the config files if they are just in a list
> > (not in original directory structure targzipped for instance) but it
> > seems that fail2ban.conf/jail.conf wasn't even changed, and only
> > jail.local has modifications (the way it should be)
> Oh, sorry about that. I've attached a tarball with the complete directory
> structure to this mail. I also attached the new fail2ban.log from after I
> tested the suggested actions below (still empty, though).
> > So -- fail2ban-server is crashing. Could you run it in foreground mode ?
> > (-f)
> Jotunheim:~# fail2ban-server -f
> 2008-08-27 19:58:00,666 fail2ban.server : INFO Starting Fail2ban v0.8.3
> And then from another shell:
> Jotunheim:~# ps -A | grep fail2ban
> 10399 pts/0 00:00:01 fail2ban-server
> Jotunheim:~# fail2ban-client reload
> ERROR Could not find server
> Jotunheim:~#
> Back in the first shell:
> Jotunheim:~# fail2ban-server -f
> 2008-08-27 19:58:00,666 fail2ban.server : INFO Starting Fail2ban v0.8.3
> error: uncaptured python exception, closing channel
> <server.asyncserver.AsyncServer listening '/var/run/fail2ban/fail2ban.sock'
> at 0x1d8b0c> (<type 'exceptions.SystemError'>:Negative size passed to
> PyString_FromStringAndSize [/usr/lib/python2.5/asyncore.py|readwrite|93]
> [/usr/lib/python2.5/asyncore.py|handle_read_event|384]
> [/usr/share/fail2ban/server/asyncserver.py|handle_accept|97]
> [/usr/lib/python2.5/asyncore.py|accept|321] [/usr/lib/python2.5/socket.py|
> accept|172])
> 2008-08-27 20:00:21,530 fail2ban.server : INFO Exiting Fail2ban
> Jotunheim:~#
> > you might get even more information if running within ipython with smth
> > like
> > ipython -pdb /usr/bin/fail2ban-server -- -f -x
> > and then issuing that
> > fail2ban-client -v reload
> > hopefully that would trigger visible crash in the server with giving at
> > least some clue of WTF.
> Jotunheim:~# ipython -pdb /usr/bin/fail2ban-server -- -f -x
> 2008-08-27 20:11:52,032 fail2ban.server : INFO Starting Fail2ban v0.8.3
> At second shell:
> Jotunheim:~# fail2ban-client -v reload
> INFO Using socket file /var/run/fail2ban/fail2ban.sock
> ERROR Could not find server
> Jotunheim:~#
> Back at first shell:
> Jotunheim:~# ipython -pdb /usr/bin/fail2ban-server -- -f -x
> 2008-08-27 20:11:52,032 fail2ban.server : INFO Starting Fail2ban v0.8.3
> error: uncaptured python exception, closing channel
> <server.asyncserver.AsyncServer listening '/var/run/fail2ban/fail2ban.sock'
> at 0x47644c> (<type 'exceptions.SystemError'>:Negative size passed to
> PyString_FromStringAndSize [/usr/lib/python2.5/asyncore.py|readwrite|93]
> [/usr/lib/python2.5/asyncore.py|handle_read_event|384]
> [/usr/share/fail2ban/server/asyncserver.py|handle_accept|97]
> [/usr/lib/python2.5/asyncore.py|accept|321] [/usr/lib/python2.5/socket.py|
> accept|172])
> 2008-08-27 20:12:59,440 fail2ban.server : INFO Exiting Fail2ban
> Python 2.5.2 (r252:60911, Aug 8 2008, 12:53:08)
> Type "copyright", "credits" or "license" for more information.
> IPython 0.8.4 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
> In [1]: quit()
> Do you really want to exit ([y]/n)?
> Jotunheim:~#
> > then I guess you could debug it a bit if msg would not be informative
> > start ipython
> > pdb on
> > run /usr/bin/fail2ban-server -f -x
> > and then ivoke that client command -- theoretically you should get into
> > the point of failure, so you could reveal stack of calls with bt, etc
> Ok, this is a little too much for my current knowledge of ipython. I just
> installed it. I hope the above messages will suffice. If not, I'll need
> guidence.
> /Stefan
--
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik
--- End Message ---