I just restarted it again and it seems to be running, but I don't know for how 
long. I do see instances of this -

Error binding parameter 0 - probably unsupported type.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/actions.py", 
line 279, in __checkBan
    action.ban(aInfo.copy())
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/action.py", line 
297, in ban
    if not self._processCmd(self.actionban, aInfo):
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/action.py", line 
507, in _processCmd
    realCmd = self.replaceTag(cmd, aInfo)
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/action.py", line 
458, in replaceTag
    aInfo = cls.substituteRecursiveTags(aInfo)
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/action.py", line 
386, in substituteRecursiveTags
    value = str(tags[tag])
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/action.py", line 
78, in __getitem__
    return value()
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/actions.py", 
line 274, in <lambda>
    jail.database.getBansMerged(ip=ip, jail=jail).getAttempt()
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/database.py", 
line 467, in getBansMerged
    results = list(self._getBans(ip=ip, jail=jail, bantime=bantime))
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/database.py", 
line 57, in wrapper
    return f(self, self._db.cursor(), *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/fail2ban/server/database.py", 
line 406, in _getBans
    return cur.execute(query, queryArgs)


So, is it sqlite causing these problems? Should I try using memory instead?



Thanks,
Rich

From: Richard Mealing [mailto:[email protected]]
Sent: 29 April 2015 14:28
To: [email protected]
Subject: [Fail2ban-users] Fail2ban just stops on FreeBSD

Hi everyone,

Why does fail2ban just stop, with no debug output?

2015-04-29 14:10:35,307 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313034.000000 for "u'Apr 29 14:10:34'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,308 fail2ban.datedetector   [87417]: DEBUG   Matched time 
template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,308 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313034.000000 for "u'Apr 29 14:10:34'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,308 fail2ban.datedetector   [87417]: DEBUG   Matched time 
template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,308 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313035.000000 for "u'Apr 29 14:10:35'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,309 fail2ban.datedetector   [87417]: DEBUG   Matched time 
template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,309 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313035.000000 for "u'Apr 29 14:10:35'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,309 fail2ban.datedetector   [87417]: DEBUG   Matched time 
template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,310 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313035.000000 for "u'Apr 29 14:10:35'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,310 fail2ban.datedetector   [87417]: DEBUG   Matched time 
template (?:DAY )?MON Day 24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,310 fail2ban.datedetector   [87417]: DEBUG   Got time 
1430313035.000000 for "u'Apr 29 14:10:35'" using template (?:DAY )?MON Day 
24hour:Minute:Second(?:\.Microseconds)?(?: Year)?
2015-04-29 14:10:35,310 fail2ban.filter         [87417]: DEBUG   Processing 
line with time:1430313035.0 and ip:42.121.115.55
2015-04-29 14:10:35,311 fail2ban.filter         [87417]: INFO    [sendmail] 
Found 42.121.115.55
2015-04-29 14:10:35,311 fail2ban.failmanager    [87417]: DEBUG   Total # of 
detected failures: 3158. Current failures from 60 IPs (IP:count): 
221.150.57.66:1, 162.249.49.171:2, 42.119.62.203:1, 74.112.64.95:1, 
165.225.166.30:1, 2.237.226.145:1, 190.186.234.69:1, 174.138.197.246:1, 
59.91.88.241:1, 14.219.199.40:1, 220.227.69.85:1, 85.26.165.98:1, 
190.41.162.198:1, 193.150.59.254:1, 60.169.75.45:1, 84.111.219.106:1, 
37.60.133.204:1, 109.120.142.143:1, 117.4.251.236:1, 14.173.112.105:1, 
204.237.44.3:1, 173.254.254.50:1, 62.220.107.230:2, 115.79.57.29:1, 
14.162.129.18:1, 46.36.122.86:1, 62.210.93.173:1, 197.224.87.244:1, 
103.242.156.246:1, 115.126.74.241:1, 95.28.119.20:1, 2.189.157.135:1, 
123.23.253.177:1, 113.73.121.36:2, 103.225.27.31:1, 76.14.109.196:1, 
103.42.14.92:2, 123.26.41.47:1, 216.107.61.147:1, 183.23.229.10:1, 
2.89.20.102:1, 213.22.8.248:1, 171.232.4.41:1, 14.172.81.84:1, 
182.73.125.157:1, 198.160.114.22:1, 42.121.115.55:1, 94.143.105.172:1, 
62.204.252.221:1, 178.149.96.190:1, 173.17.186.41:1, 62.133.191.253:1, 
158.255.6.123:1, 27.77.141.42:1, 123.20.132.21:1, 37.134.176.184:1, 
183.157.160.61:2, 117.3.46.12:1, 92.243.89.41:1, 91.199.143.205:1
^C
root@th41-mailfilter-v4:/home/richard # /usr/local/etc/rc.d/fail2ban status
fail2ban is not running.
root@th41-mailfilter-v4:/home/richard # uname -a
FreeBSD th41-mailfilter-v4.mydomain.com 10.1-RELEASE-p9 FreeBSD 10.1-RELEASE-p9 
#0: Tue Apr  7 01:09:46 UTC 2015     
[email protected]:/usr/obj/usr/src/sys/GENERIC<mailto:[email protected]:/usr/obj/usr/src/sys/GENERIC>
  amd64

I have the same issue on all my 10.1 servers. Any idea how I can debug this?

Thanks,
Rich
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to