Skip to content

cifs destination exception: listxattr failed #120

@jbd

Description

@jbd

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions