<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Hotfix for iRedMail-0.7.1 (MySQL backend): iRedAPD stops suddenly.]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic1972.xml" />
	<updated>2011-05-18T00:39:42Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic1972-hotfix-for-iredmail071-mysql-backend-iredapd-stops-suddenly.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Hotfix for iRedMail-0.7.1 (MySQL backend): iRedAPD stops suddenly.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post9589.html#p9589" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>winpr wrote:</cite><blockquote><p>  File &quot;/opt/iredapd/src/iredapd.py&quot;, line 79<br />    logging.debug(&#039;Error: %s. Use default action instead:<br />                                                         ^<br />SyntaxError: EOL while scanning single-quoted string</p></blockquote></div><p>It works for me here. Can you please create a new forum topic and paste line 78, 79, 80, 81 of file &quot;/opt/iredapd/src/iredapd.py&quot; in your post?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2011-05-18T00:39:42Z</updated>
			<id>http://www.iredmail.org/forum/post9589.html#p9589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hotfix for iRedMail-0.7.1 (MySQL backend): iRedAPD stops suddenly.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post9587.html#p9587" />
			<content type="html"><![CDATA[<p>After &quot;# /etc/init.d/iredapd restart&quot;</p><p>[root@mail src]# /etc/init.d/iredapd restart<br />iredapd is already stopped.<br />Starting iredapd ...<br />&nbsp; File &quot;/opt/iredapd/src/iredapd.py&quot;, line 79<br />&nbsp; &nbsp; logging.debug(&#039;Error: %s. Use default action instead:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />SyntaxError: EOL while scanning single-quoted string</p><p>Thanks,<br />Tony</p>]]></content>
			<author>
				<name><![CDATA[winpr]]></name>
				<uri>http://www.iredmail.org/forum/user15797.html</uri>
			</author>
			<updated>2011-05-17T19:08:38Z</updated>
			<id>http://www.iredmail.org/forum/post9587.html#p9587</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hotfix for iRedMail-0.7.1 (MySQL backend): iRedAPD stops suddenly.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post9307.html#p9307" />
			<content type="html"><![CDATA[<p>Dear all,</p><p>Some users reported that iRedAPD in iRedMail-0.7.1 (MySQL backend special) will stop suddenly, and MySQL server complains &#039;too many connections&#039;.<br />Bug report post: <a href="http://www.iredmail.org/forum/topic1776-server-configuration-problem-mails-not-received.html">http://www.iredmail.org/forum/topic1776 … eived.html</a></p><p>The root cause is incorrect SQL operation in iRedAPD, it won&#039;t close sql connection immediately, that makes too many sleeping sql connections.</p><p>You can fix it with below steps:</p><p>- Download these two files:</p><p><a href="http://iredapd.iredmail.googlecode.com/hg/src/iredapd.py">http://iredapd.iredmail.googlecode.com/ … iredapd.py</a><br /><a href="http://iredapd.iredmail.googlecode.com/hg/src/plugins/sql_alias_access_policy.py">http://iredapd.iredmail.googlecode.com/ … _policy.py</a></p><p>- Replace /opt/iredapd/src/iredapd.py with downloaded &quot;iredapd.py&quot;.<br />- Replace /opt/iredapd/src/plugins/sql_alias_access_policy.py with downloaded<br /> &quot;sql_alias_access_policy.py&quot;.</p><p>- Set correct file permission on these two new files:<br /></p><div class="codebox"><pre><code># chown iredapd:iredapd /opt/iredapd/src/iredapd.py
# chown iredapd:iredapd /opt/iredapd/src/plugins/sql_alias_access_policy.py
# chmod 0700 /opt/iredapd/src/iredapd.py
# chmod 0700 /opt/iredapd/src/plugins/sql_alias_access_policy.py</code></pre></div><p>- Restart iRedAPD service.<br /></p><div class="codebox"><pre><code># /etc/init.d/iredapd restart</code></pre></div><p>That&#039;s all.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2011-05-08T14:40:15Z</updated>
			<id>http://www.iredmail.org/forum/post9307.html#p9307</id>
		</entry>
</feed>
