rdiff-backup
rdiff-backup copied to clipboard
Backup fails with OSError: [Errno 61] No data available (on some video files ?)
Hi,
I am seeing the following error while backing up my home directory (Ubuntu 22.04, rdiff-backup v. 2.0.5):
Processing changed file Vidéos/formation_xrpu_personnalisation_27-09-2021 15:33:43.webm.mov
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 32, in
The file ~/Vidéos/formation_xrpu_personnalisation_27-09-2021 15:33:43.webm.mov does exist and is readable, it's a legitimate video file. I encountered the same error with other videos files in other directories. Maybe it' not cause by them being videos but rather their size, I don't know.
Hi @alci63
Could you problem more details about your problem:
- The full command line you ran to generate the error.
- The output of the command line with
-v 9
to generate verbose output.
Thanks
According to POSIX error code: Errno 61: ENODATA
ENODATA
The named attribute does not exist, or the process has no
access to this attribute; see [xattr(7)](https://man7.org/linux/man-pages/man7/xattr.7.html).
In POSIX.1-2001 (XSI STREAMS option), this error was
described as "No message is available on the STREAM head
read queue".
Strangely, it fail on file.read()
instead of getxattr()
Could you check if you have any xattr on this file ?
The file does not seem to be any xattr on the file (lsattr reports nothing but dashes).
But there is another point : to simplify my test case, I tried to copy the file to another directory, to backup that directory alone. Doing that, I have an error in cp
:
❯ cp Vidéos/formation_xrpu_personnalisation_27-09-2021\ 15:33:43.webm.mov test-rdb/ cp: error reading 'Vid'$'\303\251''os/formation_xrpu_personnalisation_27-09-2021 15:33:43.webm.mov': No data available
So the problem is probably in my FS, and not in rdiff-backup. I'll investigate this and come back with the root cause.
That said, deja-dup just ignored (and reported) the error on the file, and continued the backup. Maybe this would be a better behaviour than to stop the whole backup.
That said, deja-dup just ignored (and reported) the error on the file, and continued the backup. Maybe this would be a better behaviour than to stop the whole backup.
We can probably do this now that we know which error code needs to be ignored.
I thought a bit more about it, and as you wrote, it might be due to some strangeness of your file system, and this shouldn't be simply be skipped. Other files on the same file system might not show the behaviour but still be corrupt, so failing altogether is IMHO the right decision. What do you think?
No reaction, closing. Re-open if necessary.