attic
attic copied to clipboard
cifs destination exception: listxattr failed
Hi,
I'm using Attic 0.13 from Debian Jessie and I've got a problem with my CIFS repository. It was working a few days ago, and of course, I'm absolutely unable to provide you what changed (did a bunch of apt-get upgrade)
My backup script looks like that :
REPOSITORY=/mnt/cifs
ATTIC_PASSPHRASE="XXXX"
export ATTIC_PASSPHRASE
# excluded directories
attic create --stats \
$REPOSITORY::`date +%Y-%m-%d` \
/data \
--exclude /data/home/*/.cache \
--exclude /data/volatile \
--exclude '*.pyc' \
--exclude '*.o' \
And I've got this traceback :
Traceback (most recent call last):
File "/usr/bin/attic", line 3, in <module>
main()
File "/usr/lib/python3/dist-packages/attic/archiver.py", line 715, in main
exit_code = archiver.run(sys.argv[1:])
File "/usr/lib/python3/dist-packages/attic/archiver.py", line 705, in run
return args.func(args)
File "/usr/lib/python3/dist-packages/attic/archiver.py", line 128, in do_create
self._process(archive, cache, args.excludes, args.exclude_caches, skip_inodes, path, restrict_dev)
File "/usr/lib/python3/dist-packages/attic/archiver.py", line 177, in _process
os.path.join(path, filename), restrict_dev)
File "/usr/lib/python3/dist-packages/attic/archiver.py", line 169, in _process
archive.process_item(path, st)
File "/usr/lib/python3/dist-packages/attic/archive.py", line 361, in process_item
item.update(self.stat_attrs(st, path))
File "/usr/lib/python3/dist-packages/attic/archive.py", line 351, in stat_attrs
xattrs = xattr.get_all(path, follow_symlinks=False)
File "/usr/lib/python3/dist-packages/attic/xattr.py", line 25, in get_all
for name in listxattr(path, follow_symlinks=follow_symlinks))
File "/usr/lib/python3/dist-packages/attic/xattr.py", line 68, in listxattr
raise Exception('listxattr failed')
I've instrumented the code to show the error code, which "22" (Invalid argument). Any idea what could cause it ?
Do I understand correctly: CIFS is only the target fs where your repository is? But everything below /data is a Linux filesystem that should support extended attributes? Because it looks like it is stumbling over sth at the source, not at the target.
Since your report was a while ago: can you reproduce with attic 0.14?
OK. I thought it might be helpful to know that this issue can still be found in more current code. Posted on #1462
I believe I've run into the same issue as the OP from 2 years ago and I'm using a recent version of attic. I run attic through a systemd task and lately it has been failing. Here's the error output from systemd:
$USER@$HOST:~$ systemctl status attic
● attic.service - Backup via attic
Loaded: loaded (/etc/systemd/system/attic.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2016-09-10 23:33:35 EDT; 12min ago
Process: 5437 ExecStart=/root/attic.sh (code=exited, status=1/FAILURE)
Main PID: 5437 (code=exited, status=1/FAILURE)
$DATE_AND_TIME $HOST attic.sh[5437]: File "/usr/lib/python3.5/site-packages/attic/archive.py", line 365, in stat_attrs
$DATE_AND_TIME $HOST attic.sh[5437]: xattrs = xattr.get_all(path, follow_symlinks=False)
$DATE_AND_TIME $HOST attic.sh[5437]: File "/usr/lib/python3.5/site-packages/attic/xattr.py", line 25, in get_all
$DATE_AND_TIME $HOST attic.sh[5437]: for name in listxattr(path, follow_symlinks=follow_symlinks))
$DATE_AND_TIME $HOST attic.sh[5437]: File "/usr/lib/python3.5/site-packages/attic/xattr.py", line 68, in listxattr
$DATE_AND_TIME $HOST attic.sh[5437]: raise Exception('listxattr failed')
$DATE_AND_TIME $HOST attic.sh[5437]: Exception: listxattr failed
$DATE_AND_TIME $HOST systemd[1]: attic.service: Main process exited, code=exited, status=1/FAILURE
$DATE_AND_TIME $HOST systemd[1]: attic.service: Unit entered failed state.
$DATE_AND_TIME $HOST systemd[1]: attic.service: Failed with result 'exit-code'.
My OS is Arch Linux. Attic reports itself in the help as version 0.16. Does this look like a match for this issue and if so, what other info should I provide to help?