Problem
Running system diagnosis on UMC gives a tracebackas error as follows:
Problem: Check Samba replication status for errors
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/__init__.py", line 280, in execute
result = execute(umc_module, **kwargs)
File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/41_samba_tool_showrepl.py", line 146, in run
problems = list(drs.replication_problems())
File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/41_samba_tool_showrepl.py", line 98, in replication_problems
for replica_info, neighbour in self.neighbours():
File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/41_samba_tool_showrepl.py", line 93, in neighbours
(info_type, info) = self._replica_info(replica_info_direction)
File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/diagnostic/plugins/41_samba_tool_showrepl.py", line 88, in _replica_info
(info_type, info) = self.drsuapi.DsReplicaGetInfo(self.handle, 1, req1)
NTSTATUSError: (3221356597, 'The operation cannot be performed.')
Environment
Additionally when running samba-tool drs showrepl
on the console you might see similar output:
Solution
This might be caused by some errors in the configuration files of samba or after an update where samba has not been restarted. Try to fix as follows:
root@ucs:~# ucr commit /etc/samba/*
root@ucs:~# /etc/init.d/samba restart