You are not logged in.

#1 2016-10-23 18:02:52

smithinger44
Member
Registered: 2016-01-01
Posts: 45

[SOLVED]fail2ban won't start after configuration

I seem to have an issue that only ever happened to this guy: https://bbs.archlinux.org/viewtopic.php?id=189029

I'm in the middle of configuring owncloud, but fail2ban stopped me.
Right after installation, I've enabled and started it. All seemed to work fine, but after configuration and a reboot, fail2ban spits out this error

* fail2ban.service - Fail2Ban Service
   Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/fail2ban.service.d
           `-capabilities.conf
   Active: failed (Result: start-limit-hit) since Sun 2016-10-23 19:54:36 CEST; 4s ago
     Docs: man:fail2ban(1)
  Process: 1891 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=226/NAMESPACE)

Oct 23 19:54:36 server systemd[1]: Failed to start Fail2Ban Service.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Unit entered failed state.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Oct 23 19:54:36 server systemd[1]: Stopped Fail2Ban Service.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Start request repeated too quickly.
Oct 23 19:54:36 server systemd[1]: Failed to start Fail2Ban Service.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Unit entered failed state.
Oct 23 19:54:36 server systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.

Also, this shows up from time to time:

 fail2ban.service: Failed at step NAMESPACE spawning /usr/bin/fail2ban
-- Subject: Process /usr/bin/fail2ban-client could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/bin/fail2ban-client could not be executed and failed.
--
-- The error number returned by this process is 2.

Some more info:

Oct 23 20:11:55 server fail2ban-client[941]: ERROR  Found no accessible config f
Oct 23 20:11:55 server fail2ban-client[941]: ERROR  No section: 'Definition'
Oct 23 20:11:55 server fail2ban-client[941]: ERROR  No section: 'Definition'
Oct 23 20:11:55 server fail2ban-client[941]: ERROR  Unable to read the filter
Oct 23 20:11:55 server fail2ban-client[941]: ERROR  Errors in jail 'owncloud'. S
Oct 23 20:11:55 server systemd[1]: fail2ban.service: Control process exited, cod
Oct 23 20:11:55 server systemd[1]: Failed to start Fail2Ban Service.

FOUND THE CAUSE-partially
Here is my /etc/fail2ban/jail.local

[owncloud]
enabled = true
filter  = owncloud
port    =  http,https
logpath = /usr/share/webapps/owncloud/data/owncloud.log
; optionally whitelist internal LAN IP addresses
ignoreip = 192.168.0.3/24 192.168.0.4/24 192.168.0.5/24

Commenting out "enabled" fixes the issue, but only if "capabilities.conf" are empty.


[SOLVED]
Ok.
Nevermind
Total rookie mistake.
My  /etc/fail2ban/filter.d/owncloud.conf file was empty.
Fixed and works.

Last edited by smithinger44 (2016-10-23 19:32:38)

Offline

Board footer

Powered by FluxBB