Problem: AssertionError from Notifier - Translog corrupt

Problem

In the execution /usr/share/univention-directory-notifier/univention-translog stat you get the following traceback and this will be also logged in /var/log/univention/notifier.log

Traceback (most recent call last):
   File "/usr/share/univention-directory-notifier/univention-translog",
 line 1472, in <module>
     exit(main())
   File "/usr/share/univention-directory-notifier/univention-translog", line 421, in main
     return opt.func(opt) or 0
   File "/usr/share/univention-directory-notifier/univention-translog",
 line 553, in show_stat
     with Index(opt.translog_file) as index,
 Translog(opt.translog_file, index) as
 translog:
   File "/usr/share/univention-directory-notifier/univention-translog",
 line 148, in __enter__
     assert reminder == 0, reminder
 AssertionError: 7

Solution

The AssertionError shows that the translog is corrupt and you need to reindex it.
You can do this with the following command.

/usr/share/univention-directory-notifier/univention-translog reindex

Reindexing will probably take some time, depending on the size of the LDAP.

Investigation

Bug 55863

Mastodon