On a regular base Icinga2 reports when running check_univention_replication on our Backup Domain Controller: CRITICAL: no change of listener transaction id for last 10 checks (nid=6579 lid=cat: /var/lib/univention-directory-listener/notifier_id: Permission denied)
With Bug #41261 fixed the file /var/lib/univention-directory-listener/notifier_id is now created newly and renamed after each transaction; thus the file now has the correct permissions since UCS-4.1-2 errata
You didnt mention the version you are using. This should be provided before it makes sense to dig in deeper.
The version is tagged on the thread.
The server was installed with 4.2 and upgraded to 4.3-1.
Yes, I found those bug report. But this behaves differently. The file is create correctly. And I can see that the mentioned bugfix is in place since the inode number changes each time the file is written. That’s what written in the fix description. The file is moved and recreated each time.
What happens in our case is, that after some time, over night or so, the permissions on this file changes to 600, as the ls before shows.
Are there any housekeeping jobs that UCS performs?
Cleaning up logfiles, checking permissions, …
I must admit that I didnt look at the tags. And looking at this I would say that it is less helpful as it doesnt even provide the number of the point release, not to mention the errata level.
In general it would be helpful if the steps “what have I already done to narrow down the issue” are mentioned in the first description. This helps to speed up the discussion.
There are housekeeping jobs triggered by cron but it is possible that this behavior is caused by the listener itself.
I dont know Icinga but I would expect that you should be able to figure out from their event log when the permission changes more or less exactly. With this information you could look at the files in /var/log/univention/ or the cronjobs (see /var/log/syslog) what might have caused the change.
same issue here w/ up-to-date UCS 4.3-3 errata430. The system was originally installed with version 3.2-x in autumn 2014 and then successfully updated until now. It is only now that the internal Nagios is noticed.
I restartet service w/ systemctl restart univention-directory-listener.service
Let’s see how long permissions remain correct.
Is there already a permanent fix or does hardly anyone use the Nagios app?
It will check the umask of the currently running UDL process. It should be 0022.
If it is not: some UDL module changed the umask to some other value and did not restore it back. We just experienced the same problem yesterday here internally at Univention with the BareosÂą listener module. You can use the following command to have a look it such an obvious faulty UDL module exists:
Bareos listener module also seems to be the cause here. Should I also mention this in the bug report or forward it to Bareos or have you thankfully already done so?
(save it to a file “PATCH” and apply it with sudo patch /usr/lib/univention-directory-listener/system/univention-bareos.py PATCH; after that restart UDL with sudo systemctl restart univention-directory-listener)