Page MenuHomePhorge

Debian : saslauthd no such file or directory after update
Closed, ResolvedPublic

Description

SYSTEM Info :

4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

KOLAB info :

||/ Nom            Version         Architecture Description
+++-==============-===============-============-====================================
ii  pykolab        0.8.20-0~kolab1 all          Kolab Groupware daemon and utilities

Hello,

After having updated Kolab this morning, Cyrus and Postfix does not work anymore :

SASL cannot connect to saslauthd server: No such file or directory

kolab-saslauthd is running, but the log shows :

févr. 03 15:43:05 mail.da4p.org systemd[1]: Starting LSB: Start/Stop the Kolab SASL authentication daemon...
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]: Traceback (most recent call last):
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/sbin/kolab-saslauthd", line 28, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pykolab.translate import _
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pykolab/__init__.py", line 43, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pykolab.conf import Conf
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pykolab/conf/__init__.py", line 32, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pykolab.constants import *
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pykolab/constants.py", line 84, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     import ldap
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/ldap/__init__.py", line 94, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from ldap.functions import initialize,get_option,set_option,escape_str,strf_secs,strp_secs
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/ldap/functions.py", line 24, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from ldap.ldapobject import LDAPObject
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 30, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from ldap.extop import ExtendedRequest,ExtendedResponse
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/ldap/extop/__init__.py", line 67, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from ldap.extop.dds import *
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/ldap/extop/dds.py", line 13, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pyasn1.codec.der import encoder,decoder
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/der/encoder.py", line 8, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pyasn1.codec.cer import encoder
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/cer/encoder.py", line 8, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pyasn1.codec.ber import encoder
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/encoder.py", line 7, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     from pyasn1 import debug
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 65, in <module>
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     class Debug(object):
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 66, in Debug
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     defaultPrinter = Printer()
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 32, in __init__
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     logger = logging.getLogger('pyasn1')
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/logging/__init__.py", line 1581, in getLogger
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     return Logger.manager.getLogger(name)
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/logging/__init__.py", line 1060, in getLogger
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     rv = (self.loggerClass or _loggerClass)(name)
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:   File "/usr/lib/python2.7/dist-packages/pykolab/logger.py", line 229, in __init__
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]:     self.error(_("Could not change permissions on %s: %r") % (self.logfile, errmsg))
févr. 03 15:43:05 mail.da4p.org kolab-saslauthd[9980]: TypeError: 'str' object is not callable
févr. 03 15:43:05 mail.da4p.org systemd[1]: Started LSB: Start/Stop the Kolab SASL authentication daemon.

Same output for kolab lm command :

Traceback (most recent call last):
  File "/usr/sbin/kolab", line 28, in <module>
    from pykolab.translate import _
  File "/usr/lib/python2.7/dist-packages/pykolab/__init__.py", line 43, in <module>
    from pykolab.conf import Conf
  File "/usr/lib/python2.7/dist-packages/pykolab/conf/__init__.py", line 32, in <module>
    from pykolab.constants import *
  File "/usr/lib/python2.7/dist-packages/pykolab/constants.py", line 84, in <module>
    import ldap
  File "/usr/lib/python2.7/dist-packages/ldap/__init__.py", line 94, in <module>
    from ldap.functions import initialize,get_option,set_option,escape_str,strf_secs,strp_secs
  File "/usr/lib/python2.7/dist-packages/ldap/functions.py", line 24, in <module>
    from ldap.ldapobject import LDAPObject
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 30, in <module>
    from ldap.extop import ExtendedRequest,ExtendedResponse
  File "/usr/lib/python2.7/dist-packages/ldap/extop/__init__.py", line 67, in <module>
    from ldap.extop.dds import *
  File "/usr/lib/python2.7/dist-packages/ldap/extop/dds.py", line 13, in <module>
    from pyasn1.codec.der import encoder,decoder
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/der/encoder.py", line 8, in <module>
    from pyasn1.codec.cer import encoder
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/cer/encoder.py", line 8, in <module>
    from pyasn1.codec.ber import encoder
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/encoder.py", line 7, in <module>
    from pyasn1 import debug
  File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 65, in <module>
    class Debug(object):
  File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 66, in Debug
    defaultPrinter = Printer()
  File "/usr/lib/python2.7/dist-packages/pyasn1/debug.py", line 32, in __init__
    logger = logging.getLogger('pyasn1')
  File "/usr/lib/python2.7/logging/__init__.py", line 1581, in getLogger
    return Logger.manager.getLogger(name)
  File "/usr/lib/python2.7/logging/__init__.py", line 1060, in getLogger
    rv = (self.loggerClass or _loggerClass)(name)
  File "/usr/lib/python2.7/dist-packages/pykolab/logger.py", line 229, in __init__
    self.error(_("Could not change permissions on %s: %r") % (self.logfile, errmsg))
TypeError: 'str' object is not callable

The fact is that there is no kolabd.pid and no kolab-saslauthd.pid under /run/kolabd and /run/kolab-saslauthd (both folders are owned by kolab:kolab-n with permissions at 755.

Rebooting the server dos not change anything.

Excuse my ugly english ! And thank’s in advance for your answers.

Sébastien

Details

Ticket Type
Task

Event Timeline

SebastienWeber renamed this task from Debian : saslautd no such file or directory after update to Debian : saslauthd no such file or directory after update.Feb 3 2022, 4:10 PM

This change causes the issue:
/usr/lib/python2.7/site-apckages/pykolab/logger.py

@@ -213,7 +213,7 @@
                                 group_gid
                             )
 
-                            os.chmod(self.logfile, 0660)
+                            os.chmod(self.logfile, '0660')
 
                     except Exception as errmsg:
                         self.error(

after revert it is working for me.

sicherha subscribed.

I'll take care of this.

I have just pushed a new, patched revision of the pykolab package. Please try it out and report back if it fixes the problem for you.