Problems using source-directory w/o xattr

Hi,

I tried using restic with a source - directory being a cifs-mount. Trying to run restic backup on a newcly created repository throws an error:
open repository
enter password for repository:
repository 86c6846e opened successfully, password is correct
lock repository
rclone: 2018/05/22 19:25:20 ERROR : locks: error listing: directory not found
load index files
rclone: 2018/05/22 19:25:23 ERROR : index: error listing: directory not found
rclone: 2018/05/22 19:25:23 ERROR : snapshots: error listing: directory not found
start scan on [/mnt/photos]
start backup on [/mnt/photos]
error: NodeFromFileInfo: Listxattr: xattr.List /mnt/photos : no data available
new /mnt/, saved in 0.022s (0 B added, 13 B metadata)

Files:           0 new,     0 changed,     0 unmodified
Dirs:            1 new,     0 changed,     0 unmodified
Data Blobs:      0 new
Tree Blobs:      2 new
Added:      377 B

processed 0 files, 0 B in 0:16
snapshot 99ae013a saved
context canceled B, total 32856 files 13.350 GiB, 1 errors

Notice how restic says 0 files processed but a total of 32856 files found? Based on this errormessage I guess that restic has problems with source-directories not supporting extended attributes.
Trying to restore the backup fails:
restic -r rclone:gdrive:restic --verbose --verbose restore 99ae013a --target /tmp/tmporestore
enter password for repository:
repository 86c6846e opened successfully, password is correct
restoring <Snapshot 99ae013a of [/mnt/photos] at 2018-05-22 19:25:23.762135498 +0200 CEST by removed*> to /tmp/tmprestore
ignoring error for /mnt: Lchown: lchown /tmp/tmprestore/mnt: operation not permitted
There were 1 errors

There are no permission problems, the user running restic has full access on the mount.

I thought I ask in this forum before I open a bug - report for this. Does anyone have a similar problem?

EleRas

Please open an issue on GitHub so we can track it, it’s a bug. When the extended attributes couldn’t be read, restic should continue nonetheless.

Can you check what’s in the snapshot at all? Run restic ls -l latest to get a listing.

I submitted a bug - report (https://github.com/restic/restic/issues/1800)

EleRas

1 Like