Problem: Sysvol-sync - placing triggerfile with ssh failed

Problem

Sysvol-sync - placing triggerfile with ssh failed
You find error messages like this in the /var/log/univention/sysvol-sync.log file:

2020-11-22 08:15:40 ERROR [master] placing triggerfile with ssh failed with 1. (Could not chdir to home directory /dev/null: Not a directorybash: /dev/null/.bashrc: Not a directorytouch: cannot touch '/var/cache/univention-samba4/sysvol-sync/.trigger/schule1': Permission denied)

Solution

Please check the permissions of the directories in /var/cache/univention-samba4/sysvol-sync/.trigger of the machine, which is specified between the square brackets at the beginning of the error messages

root@master:~# ls -lst /var/cache/univention-samba4/sysvol-sync/.trigger
insgesamt 0
0 -rw-r--r-- 1 Schule2$  DC Slave Hosts   0 Dez 11 12:26 Schule2
0 -rw-r--r-- 1 Schule3$  DC Slave Hosts   0 Dez 11 12:25 Schule3
0 -rw-r--r-- 1 Schule4$  DC Slave Hosts   0 Dez 11 12:25 Schule4
0 -rw-r--r-- 1 opsi$	 DC Backup Hosts  0 Dez 11 12:25 opsi
0 -rw-r--r-- 1 Schule5$  DC Slave Hosts   0 Dez 11 12:25 Schule5
0 -rw-r--r-- 1 Schule6$  DC Slave Hosts   0 Dez 11 12:25 Schule6
0 -rw-r--r-- 1     8780  DC Slave Hosts   0 Nov 11 12:10 Schule1
0 -rw-r--r-- 1     6152  DC Slave Hosts   0 Aug 29  2019 Schule7

As you can see the owner of the directory should be the Host. The group membership should correspond to the server role. If it is not, the server machine account is not allowed to place the trigger file. Simply chown the directory to the host machine account:

root@master:~# chown Schule1$ /var/cache/univention-samba4/sysvol-sync/.trigger/Schule1
root@master:~# chown Schule7$ /var/cache/univention-samba4/sysvol-sync/.trigger/Schule7

Root Cause

This problem arises from reinstallations of domain members.
When reinstalling a server, simply shut down the original server and install the new one with the same hostname. If the join is not executed directly during the installation please do a complete:
univention-join
and not only …run-join-scripts

1 Like