26

Re: iredapd -1.5.0 problems

Good news. I'm waiting for your feedback and ready to release iRedMail-0.9.2.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

27 (edited by tofinus 2015-05-26 14:01:47)

Re: iredapd -1.5.0 problems

Hi,

I will change to daemon.daemonize(noClose=True) now and I give you feedback. my serveur go down every 10 minutes !!

Can you confirme me that the only change since the patch is just to change to daemon.daemonize(noClose=True) ?

For debug maybe, I can found that in the syslog :

syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49595 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49598 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49610 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49612 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49614 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49618 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138])
syslog:May 26 07:50:45 myserver iredapd[6926]: error: uncaptured python exception, closing channel <__main__.PolicyChannel connected 127.0.0.1:49620 at 0x7fd35ca31e18> (<type 'exceptions.UnboundLocalError'>:local variable 'action' referenced before assignment [/usr/lib/python2.7/asyncore.py|readwrite|108] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|165] [/opt/iredapd/iredapd.py|found_terminator|138]

regards

28

Re: iredapd -1.5.0 problems

Dear tofinus,

Thanks for helping us out, your error log is useful in this case. Please apply this patch (a stupid bug) and restart iRedAPD service:

diff -r 3c35d95180ee iredapd.py
--- a/iredapd.py    Fri May 22 20:44:43 2015 +0800
+++ b/iredapd.py    Tue May 26 15:03:11 2015 +0800
@@ -135,8 +135,8 @@
                 else:
                     action = SMTP_ACTIONS['default']
             except Exception, e:
+                action = SMTP_ACTIONS['default']
                 logging.debug('Unexpected error: %s. Fallback to default action: %s' % (str(e), str(action)))
-                action = SMTP_ACTIONS['default']
 
             # Log final action.
             logging.info('[%s] %s, %s -> %s, %s' % (self.smtp_session_data['client_address'],

Also, is it possible to let me login to your server to tracking this issue? We're waiting for this fix for new iRedMail release.

29 (edited by tofinus 2015-05-26 16:38:32)

Re: iredapd -1.5.0 problems

I have apply the patch and no more error for the moment.

And I can say that i have no more crash after the change to daemon.daemonize(noClose=True)

I give you a feedback in 24 hours to confirme that is solved.

See you

PS . sorry I cannot give you access to my server because the firewall block that from outside.

30

Re: iredapd -1.5.0 problems

tofinus wrote:

PS . sorry I cannot give you access to my server because the firewall block that from outside.

No problem at all. I wait for your feedback.

31 (edited by mir 2015-05-27 00:49:21)

Re: iredapd -1.5.0 problems

ZhangHuangbin wrote:

Good news. I'm waiting for your feedback and ready to release iRedMail-0.9.2.

Since Mon May 25 10:31:07 CEST 2015 (the time I added the latest patch) I have not seen any restart of iredapd in /var/log/iredapd so maybe the issue has been found and closed:)

32

Re: iredapd -1.5.0 problems

Good news. Waiting for tofinus as another confirm.

33

Re: iredapd -1.5.0 problems

Hi,

My server is allways up and running since 21 hours

iredapd.service - LSB: Control iredapd daemon.
   Loaded: loaded (/etc/init.d/iredapd)
   Active: active (running) since Tue 2015-05-26 10:31:50 CEST; 21h ago
  Process: 11639 ExecStop=/etc/init.d/iredapd stop (code=exited, status=0/SUCCESS)
  Process: 11647 ExecStart=/etc/init.d/iredapd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/iredapd.service
           ââ11651 python /opt/iredapd/iredapd.py

May 26 10:31:50 myserver iredapd[11647]: Starting iredapd ...

You can see that no more error occure on the service log.
The 2 correction solve the issu in my case.

Good job thanks

34

Re: iredapd -1.5.0 problems

mir wrote:
ZhangHuangbin wrote:

Good news. I'm waiting for your feedback and ready to release iRedMail-0.9.2.

Since Mon May 25 10:31:07 CEST 2015 (the time I added the latest patch) I have not seen any restart of iredapd in /var/log/iredapd so maybe the issue has been found and closed:)

Wed May 27 17:55:36 CEST 2015 and still no restart. For my part this means that the issue is fixed.

35

Re: iredapd -1.5.0 problems

Great, thread closed, I will release iRedMail-0.9.2 next Monday.