backup command raises FileNotFoundError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Unknown
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Triaged
|
Undecided
|
Unassigned |
Bug Description
upstream report with proposed fix: https:/
Since the upgrade in 'focal' to 4.13 the samba domain backup script fails if there is a dangling symbolic link in any of the directories included in the backup.
running backup on dirs: /var/lib/
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)
$ apt-cache policy samba
samba:
Installed: 2:4.13.
Candidate: 2:4.13.
Version table:
*** 2:4.13.
500 http://
500 http://
100 /var/lib/
2:
500 http://
The backup is executed as:
/usr/bin/samba-tool domain backup offline --targetdir=
tags: | added: jammy |
tags: | added: regression-release |
tags: | removed: server-todo |
I've uploaded updated packages that include the upstream fix in the security team's PPA here for testing:
https:/ /launchpad. net/~ubuntu- security- proposed/ +archive/ ubuntu/ ppa/+packages
If you do try them out, please let us know in this bug if that helped in your environment. Thanks!