<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
		<link>https://forum.iredmail.org/topic20941-fail2ban-log-filled-with-command-not-found-errors-fix.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20941.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Fail2ban Log Filled With Command Not Found Errors + Fix.]]></description>
		<lastBuildDate>Thu, 24 Jul 2025 06:00:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91077.html#p91077</link>
			<description><![CDATA[<p>Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (tiobuck)]]></author>
			<pubDate>Thu, 24 Jul 2025 06:00:04 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91077.html#p91077</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91072.html#p91072</link>
			<description><![CDATA[<p>Looks like cron job runs BEFORE mariadb service is running. It&#039;s safe to ignore.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 23 Jul 2025 01:58:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91072.html#p91072</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91069.html#p91069</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Seems failed to connect to SQL server.<br />Does it failed every time when it blocks an IP?</p></blockquote></div><p>No, logs are clean. I did a test doing a full server reboot vs restarting the fail2ban service. The errors only occur on a fresh boot of the system. They don&#039;t appear if I restart the fail2ban service. Timeout perhaps? I&#039;m renting an older dedicated server (intel core 2 duo 2GHz, 4GB RAM, 250GB HDD).</p>]]></description>
			<author><![CDATA[null@example.com (tiobuck)]]></author>
			<pubDate>Tue, 22 Jul 2025 20:37:56 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91069.html#p91069</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91066.html#p91066</link>
			<description><![CDATA[<p>Seems failed to connect to SQL server.<br />Does it failed every time when it blocks an IP?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 22 Jul 2025 02:15:04 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91066.html#p91066</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91065.html#p91065</link>
			<description><![CDATA[<p>My apologies, I saw the previous issue pavel.kasparak reported about fail2ban. I did the fix you recommended. It cleaned up the logs but I noticed an error in consecutive lines during fail2ban startup:</p><p>fail2ban.utils[409]: ERROR 7f36808743f0 -- exec: /usr/local/bin/fail2ban_banned_db start sshd</p><p>fail2ban.utils[409]: ERROR 7f36808743f0 -- stderr: &quot;ERROR 2002 (HY000): Can&#039;t connect to server on &#039;127.0.0.1&#039; (115)&quot;</p><p>fail2ban.utils[409]: ERROR 7f36808743f0 -- returned 1</p><p>fail2ban.actions[409]: ERROR Failed to start jail &#039;sshd&#039; action &#039;banned_db&#039;: Error starting action Jail(&#039;sshd&#039;)/banned_db: &#039;Script error&#039;</p>]]></description>
			<author><![CDATA[null@example.com (tiobuck)]]></author>
			<pubDate>Mon, 21 Jul 2025 16:49:52 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91065.html#p91065</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91064.html#p91064</link>
			<description><![CDATA[<p>Yes sir</p>]]></description>
			<author><![CDATA[null@example.com (tiobuck)]]></author>
			<pubDate>Sun, 20 Jul 2025 16:57:00 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91064.html#p91064</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91061.html#p91061</link>
			<description><![CDATA[<p>Does your server have /usr/bin/env?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 19 Jul 2025 15:06:06 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91061.html#p91061</guid>
		</item>
		<item>
			<title><![CDATA[Fail2ban Log Filled With Command Not Found Errors + Fix]]></title>
			<link>https://forum.iredmail.org/post91059.html#p91059</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.7.4<br />- Deployed with iRedMail Easy or the downloadable installer? No<br />- Linux/BSD distribution name and version: Debian 12<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />Snippet:<br />2025-07-17T22:01:33.958862+00:00 mail fail2ban.utils[403]: ERROR 7fe3f54b2790 -- returned 127<br />2025-07-17T22:01:33.958916+00:00 mail fail2ban.utils[403]: INFO HINT on 127: &quot;Command not found&quot;.&nbsp; Make sure that all commands in &#039;/usr/local/bin/fail2ban_banned_db start pregreet&#039;<br />====</p><p>Did a fresh install yesterday and noticed errors in Fail2ban log. Found a path error to bash in line 1 of /usr/local/bin/fail2ban_banned_db.</p><p>Stopped fail2ban service. Changed 1st line of fail2ban_banned_db to #!/bin/bash. Restarted fail2ban. Logs are clean now.</p>]]></description>
			<author><![CDATA[null@example.com (tiobuck)]]></author>
			<pubDate>Fri, 18 Jul 2025 18:21:34 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91059.html#p91059</guid>
		</item>
	</channel>
</rss>
