Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    [Fixed] Critical bug core-8.4.0~273: Dagent not delivering mails if plugin-manager is enabled.

    Kopano Groupware Core
    dagent plugin-manager bug python
    4
    15
    5368
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fbartels
      fbartels Kopano @umgfoin last edited by

      @umgfoin do you have any plugins enabled that could cause the failure?

      Regards Felix

      Resources:
      https://kopano.com/blog/how-to-get-kopano/
      https://documentation.kopano.io/
      https://kb.kopano.io/

      Support overview:
      https://kopano.com/support/

      1 Reply Last reply Reply Quote 0
      • umgfoin
        umgfoin last edited by

        Hi Felix,
        no, plugin-path is empty.

        plugin_manager_path = /usr/share/kopano-dagent/python
        plugin_path = /var/lib/kopano/dagent/plugins

        [tadao@ando kopano]# ls /var/lib/kopano/dagent/plugins
        insgesamt 0
        
        [tadao@ando kopano]# ls /usr/share/kopano-dagent/python/
        insgesamt 100K
        drwxr-xr-x 2 root root 4,0K 12. Apr 10:08 plugins
        -rw-r--r-- 1 root root 1,8K 12. Apr 02:58 mapiplugin.py
        -rw-r--r-- 1 root root 5,0K 12. Apr 02:58 pluginmanager.py
        -rw-r--r-- 1 root root 1,5K 12. Apr 02:58 plugintemplates.py
        -rw-r--r-- 1 root root  539 12. Apr 02:58 wraplogger.py
        -rw-r--r-- 1 root root 1,8K 12. Apr 02:58 zconfig.py
        -rw-r--r-- 1 root root 1002 12. Apr 02:58 zinterval.py
        -rw-r--r-- 1 root root 1,6K 12. Apr 02:58 zunit.py
        -rw-r--r-- 2 root root 2,7K 12. Apr 02:58 mapiplugin.pyc
        -rw-r--r-- 2 root root 4,2K 12. Apr 02:58 pluginmanager.pyc
        -rw-r--r-- 2 root root 2,8K 12. Apr 02:58 plugintemplates.pyc
        -rw-r--r-- 2 root root 1,8K 12. Apr 02:58 wraplogger.pyc
        -rw-r--r-- 2 root root 2,7K 12. Apr 02:58 zconfig.pyc
        -rw-r--r-- 2 root root 1,5K 12. Apr 02:58 zinterval.pyc
        -rw-r--r-- 2 root root 2,0K 12. Apr 02:58 zunit.pyc
        -rw-r--r-- 2 root root 2,7K 12. Apr 02:58 mapiplugin.pyo
        -rw-r--r-- 2 root root 4,2K 12. Apr 02:58 pluginmanager.pyo
        -rw-r--r-- 2 root root 2,8K 12. Apr 02:58 plugintemplates.pyo
        -rw-r--r-- 2 root root 1,8K 12. Apr 02:58 wraplogger.pyo
        -rw-r--r-- 2 root root 2,7K 12. Apr 02:58 zconfig.pyo
        -rw-r--r-- 2 root root 1,5K 12. Apr 02:58 zinterval.pyo
        -rw-r--r-- 2 root root 2,0K 12. Apr 02:58 zunit.pyo
        
        [tadao@ando kopano]# ls /usr/share/kopano-dagent/python/plugins/
        insgesamt 44K
        -rw-r--r-- 1 root root  571 12. Apr 02:58 movetopublic.cfg
        -rw-r--r-- 1 root root 4,2K 12. Apr 02:58 BMP2PNG.py
        -rw-r--r-- 1 root root 1,3K 12. Apr 02:58 examplerules.py
        -rw-r--r-- 1 root root 3,5K 12. Apr 02:58 movetopublic.py
        -rw-r--r-- 2 root root 4,0K 12. Apr 02:58 BMP2PNG.pyc
        -rw-r--r-- 2 root root 1,6K 12. Apr 02:58 examplerules.pyc
        -rw-r--r-- 2 root root 3,6K 12. Apr 02:58 movetopublic.pyc
        -rw-r--r-- 2 root root 4,0K 12. Apr 02:58 BMP2PNG.pyo
        -rw-r--r-- 2 root root 1,6K 12. Apr 02:58 examplerules.pyo
        -rw-r--r-- 2 root root 3,6K 12. Apr 02:58 movetopublic.pyo
        
        
        1 Reply Last reply Reply Quote 0
        • fbartels
          fbartels Kopano last edited by

          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.

          Regards Felix

          Resources:
          https://kopano.com/blog/how-to-get-kopano/
          https://documentation.kopano.io/
          https://kb.kopano.io/

          Support overview:
          https://kopano.com/support/

          1 Reply Last reply Reply Quote 0
          • umgfoin
            umgfoin last edited by

            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).
            
            
            fbartels 1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels Kopano @umgfoin last edited by

              @umgfoin did you also update python-kopano?

              Regards Felix

              Resources:
              https://kopano.com/blog/how-to-get-kopano/
              https://documentation.kopano.io/
              https://kb.kopano.io/

              Support overview:
              https://kopano.com/support/

              Balaji 1 Reply Last reply Reply Quote 0
              • umgfoin
                umgfoin last edited by

                @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.
                ...
                
                1 Reply Last reply Reply Quote 0
                • Balaji
                  Balaji @fbartels last edited by Balaji

                  @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]#
                  1 Reply Last reply Reply Quote 0
                  • fbartels
                    fbartels Kopano last edited by

                    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)

                    Regards Felix

                    Resources:
                    https://kopano.com/blog/how-to-get-kopano/
                    https://documentation.kopano.io/
                    https://kb.kopano.io/

                    Support overview:
                    https://kopano.com/support/

                    Balaji 2 Replies Last reply Reply Quote 0
                    • Balaji
                      Balaji @fbartels last edited by

                      @fbartels

                      • I followed the installation procedure from here
                      • Its the exact same version of CentOS Linux release 7.3.1611 (Core)
                      • postfix config are basic.
                      1 Reply Last reply Reply Quote 0
                      • Balaji
                        Balaji @fbartels last edited by

                        Hi @fbartels ,

                        I was using below settings in main.cf which was the issue. I commented it out

                        mail_command = /usr/sbin/kopano-dagent "$USER" 
                        

                        Instead I started using below and it worked.

                        mailbox_transport = lmtp:127.0.0.1:2003
                        
                        fbartels 1 Reply Last reply Reply Quote 0
                        • fbartels
                          fbartels Kopano @Balaji last edited by

                          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.

                          Regards Felix

                          Resources:
                          https://kopano.com/blog/how-to-get-kopano/
                          https://documentation.kopano.io/
                          https://kb.kopano.io/

                          Support overview:
                          https://kopano.com/support/

                          1 Reply Last reply Reply Quote 0
                          • mcostan
                            mcostan last edited by

                            I guess this also solves:

                            https://forum.kopano.io/topic/191/kopano-dagent-not-working-core-8-4-0-344/6

                            umgfoin 1 Reply Last reply Reply Quote 0
                            • umgfoin
                              umgfoin @mcostan last edited by

                              @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.

                              1 Reply Last reply Reply Quote 0
                              • umgfoin
                                umgfoin last edited by umgfoin

                                …fixed with commit c699e000835 .

                                Thanks,
                                ++umgfoin.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post