[Fixed] Critical bug core-8.4.0~273: Dagent not delivering mails if plugin-manager is enabled.
-
I tried reproducing this on a CentOS 6.9 machine with 8,4,0,301 and only get:
Thu Apr 13 03:34:30 2017: [warning] [11432] ! Plugins directory '/var/lib/kopano/dagent/plugins' doesn't exists.Plugins not loaded.
After creating this folder there is no further error message in the logs (mail delivery was successful before and after). I have created https://jira.kopano.io/browse/KC-631 to fix the packages.
-
Hi Felix,
here the problem persists (updated to 8,4,0,301): As soon as I enable plugins in dagent, mail delivery is discontinued and the following error-messages appear with every unqueue attempt from postfix.Thu Apr 13 10:11:34 2017: [ notice] [22737] LMTP service will now exit Thu Apr 13 10:11:34 2017: [ notice] [23798] Starting kopano-dagent LMTP mode version 8,4,0,301 (301), pid 23798 Thu Apr 13 10:13:25 2017: [ notice] [23798] LMTP service will now exit Thu Apr 13 10:13:25 2017: [info ] Maximum LMTP threads set to 20 Thu Apr 13 10:13:25 2017: [info ] Listening on port 2003 for LMTP Thu Apr 13 10:13:25 2017: [info ] [23994] Logger process started on pid 23996 Thu Apr 13 10:13:25 2017: [debug ] [23994] StatsClient binding socket Thu Apr 13 10:13:25 2017: [debug ] [23994] StatsClient bound socket to /tmp/.1071578776b35b1.sock Thu Apr 13 10:13:25 2017: [ notice] [23994] Starting kopano-dagent LMTP mode version 8,4,0,301 (301), pid 23994 Thu Apr 13 10:13:56 2017: [24030] [error ] Python type: (null) Thu Apr 13 10:13:56 2017: [24030] [error ] Python error: 'module' object has no attribute 'DAgentPluginmanager' Thu Apr 13 10:13:56 2017: [24030] [crit ] K-1732: Unable to initialize the dagent plugin manager: Unknown error code (1). Thu Apr 13 10:14:38 2017: [24084] [error ] Python type: (null) Thu Apr 13 10:14:38 2017: [24084] [error ] Python error: 'module' object has no attribute 'DAgentPluginmanager' Thu Apr 13 10:14:38 2017: [24084] [crit ] K-1732: Unable to initialize the dagent plugin manager: Unknown error code (1).
-
@umgfoin did you also update python-kopano?
-
@fbartels
yes,cd core-8.4.0~301_64.1-RHEL_6_PHP_56-x86_64 yum update *.rpm ... Untersuche python-kopano-8.4.0~301-64.1.x86_64.rpm: python-kopano-8.4.0~301-64.1.x86_64 python-kopano-8.4.0~301-64.1.x86_64.rpm: aktualisiert installierte Pakete nicht. ...
-
@fbartels Hi Felix,
Even after disabling dagent plugin, mails are not delivering. This is on CentOS 7.3
Apr 18 23:45:55 kcn postfix/local[5299]: B980B60D72CF: to=, relay=local, delay=485, delays=485/0.03/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: [ 5300] [error ] Python type: (null) [ 5300] [error ] Python error: 'module' object has no attribute 'DAgentPluginmanager' [ 5300] [crit ] K-1732: Unable to initialize the dagent plugin manager: Unknown error code (1). )![alt text](image url) [root@kcn kopano]# grep -i ^plugin_enabled dagent.cfg plugin_enabled = no [root@kcn kopano]# rpm -qa | egrep -i 'kopano-server|python-kopano' kopano-server-8.4.0~344-71.1.x86_64 kopano-server-packages-8.4.0~344-71.1.x86_64 python-kopano-8.4.0~344-71.1.x86_64 [root@kcn kopano]#
-
Since I had a Centos 7 machine up to test something else, I decided to give this another try. But still no luck in reproducing this.
Kopano Core 8,4,0,344
CentOS Linux release 7.3.1611 (Core) -
-
-
Ok, thanks to your additional information I was finally able to reproduce this issue and it seems to indeed only happen, when delivering via pipe. I have created https://jira.kopano.io/browse/KC-642 to followup on this issue.
-
I guess this also solves:
https://forum.kopano.io/topic/191/kopano-dagent-not-working-core-8-4-0-344/6
-
@fbartels
Great, you discovered that!
Just changed my postfix-config from PIPE to LMTP transport and can confirm your findings for Centos 6.9/ Python 2.7:
No dagent-plugin problem with LMTP transport - the issue seems to concern piped connections, only.
++umgfoin. -
…fixed with commit c699e000835 .
Thanks,
++umgfoin.