8.6.80.752: kopano-dagent debian package invalid dependencies



  • kopano-dagent depends on libpython2.7 (>= 2.7).
    Also it depends on (python2-mapi | python3-mapi)

    But it does not work if only python3-mapi is installed and not python2-mapi.

    I get

    Python error: No module named MAPI
    

    in my dagent logs on plugin manager startup on message delivery.

    Dagent is not running with python3, is it?

    Version: 8.6.80.752



  • try the new version 8.6.80.760


  • Kopano

    @thctlo said in 8.6.80.752: kopano-dagent debian package invalid dependencies:

    try the new version 8.6.80.760

    Rolling out this version showed no issues for kopano-dagent and its dependencies.

    @ZokRadonh please let us know if you still run into the issue.



  • Same problem if I try to use kopano-dagent:8.6.80.760 without python2-mapi.

    kopano_dagent | : [debug  ] [   20] > DATA
    kopano_dagent | : [debug  ] [   20] < 354 2.1.5 Start mail input; end with <CRLF>.<CRLF>
    kopano_dagent | : [debug  ] [   20] PYTHONPATH = /usr/share/kopano-dagent/python
    kopano_dagent | : [error  ] [   20]   Python type: (null)
    kopano_dagent | : [error  ] [   20]   Python error: No module named MAPI
    kopano_dagent | : [crit   ] [   20] K-1731: Unable to initialize the dagent plugin manager: Unknown error code (1).
    kopano_dagent | : [debug  ] [   20] < 503 5.1.1 Internal error during delivery
    kopano_dagent | : [debug  ] [   20] > QUIT
    kopano_dagent | : [debug  ] [   20] < 221 2.0.0 Bye
    kopano_dagent | : [info   ] [   20] LMTP thread exiting
    


  • Some more install state information for you:

    root@d2e4f2ac2229:/kopano/repo# dpkg -l | grep mapi
    ii  libkcicalmapi0             8.6.80.760-0+89.1              amd64        iCal interface for MAPI
    ii  libkcinetmapi0             8.6.80.760-0+89.1              amd64        Interface between internet e-mail and MAPI
    ii  libkcmapi0                 8.6.80.760-0+89.1              amd64        MAPI-related utility functions for Kopano Core
    ii  libmapi1                   8.6.80.760-0+89.1              amd64        Kopano's implementation of the Messaging API
    ii  php7-mapi                  8.6.80.760-0+89.1              amd64        PHP bindings for MAPI
    ii  python3-mapi               8.6.80.760-0+89.1              amd64        Python bindings for MAPI
    root@d2e4f2ac2229:/kopano/repo# dpkg -l | grep python
    ii  dh-python                  2.20170125                     all          Debian helper tools for packaging Python libraries and applications
    ii  libpython2.7:amd64         2.7.13-2+deb9u2                amd64        Shared Python runtime library (version 2.7)
    ii  libpython2.7-minimal:amd64 2.7.13-2+deb9u2                amd64        Minimal subset of the Python language (version 2.7)
    ii  libpython2.7-stdlib:amd64  2.7.13-2+deb9u2                amd64        Interactive high-level object-oriented language (standard library, version 2.7)
    ii  libpython3-stdlib:amd64    3.5.3-1                        amd64        interactive high-level object-oriented language (default python3 version)
    ii  libpython3.5:amd64         3.5.3-1                        amd64        Shared Python runtime library (version 3.5)
    ii  libpython3.5-minimal:amd64 3.5.3-1                        amd64        Minimal subset of the Python language (version 3.5)
    ii  libpython3.5-stdlib:amd64  3.5.3-1                        amd64        Interactive high-level object-oriented language (standard library, version 3.5)
    ii  python3                    3.5.3-1                        amd64        interactive high-level object-oriented language (default python3 version)
    ii  python3-dateutil           2.5.3-2                        all          powerful extensions to the standard datetime module
    ii  python3-kopano             8.6.80.760-0+89.1              all          High-level Python bindings for Kopano
    ii  python3-mapi               8.6.80.760-0+89.1              amd64        Python bindings for MAPI
    ii  python3-minimal            3.5.3-1                        amd64        minimal subset of the Python language (default python3 version)
    ii  python3-six                1.10.0-3                       all          Python 2 and 3 compatibility library (Python 3 interface)
    ii  python3.5                  3.5.3-1                        amd64        Interactive high-level object-oriented language (version 3.5)
    ii  python3.5-minimal          3.5.3-1                        amd64        Minimal subset of the Python language (version 3.5)
    root@d2e4f2ac2229:/kopano/repo# dpkg -l | grep kopano
    ii  kopano-client              8.6.80.760-0+89.1              amd64        Kopano MAPI provider library
    ii  kopano-common              8.6.80.760-0+89.1              amd64        Shared files for Kopano Core services.
    ii  kopano-contacts            8.6.80.760-0+89.1              amd64        MAPI provider adding contact folders in the addressbook
    ii  kopano-dagent              8.6.80.760-0+89.1              amd64        E-Mail Delivery Agent for the Kopano Core
    ii  kopano-lang                8.6.80.760-0+89.1              all          Translations for Kopano Core components
    ii  libgsoap-kopano-2.8.62     2.8.62-0+1.2                   amd64        Runtime libraries for gSOAP
    ii  libvmime-kopano1           0.9.2+14.2                     amd64        a C++ mail library (runtime library)
    ii  python3-kopano             8.6.80.760-0+89.1              all          High-level Python bindings for Kopano
    


  • I can confirm the issues reported by @ZokRadonh
    After Upgrading to the current nightly (core-8.6.80.760 / Debian 9) dagent and gateway stoped working.
    My temporary solution is to disable plugin-support:

    /etc/kopano/dagent.cfg:

    plugin_enabled = no
    

    /etc/kopano/gateway.cfg:

    plugin_enabled = no
    

    Another new issue is the following log message when fetchmail gives a message to dagent:

    Mai 07 20:27:17 mailserver kopano-dagent[1732]: WARNING: setrlimit(RLIMIT_NOFILE, 8192) failed: Operation not permitted. You will only be able to connect up to 1024 sockets. Either start the process as root, or increase user limits for open file descriptors.
    

    robgnu



  • @robgnu, edit the systemd service file.

    systemctl edit kopano-dagent.service 
    
    # /etc/systemd/system/kopano-dagent.service.d/override.conf
    [Unit]
    # if you run dagent on the same server, you can order the startup.
    After=kopano-server.service
    Wants=kopano-server.service
    
    [Service]
    LimitNOFILE=8192:16384
    

  • Kopano

    kopano-dagent is not working with P ython 3 yet.

    Please install the python-mapi and python-kopano packages.



  • @joost
    Yes that is what I thought and also concluded. I already installed python2-mapi to make dagent work. It’s working fine now.

    Nevertheless the dependencies are invalid in this case.
    (python2-mapi | python3-mapi) should not be specified in the debian package control. This suggests python3-mapi would be enough for dagent what is apparently untrue.