Bug#574536: fail2ban: no longer starts at boot automatically, only by hand
Hello, in attachment see my_etc-fail2ban.tar.gz. I only added (and edit) my own jail.local, as recommended. It had worked until I saw that it wasn't yesterday! IMPORTANT: this morning I added my own (temporary) solution, and it works now but I'm not understanding why the fail2ban-server doesn't run by himself at boot: I'm not remembering having seen Python packages passing during my last Lenny update. Feel free to check! Temp solution: adding #!/bin/bash /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock in for ex.: /etc/init.d/force-fail2ban-to-start then doing ln -s /etc/init.d/force-fail2ban-to-run /etc/rcS.d/S99force-fail2ban-to-start By hand: it starts. After rebooting: it starts too. To be as complete as possible, these are the python-related packages currently available on my Lenny: ii python 2.5.2-3An interactive high-level object-oriented la ii python-4suite-xml1.0.2-5An open-source platform for XML and RDF proc ii python-apt 0.7.7.1+nmu1 Python interface to libapt-pkg ii python-brlapi3.10~r3724-1+lenny1Python bindings for BrlAPI ii python-cairo 1.4.12-1.2 Python bindings for the Cairo vector graphic ii python-cdd 0.0.8 library to make easier to build CDD related ii python-cddb 1.4-5.1+b1 Python interface to CD-IDs and FreeDB ii python-central 0.6.8 register and build utility for Python packag ii python-cups 1.9.31-1 Python bindings for CUPS ii python-cupsutils 1.0.0-4lenny1 Python utility modules around the CUPS print ii python-dbus 0.82.4-2 simple interprocess messaging system (Python ii python-eggtrayicon 2.19.1-3.1 Python module to display icons in the system ii python-elementtree 1.2.6-12 Light-weight toolkit for XML processing ii python-eyed3 0.6.16 Python module for id3-tags manipulation ii python-foomatic 0.7.9.1Python interface to the Foomatic printer dat ii python-gdata 1.1.1-1Google Data Python client library ii python-gdbm 2.5.2-1GNU dbm database support for Python ii python-glade22.12.1-6 GTK+ bindings: Glade support ii python-gmenu 2.22.2-4 an implementation of the freedesktop menu sp ii python-gnome22.22.0-1 Python bindings for the GNOME desktop enviro ii python-gnome2-desktop2.22.0-2 Python bindings for the GNOME desktop enviro ii python-gnome2-extras 2.19.1-3.1 Extra Python bindings for the GNOME desktop ii python-gnupginterface0.3.2-9Python interface to GnuPG (GPG) ii python-gobject 2.14.2-2 Python bindings for the GObject library ii python-gst0.10 0.10.12-1.1generic media-playing framework (Python bind ii python-gtk2 2.12.1-6 Python bindings for the GTK+ widget set ii python-gtkhtml2 2.19.1-3.1 Python bindings for the GtkHTML 2 library ii python-gtkmozembed 2.19.1-3.1 Python bindings for the GtkMozEmbed Gecko li ii python-gtksourceview22.2.0-1+b1 Python bindings for the GtkSourceView widget ii python-imaging 1.1.6-3Python Imaging Library ii python-ipy 1:0.62-1 Python module for handling IPv4 and IPv6 add ii python-libxml2 2.6.32.dfsg-5+lenny1 Python bindings for the GNOME XML library ii python-minimal 2.5.2-3A minimal subset of the Python language (def ii python-musicbrainz2 0.6.0-2An interface to the MusicBrainz XML web serv ii python-mutagen 1.14-2 audio metadata editing library ii python-notify0.1.1-2+b1 Python bindings for libnotify ii python-numeric 24.2-9
Bug#574536: fail2ban: no longer starts at boot automatically, only by hand
Thank you Osvaldo, Just now realized that we are talking about stable(lenny), so I guess not much of 'new and fancy' could be there I guess ;) just out of curiosity, 1. what if you remove -rw-r--r-- root/root 6343 2010-03-07 11:31 etc/fail2ban/.saf.jail.local.bak -rw-r--r-- root/root 6328 2010-03-05 16:08 etc/fail2ban/.saf.jail.local.orig still would fail to start? 2. what would be output (would it still crash?) with fail2ban-client -v -v -v start fail2ban-client -v -v -v -d ? P.S. the fact that you managed to start the server doesn't mean that it would do anything useful -- client is the one which instructs the server on what to do (what jails to use etc), so running server without client instructions does nothing... or after starting the server fail2ban-client starts to work fine? ;) On Fri, 19 Mar 2010, Osvaldo La Rosa wrote: Hello, in attachment see my_etc-fail2ban.tar.gz. I only added (and edit) my own jail.local, as recommended. It had worked until I saw that it wasn't yesterday! IMPORTANT: this morning I added my own (temporary) solution, and it works now but I'm not understanding why the fail2ban-server doesn't run by himself at boot: I'm not remembering having seen Python packages passing during my last Lenny update. Feel free to check! -- .-. =-- /v\ = Keep in touch// \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User^^-^^[17] signature.asc Description: Digital signature
Bug#574536: fail2ban: no longer starts at boot automatically, only by hand
Hi, On Fri, Mar 19, 2010 at 09:17:47AM -0400, Yaroslav Halchenko wrote: Thank you Osvaldo, Just now realized that we are talking about stable(lenny), so I guess not much of 'new and fancy' could be there I guess ;) just out of curiosity, 1. what if you remove -rw-r--r-- root/root 6343 2010-03-07 11:31 etc/fail2ban/.saf.jail.local.bak -rw-r--r-- root/root 6328 2010-03-05 16:08 etc/fail2ban/.saf.jail.local.orig It doesn't matter, fail2ban still doesn't start after I reboot, see here: jupiter:~# ps ax |grep -i fail 3188 pts/0S+ 0:00 grep -i fail jupiter:~# /etc/init.d/force-fail2ban-to-start 2010-03-19 20:35:32,822 fail2ban.server : INFO Starting Fail2ban v0.8.3 2010-03-19 20:35:32,823 fail2ban.server : INFO Starting in daemon mode jupiter:~# ps ax |grep -i fail 3192 ?S 0:00 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock 3194 pts/0S+ 0:00 grep -i fail jupiter:~# still would fail to start? Yes, and to be compleet, under Ubuntu it works (both on Karmic and Hardy) 2. what would be output (would it still crash?) with fail2ban-client -v -v -v start jupiter:~# fail2ban-client -v -v -v start DEBUG Reading /etc/fail2ban/fail2ban DEBUG Reading files: ['/etc/fail2ban/fail2ban.conf', '/etc/fail2ban/fail2ban.local'] INFO Using socket file /var/run/fail2ban/fail2ban.sock DEBUG Reading /etc/fail2ban/fail2ban DEBUG Reading files: ['/etc/fail2ban/fail2ban.conf', '/etc/fail2ban/fail2ban.local'] DEBUG Reading /etc/fail2ban/jail DEBUG Reading files: ['/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.local'] DEBUG Reading /etc/fail2ban/jail DEBUG Reading files: ['/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.local'] Traceback (most recent call last): File /usr/bin/fail2ban-client, line 401, in module if client.start(sys.argv): File /usr/bin/fail2ban-client, line 370, in start return self.__processCommand(args) File /usr/bin/fail2ban-client, line 180, in __processCommand ret = self.__readConfig() File /usr/bin/fail2ban-client, line 375, in __readConfig ret = self.__configurator.getOptions() File /usr/share/fail2ban/client/configurator.py, line 65, in getOptions return self.__jails.getOptions(jail) File /usr/share/fail2ban/client/jailsreader.py, line 64, in getOptions ret = jail.getOptions() File /usr/share/fail2ban/client/jailreader.py, line 70, in getOptions self.__opts = ConfigReader.getOptions(self, self.__name, opts) File /usr/share/fail2ban/client/configreader.py, line 84, in getOptions v = self.get(sec, option[1]) File /usr/lib/python2.5/ConfigParser.py, line 525, in get return self._interpolate(section, option, value, d) File /usr/lib/python2.5/ConfigParser.py, line 593, in _interpolate self._interpolate_some(option, L, rawval, section, vars, 1) File /usr/lib/python2.5/ConfigParser.py, line 625, in _interpolate_some option, section, rest, var) ConfigParser.InterpolationMissingOptionError: Bad value substitution: section: [apache-noscript] option : action key: action_wml rawval : jupiter:~# fail2ban-client -v -v -v -d ? jupiter:~# fail2ban-client -v -v -v -d DEBUG Reading /etc/fail2ban/fail2ban DEBUG Reading files: ['/etc/fail2ban/fail2ban.conf', '/etc/fail2ban/fail2ban.local'] INFO Using socket file /var/run/fail2ban/fail2ban.sock DEBUG Reading /etc/fail2ban/fail2ban DEBUG Reading files: ['/etc/fail2ban/fail2ban.conf', '/etc/fail2ban/fail2ban.local'] DEBUG Reading /etc/fail2ban/jail DEBUG Reading files: ['/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.local'] DEBUG Reading /etc/fail2ban/jail DEBUG Reading files: ['/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.local'] Traceback (most recent call last): File /usr/bin/fail2ban-client, line 401, in module if client.start(sys.argv): File /usr/bin/fail2ban-client, line 337, in start ret = self.__readConfig() File /usr/bin/fail2ban-client, line 375, in __readConfig ret = self.__configurator.getOptions() File /usr/share/fail2ban/client/configurator.py, line 65, in getOptions return self.__jails.getOptions(jail) File /usr/share/fail2ban/client/jailsreader.py, line 64, in getOptions ret = jail.getOptions() File /usr/share/fail2ban/client/jailreader.py, line 70, in getOptions self.__opts = ConfigReader.getOptions(self, self.__name, opts) File /usr/share/fail2ban/client/configreader.py, line 84, in getOptions v = self.get(sec, option[1]) File /usr/lib/python2.5/ConfigParser.py, line 525, in get return self._interpolate(section, option, value, d) File /usr/lib/python2.5/ConfigParser.py, line 593, in _interpolate self._interpolate_some(option, L, rawval, section, vars, 1) File /usr/lib/python2.5/ConfigParser.py, line 625, in _interpolate_some option, section, rest, var) ConfigParser.InterpolationMissingOptionError: Bad value substitution: section: [apache-noscript]
Bug#574536: fail2ban: no longer starts at boot automatically, only by hand
Package: fail2ban Version: 0.8.3-2sid1 Severity: important Hello, since today I see that fail2ban no longer starts automatically; to start it, i need to pass the command: # /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock The problem seems to be Python-related: jupiter:~# /etc/init.d/fail2ban status Status of authentication failure monitor:fail2ban is not running [33m(warning).[39;49m jupiter:~# /etc/init.d/fail2ban start Traceback (most recent call last): File /usr/bin/fail2ban-client, line 401, in module if client.start(sys.argv): File /usr/bin/fail2ban-client, line 370, in start return self.__processCommand(args) File /usr/bin/fail2ban-client, line 180, in __processCommand ret = self.__readConfig() File /usr/bin/fail2ban-client, line 375, in __readConfig ret = self.__configurator.getOptions() File /usr/share/fail2ban/client/configurator.py, line 65, in getOptions return self.__jails.getOptions(jail) File /usr/share/fail2ban/client/jailsreader.py, line 64, in getOptions ret = jail.getOptions() File /usr/share/fail2ban/client/jailreader.py, line 70, in getOptions self.__opts = ConfigReader.getOptions(self, self.__name, opts) File /usr/share/fail2ban/client/configreader.py, line 84, in getOptions v = self.get(sec, option[1]) File /usr/lib/python2.5/ConfigParser.py, line 525, in get return self._interpolate(section, option, value, d) File /usr/lib/python2.5/ConfigParser.py, line 593, in _interpolate self._interpolate_some(option, L, rawval, section, vars, 1) File /usr/lib/python2.5/ConfigParser.py, line 625, in _interpolate_some option, section, rest, var) ConfigParser.InterpolationMissingOptionError: Bad value substitution: section: [apache-noscript] option : action key: action_wml rawval : -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages fail2ban depends on: ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii python2.5.2-3An interactive high-level object-o ii python-central0.6.8 register and build utility for Pyt Versions of packages fail2ban recommends: ii iptables 1.4.2-6administration tools for packet fi ii whois 4.7.30 an intelligent whois client Versions of packages fail2ban suggests: ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-3 A simple mail user agent pn python-gamin none(no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#574536: fail2ban: no longer starts at boot automatically, only by hand
would you mind sharing the content of /etc/fail2ban? have you modified/customized any configuration file? On Thu, 18 Mar 2010, Osvaldo La Rosa wrote: jupiter:~# /etc/init.d/fail2ban start Traceback (most recent call last): File /usr/bin/fail2ban-client, line 401, in module if client.start(sys.argv): File /usr/bin/fail2ban-client, line 370, in start return self.__processCommand(args) File /usr/bin/fail2ban-client, line 180, in __processCommand ret = self.__readConfig() File /usr/bin/fail2ban-client, line 375, in __readConfig ret = self.__configurator.getOptions() File /usr/share/fail2ban/client/configurator.py, line 65, in getOptions return self.__jails.getOptions(jail) File /usr/share/fail2ban/client/jailsreader.py, line 64, in getOptions ret = jail.getOptions() File /usr/share/fail2ban/client/jailreader.py, line 70, in getOptions self.__opts = ConfigReader.getOptions(self, self.__name, opts) File /usr/share/fail2ban/client/configreader.py, line 84, in getOptions v = self.get(sec, option[1]) File /usr/lib/python2.5/ConfigParser.py, line 525, in get return self._interpolate(section, option, value, d) File /usr/lib/python2.5/ConfigParser.py, line 593, in _interpolate self._interpolate_some(option, L, rawval, section, vars, 1) File /usr/lib/python2.5/ConfigParser.py, line 625, in _interpolate_some option, section, rest, var) ConfigParser.InterpolationMissingOptionError: Bad value substitution: section: [apache-noscript] option : action key: action_wml rawval : -- .-. =-- /v\ = Keep in touch// \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User^^-^^[17] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org