<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
		<link>http://www.iredmail.org/forum/topic2536-solved-error-amavis-dbdmysqlst-execute-failed.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic2536.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Error amavis DBD::mysql::st execute failed:.]]></description>
		<lastBuildDate>Tue, 02 Oct 2012 09:17:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post18417.html#p18417</link>
			<description><![CDATA[<p>Thanks ZhangHuangbin <img src="http://www.iredmail.org/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Set my /etc/my.cnf to:&nbsp; max_connections=256</p><p>that will be enough for an average of 250/300 emails per day !</p><p>That error should be normal on weekends anyway !</p><p>Thanks for the tip !</p>]]></description>
			<author><![CDATA[null@example.com (digitalbit)]]></author>
			<pubDate>Tue, 02 Oct 2012 09:17:06 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18417.html#p18417</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post18408.html#p18408</link>
			<description><![CDATA[<p>The connection to MySQL server initialized by Amavisd timed out, because you have too few emails. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Please decrease (or add) value of &quot;max_connections&quot; in /etc/mysql/my.cnf like below:<br /></p><div class="codebox"><pre><code>[mysqld]
...
set-variable = max_connections=512</code></pre></div><p>If the same issue happened again, please try decreasing it again.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 02 Oct 2012 00:23:24 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18408.html#p18408</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post18399.html#p18399</link>
			<description><![CDATA[<p>Got this on my logwatch this morning :</p><br /><p>--------------------- Amavisd-new Begin ------------------------ </p><p>&nbsp; &nbsp; &nbsp; &nbsp;12&nbsp; &nbsp;Clean passed&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 75.00%<br />&nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp;Bad header passed&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;25.00%<br /> --------&nbsp; &nbsp;------------------------------------------------<br />&nbsp; &nbsp; &nbsp; &nbsp;16&nbsp; &nbsp;Total Messages Scanned&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100.00%<br /> ========&nbsp; &nbsp;================================================</p><p>&nbsp; &nbsp; &nbsp; &nbsp;16&nbsp; &nbsp;Ham&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 100.00%<br /> --------&nbsp; &nbsp;------------------------------------------------<br />&nbsp; &nbsp; &nbsp; &nbsp;16&nbsp; &nbsp;Total Messages Scanned&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;100.00%<br /> ========&nbsp; &nbsp;================================================</p><p>&nbsp; <br /> **Unmatched Entries**<br />&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp;(25833-06) INFO: removed bare CR from 8 header line(s)<br />&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp;(25833-07) INFO: removed bare CR from 8 header line(s)<br />&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp;(25832-01) INFO: removed bare CR from 9 header line(s)<br />&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp;(25832-07) INFO: removed bare CR from 8 header line(s)<br />&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp;(23575-05) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 100) line 166, &lt;GEN19&gt; line 7742.<br />&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp;(23576-04) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 100) line 166, &lt;GEN19&gt; line 9850.</p><p> ---------------------- Amavisd-new End ------------------------- </p><p>From Sunday (not much activity ~ 20 emails) compared with 250/300 emails on business days</p><p>... any tip ?</p>]]></description>
			<author><![CDATA[null@example.com (digitalbit)]]></author>
			<pubDate>Mon, 01 Oct 2012 14:23:12 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18399.html#p18399</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post18376.html#p18376</link>
			<description><![CDATA[<p>Hi digitalbit,</p><p>What&#039;s your current issue?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 01 Oct 2012 12:18:13 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18376.html#p18376</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post18375.html#p18375</link>
			<description><![CDATA[<p>Hi ZhangHuangbin!</p><p>What would be your advise to set this:</p><p>$max_servers = ?;<br />$max_requests = ?;</p><p>... for a mail server of 300 emails average a day ?</p><p>Thanks !</p>]]></description>
			<author><![CDATA[null@example.com (digitalbit)]]></author>
			<pubDate>Mon, 01 Oct 2012 12:17:11 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post18375.html#p18375</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post11925.html#p11925</link>
			<description><![CDATA[<p>Hi,</p><p>It&#039;s the good solution, many thanks for your help!!!</p><p>Christophe</p>]]></description>
			<author><![CDATA[null@example.com (qualifio)]]></author>
			<pubDate>Mon, 17 Oct 2011 07:43:59 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post11925.html#p11925</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post11857.html#p11857</link>
			<description><![CDATA[<p>That&#039;s the problem, established MySQL connection timed out.</p><p>Try to add below lines in /etc/amavis/conf.d/50-users before the last line &quot;1;&quot;, then restart Amavisd service:<br /></p><div class="codebox"><pre><code>$max_servers = 1;
$max_requests = 1;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 13 Oct 2011 22:35:07 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post11857.html#p11857</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post11850.html#p11850</link>
			<description><![CDATA[<p>Thanks for your help.</p><p>In fact, this server is actually sending 10 mails each day.</p><p>MySQL is very quiet ...</p><p>I&#039;ll adapt my config.</p><p>Regards,</p><p>Christophe</p>]]></description>
			<author><![CDATA[null@example.com (qualifio)]]></author>
			<pubDate>Thu, 13 Oct 2011 06:26:08 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post11850.html#p11850</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post11846.html#p11846</link>
			<description><![CDATA[<p>Seems your MySQL server is under heavy load, wasn&#039;t it?</p><p>Also, do you have &quot;$max_requests&quot; setting in Amavisd config file (/etc/amavis/conf.d/*)?<br />Reference: <a href="http://www.ijs.si/software/amavisd/amavisd-new-docs.html#max_requests">http://www.ijs.si/software/amavisd/amav … x_requests</a></p><p>If your server is not under heavy load, it&#039;s better to keep default value of &quot;$max_requests&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 13 Oct 2011 02:52:09 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post11846.html#p11846</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link>http://www.iredmail.org/forum/post11843.html#p11843</link>
			<description><![CDATA[<p>==== Provide basic information to help troubleshoot ====<br />- iRedMail version: 0.7.2<br />- Linux/BSD distribution name and version: Debian x86_64 6.0.2<br />- Any related log? Log is helpful for troubleshooting.<br />====</p><p>Hi,</p><p>I was checking my log where I saw this error:</p><p>Oct 12 15:04:31 mail amavis[22655]: (22655-02) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 115) line 166, &lt;GEN36&gt; line 176.</p><p>What does it mean? How can I correct it?</p><p>Thanks for your help.</p><p>Regards,</p><p>Christophe</p>]]></description>
			<author><![CDATA[null@example.com (qualifio)]]></author>
			<pubDate>Wed, 12 Oct 2011 13:11:18 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post11843.html#p11843</guid>
		</item>
	</channel>
</rss>
