<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic2536.xml" />
	<updated>2012-10-02T09:17:06Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic2536-solved-error-amavis-dbdmysqlst-execute-failed.html</id>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18417.html#p18417" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-10-02T09:17:06Z</updated>
			<id>http://www.iredmail.org/forum/post18417.html#p18417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18408.html#p18408" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-02T00:23:24Z</updated>
			<id>http://www.iredmail.org/forum/post18408.html#p18408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18399.html#p18399" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-10-01T14:23:12Z</updated>
			<id>http://www.iredmail.org/forum/post18399.html#p18399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18376.html#p18376" />
			<content type="html"><![CDATA[<p>Hi digitalbit,</p><p>What&#039;s your current issue?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-10-01T12:18:13Z</updated>
			<id>http://www.iredmail.org/forum/post18376.html#p18376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18375.html#p18375" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[digitalbit]]></name>
				<uri>http://www.iredmail.org/forum/user31372.html</uri>
			</author>
			<updated>2012-10-01T12:17:11Z</updated>
			<id>http://www.iredmail.org/forum/post18375.html#p18375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post11925.html#p11925" />
			<content type="html"><![CDATA[<p>Hi,</p><p>It&#039;s the good solution, many thanks for your help!!!</p><p>Christophe</p>]]></content>
			<author>
				<name><![CDATA[qualifio]]></name>
				<uri>http://www.iredmail.org/forum/user19372.html</uri>
			</author>
			<updated>2011-10-17T07:43:59Z</updated>
			<id>http://www.iredmail.org/forum/post11925.html#p11925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post11857.html#p11857" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2011-10-13T22:35:07Z</updated>
			<id>http://www.iredmail.org/forum/post11857.html#p11857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post11850.html#p11850" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[qualifio]]></name>
				<uri>http://www.iredmail.org/forum/user19372.html</uri>
			</author>
			<updated>2011-10-13T06:26:08Z</updated>
			<id>http://www.iredmail.org/forum/post11850.html#p11850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post11846.html#p11846" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2011-10-13T02:52:09Z</updated>
			<id>http://www.iredmail.org/forum/post11846.html#p11846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[SOLVED] Error amavis DBD::mysql::st execute failed:]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post11843.html#p11843" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[qualifio]]></name>
				<uri>http://www.iredmail.org/forum/user19372.html</uri>
			</author>
			<updated>2011-10-12T13:11:18Z</updated>
			<id>http://www.iredmail.org/forum/post11843.html#p11843</id>
		</entry>
</feed>
