We should just totally exclude the socket directory for the messaging subsystem. This is always in os.path.join(lp.get("private dir"), "msg.sock") WARNING: The "server schannel" option is deprecated ERROR(<type 'exceptions.OSError'>): uncaught exception - [Errno 2] No such file or directory: '/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/backupfromdc/private/msg.sock/1170297' File "bin/python/samba/netcmd/__init__.py", line 183, in _run return self.run(*args, **kwargs) File "bin/python/samba/netcmd/domain_backup.py", line 1002, in run tar.add(path, arcname=arc_path) File "/usr/lib/python2.7/tarfile.py", line 1979, in add tarinfo = self.gettarinfo(name, arcname) File "/usr/lib/python2.7/tarfile.py", line 1851, in gettarinfo statres = os.lstat(name) Failed to create backup using: NSS_WRAPPER_HOSTS='/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/hosts' SOCKET_WRAPPER_DEFAULT_IFACE="44" RESOLV_WRAPPER_HOSTS="/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/dns_host_file" KRB5_CONFIG="/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/backupfromdc/etc/krb5.conf" KRB5CCNAME="/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/offlinebackupdc/krb5_ccache" ./bin/samba-tool domain backup offline -s /memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/backupfromdc/etc/smb.conf --targetdir=/memdisk/abartlet/a/b3695260/samba-ad-dc-2/bin/ab/tmp/reRkHzdzCl at /memdisk/abartlet/a/b3695260/samba-ad-dc-2/selftest/target/Samba4.pm line 2664. failed to start up environment 'offlinebackupdc' at /memdisk/abartlet/a/b3695260/samba-ad-dc-2/selftest/target/Samba.pm line 83. samba can't start up known environment 'offlinebackupdc' at /memdisk/abartlet/a/b3695260/samba-ad-dc-2/selftest/selftest.pl line 982. Samba can't provide environment '' at /memdisk/abartlet/a/b3695260/samba-ad-dc-2/selftest/target/Samba.pm line 48. Can't use string ("UNKNOWN") as a HASH ref while "strict refs" in use at /memdisk/abartlet/a/b3695260/samba-ad-dc-2/selftest/target/Samba4.pm line 2872. server_stdin_handler: samba: EOF on stdin - PID 1166242 terminating server_stdin_handler: samba: EOF on stdin - PID 845345 terminating server_stdin_handler: samba: EOF on stdin - PID 904025 terminating
This appears to be already fixed in Samba v4.10 (commit 1c16c0cfafb11cb3468401431ab84329102a632d), so closing bug.