Page MenuHomePhorge

pykolab: new errors with kolab-server 0.8.16-0~kolab1
Closed, DuplicatePublic

Description

I'm running Kolab 16 on Debian 9.11. I now get the following errors ins pykolab.log:


2019-11-23 06:21:32,525 pykolab.auth ERROR [18886] An error occured using _persistent_search: TypeError('a float is required',)
2019-11-23 06:21:32,526 pykolab.auth ERROR [18886] Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line 3168, in _search
secondary_domains
File "<string>", line 10, in <module>
File "/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line 2820, in _persistent_search
serverctrls=psearch_server_controls
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 586, in search_ext
timeout,sizelimit,
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
TypeError: a float is required

2019-11-23 06:21:32,526 pykolab.auth ERROR [18886] An error occured using _paged_search: TypeError('encode_page_control() argument 2 must be string or read-only buffer, not None',)
2019-11-23 06:21:32,526 pykolab.auth ERROR [18886] Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line 3168, in _search
secondary_domains
File "<string>", line 10, in <module>
File "/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line 2907, in _paged_search
serverctrls=[server_page_control]
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 584, in search_ext
RequestControlTuples(serverctrls),
File "/usr/lib/python2.7/dist-packages/ldap/controls/__init__.py", line 119, in RequestControlTuples
for c in ldapControls
File "/usr/lib/python2.7/dist-packages/ldap/controls/libldap.py", line 72, in encodeControlValue
return _ldap.encode_page_control(self.size,self.cookie)
TypeError: encode_page_control() argument 2 must be string or read-only buffer, not None

I've added the "timeout = 10" manually to /etc/kolab/kolab.conf after the package upgrade.

Would be moving to Debian 10 be better?

Details

Ticket Type
Task