Problem: Listener/notifier replication stuck

Problem

The replication does not work anymore and you see the following errors:

/var/log/univention/notifier.log
Traceback (most recent call last):
  File "/usr/share/univention-directory-notifier/univention-translog", line 713, in <module>
    exit(main())
  File "/usr/share/univention-directory-notifier/univention-translog", line 374, in main
    return opt.func(opt) or 0
  File "/usr/share/univention-directory-notifier/univention-translog", line 458, in import_all
    for rec in chain(lead, translog):
  File "/usr/share/univention-directory-notifier/univention-translog", line 306, in __iter__
    rec = self.parse_line(line)
  File "/usr/share/univention-directory-notifier/univention-translog", line 235, in parse_line
    return Transaction(int(tid), dn, command)
ValueError: invalid literal for int() with base 10: ''
2019-02-20 16:39:14,498:CRITICAL:ldap_search(reqSession=416756,cn=translog): No such object
/var/log/univention/listener.log
20.02.19 15:54:18.155  DEBUG_INIT
20.02.19 15:54:18.165  LISTENER    ( WARN    ) : Notifier/LDAP server is master.schein.ig:7389
20.02.19 15:54:18.165  LDAP        ( PROCESS ) : connecting to ldap://master.schein.ig:7389
20.02.19 15:54:18.173  LDAP        ( INFO    ) : simple_bind as cn=admin,dc=schein,dc=ig
20.02.19 15:54:18.173  LISTENER    ( INFO    ) : connecting to notifier master.schein.ig:6669
20.02.19 15:54:18.173  LISTENER    ( INFO    ) : connection to 10.200.43.60 failed with errorcode 111: Connection refused
20.02.19 15:54:18.173  LISTENER    ( ERROR   ) : failed to connect to any notifier
20.02.19 15:54:18.174  LISTENER    ( WARN    ) : can not connect any server, retrying in 30 seconds
root@master:~# univention-directory-listener-ctrl status
Listener status:
 down: univention-directory-listener: 4122s

Error: [Errno 111] Connection refused
Current Notifier ID on "master.schein.ig"


/usr/sbin/univention-directory-listener-ctrl: line 100: [: : integer expression expected
Last Notifier ID processed by local Listener:
 416756

Last transaction processed:
 416756 zoneName=schein.ig,cn=dns,dc=schein,dc=ig m

Solution

The transaction file seems to be corrupt
Check this artikle, to repair your transaction file:

Mastodon