Problem: Hughe Logfile zimbra4ucs.log

logging
zimbra
problem

#1

Problem

You might be running out of disc space and you notice a logfile /var/log/univention/zimbra4ucs.log with a hughe size (ie more than 100MB).

It displays the same messages over and over again:

2018-12-05 12:05:07,299 - INFO - processing file: /var/lib/zimbra4ucs-maildomain-listener/1500271074.518962
2018-12-05 12:05:07,299 - INFO - create cn=domain.com,cn=domain,cn=mail,dc=ber,dc=domain,dc=com
2018-12-05 12:05:07,299 - ERROR - <traceback object at 0x7f02d363ffc8>
Traceback (most recent call last):
  File "/usr/sbin/zimbra4ucs-connector", line 68, in run
    opts.dry_run)
  File "/usr/lib/pymodules/python2.7/zimbra4ucs/tools.py", line 84, in process_files
    cls.create(dn, new)
  File "/usr/lib/pymodules/python2.7/zimbra4ucs/models.py", line 140, in ldap_create
    data = cls(cls.get_connection(), **cls.map_ldap_attributes(new)).create()
  File "/usr/lib/pymodules/python2.7/zimbra4ucs/models.py", line 173, in get_connection
    cls.connection = ZimbraConfiguration.get_connection()
  File "/usr/lib/pymodules/python2.7/zimbra4ucs/__init__.py", line 150, in get_connection
    raise ZimbraNotInitialized()
ZimbraNotInitialized

Solution

If you do not use the connection to Zimbra, uninstall the Zimbra connector by:

univention-app remove zimbra


#2