I recently upgraded my domain controllers to 'jammy' and this bug has rematerialised:( I think the upstream commit to master must have been after the 4.15 release branch was forked. I checked the domain_backup.py script and the patch applied for 'focal' is absent.
Error message from the backup script:
running backup on dirs: /var/lib/samba/private /var/lib/samba /etc/samba
ERROR(<class 'FileNotFoundError'>): uncaught exception - [Errno 2] No such file or directory: '/var/lib/samba/dfs/netlogon'
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 1129, in run
if any(os.path.samefile(full_path, file) for file in all_files):
File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 1129, in <genexpr>
if any(os.path.samefile(full_path, file) for file in all_files):
File "/usr/lib/python3.10/genericpath.py", line 100, in samefile
s1 = os.stat(f1)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
I recently upgraded my domain controllers to 'jammy' and this bug has rematerialised:( I think the upstream commit to master must have been after the 4.15 release branch was forked. I checked the domain_backup.py script and the patch applied for 'focal' is absent.
Error message from the backup script:
running backup on dirs: /var/lib/ samba/private /var/lib/samba /etc/samba ror'>): uncaught exception - [Errno 2] No such file or directory: '/var/lib/ samba/dfs/ netlogon' python3/ dist-packages/ samba/netcmd/ __init_ _.py", line 186, in _run python3/ dist-packages/ samba/netcmd/ domain_ backup. py", line 1129, in run path.samefile( full_path, file) for file in all_files): python3/ dist-packages/ samba/netcmd/ domain_ backup. py", line 1129, in <genexpr> path.samefile( full_path, file) for file in all_files): python3. 10/genericpath. py", line 100, in samefile
ERROR(<class 'FileNotFoundEr
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
if any(os.
File "/usr/lib/
if any(os.
File "/usr/lib/
s1 = os.stat(f1)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
$ apt-cache policy samba 9+dfsg- 0ubuntu0. 2 9+dfsg- 0ubuntu0. 2 9+dfsg- 0ubuntu0. 2 500 gb.archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages security. ubuntu. com/ubuntu jammy-security/main amd64 Packages dpkg/status 4.15.5~ dfsg-0ubuntu5 500 gb.archive. ubuntu. com/ubuntu jammy/main amd64 Packages
samba:
Installed: 2:4.15.
Candidate: 2:4.15.
Version table:
*** 2:4.15.
500 http://
500 http://
100 /var/lib/
2:
500 http://