This repository was archived by the owner on Jul 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Debugging Kolab Sync
Timotheus Pokorra edited this page Apr 10, 2017
·
7 revisions
The kolab sync process creates new mailboxes and new domains, when they are created in the Kolab Webadmin. It periodically checks the LDAP directory for changes, and then adds the domains and mailboxes to Cyrus IMAP.
Sometimes, the sync fails, and it is good to see why the process hangs.
To test this, run these commands:
systemctl stop kolabd
kolab -d 9 sync 2>&1 | tee kolab-sync.log
systemctl start kolabd
This is the code for the kolabd service:
The code for the commandline sync starts here:
Synchronization happens here:
mailbox folders are created here (user_mailbox_create):
The log is written to:
- /var/log/kolab/pykolab.log
Timing:
- if you add or delete a domain, in the default setup, it can take up to 10 minutes for the change to take effect (https://git.kolab.org/pykolab/tree/kolabd/__init__.py#n272)
- if you restart the kolabd service, it takes in the default setup 10 seconds per existing domain, for kolabd to become ready for adding new mailboxes etc (https://git.kolab.org/pykolab/tree/kolabd/__init__.py#n287)