#818287 Error in FilterPyinotify callback: 'module' object has no attribute '_strptime_time'

Package:
fail2ban
Source:
fail2ban
Submitter:
Mike Gabriel
Date:
2026-09-07 15:37:06 UTC
Severity:
normal
Tags:
#818287#5
Date:
2016-03-15 15:30:27 UTC
From:
To:
Package: fail2ban
Version: 0.8.13-1
Tags: patch

Dear Yaroslav / maintainer,

I just tried out fail2ban on Debian jessie and discovered an issues
with the ssh-ddos filter:

```
root@www:~# tail -f /var/log/fail2ban.log
2016-03-15 16:03:04,660 fail2ban.jail   [18444]: INFO    Creating new
jail 'ssh-ddos'
2016-03-15 16:03:04,660 fail2ban.jail   [18444]: INFO    Jail
'ssh-ddos' uses pyinotify
2016-03-15 16:03:04,669 fail2ban.jail   [18444]: INFO    Initiated
'pyinotify' backend
2016-03-15 16:03:04,671 fail2ban.filter [18444]: INFO    Added logfile
= /var/log/auth.log
2016-03-15 16:03:04,672 fail2ban.filter [18444]: INFO    Set maxRetry = 6
2016-03-15 16:03:04,673 fail2ban.filter [18444]: INFO    Set findtime = 600
2016-03-15 16:03:04,673 fail2ban.actions[18444]: INFO    Set banTime = 600
2016-03-15 16:03:04,685 fail2ban.jail   [18444]: INFO    Jail 'ssh' started
2016-03-15 16:03:04,691 fail2ban.jail   [18444]: INFO    Jail
'ssh-ddos' started
2016-03-15 16:05:46,036 fail2ban.filter [18444]: ERROR   Error in
FilterPyinotify callback: 'module' object has no attribute
'_strptime_time'
```

This issue has been fixed upstream and the patch may be worth pulling
in for the fail2ban version in Debian jessie:

https://github.com/fail2ban/fail2ban/issues/755

After applying that patch ssh-ddos filtering works here.

light+love
Mike

#818287#10
Date:
2016-03-15 15:36:49 UTC
From:
To:
Thanks. I will look into picking up this patch into Jessie's version
#818287#15
Date:
2016-03-15 15:36:49 UTC
From:
To:
Thanks. I will look into picking up this patch into Jessie's version
#818287#20
Date:
2016-10-10 12:13:46 UTC
From:
To:
Hello

I still see this error appearing on my machines. Has this bug being fixed?

Andrea

#818287#25
Date:
2017-02-12 12:05:23 UTC
From:
To:
Hello,

This is a 'me too': I just installed fail2ban and got the same
message.
As there is a fix available upstream, I don't see any reason not to
apply it...

cu
--
Markus Grunwald
http://www.the-grue.de/~markus/markus_grunwald.gpg