Bug 13604 - Offline backup races with messaging sockets
Summary: Offline backup races with messaging sockets
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.9.0rc3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Aaron Haslett (dead mail address)
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-04 10:03 UTC by Andrew Bartlett
Modified: 2019-07-04 21:36 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2018-09-04 10:03:05 UTC
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
Comment 1 Tim Beale 2019-07-04 21:36:35 UTC
This appears to be already fixed in Samba v4.10 (commit 1c16c0cfafb11cb3468401431ab84329102a632d), so closing bug.