-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btrfs-receive complains about not being able to open its temporary file(s) (e.g. o123802-148688-0) #147
Comments
Additional info: I've added -E0 and multiple -v options to btrfs-receive, this is how it looks in the debug log:
So it looks like btrfs-receive:
When run with -E0, the receiving side is simply missing the above file. |
For the record, still happening with: kernel: 4.20.12 |
Exactly the same behavior on kernel 5.1.18 / 5.2.1 / 5.2.2 |
You weren't doing any deduplication on the source volume? That could cause issues I've heard. Zygo/bees#115 |
No, no dedupe took place. |
For the record I still have the btrfs filesystem mentioned in the first post - in case it could help with this bug. |
For the time beeing i created a new subvol and rsynced the content but i also preserved the original subvol and snapshots for testing if needed. |
+1, also encountered this... Did not use bees or other deduplicaions utils |
I get the same "Error: utimes ...." on a particular file system, when using btrfs send and receive (with -p or -c options) to move snapshots to another filesystem (on another disk) ... even tried reformating the filesystems on both source and destination disk but it doesn't solve the problem It only happens when using -p or -c options, but if i send the full subvolume (without -p or -c options) it works without any problem ... Also if i use the oldest snapshot as parent/clone-source (with -p or -c options) it works without problem, it only happens if i want to use a more recent snapshot as parent/clone-source Also if i delete all snapshots older than the snapshot i want to use as parent/clone-source (and i.e. make that snapshot the oldest remaining snapshot) it works without problem ... |
I'm encountering a similar problem: |
With btrfs-progs v5.4.1, I see root@myhost:/mnt/mymount# btrfs receive -E 0 . < send-output.btrfs
At snapshot VirtualBox_brad_latest
ERROR: cannot open /mnt/mymount//VirtualBox_brad_latest/o776-18725303-0: No such file or directory
ERROR: chown o776-18725303-0 failed: No such file or directory
ERROR: chmod o776-18725303-0 failed: No such file or directory
ERROR: utimes o776-18725303-0 failed: No such file or directory
ERROR: cannot open /mnt/mymount//VirtualBox_brad_latest/o777-18725303-0: No such file or directory
ERROR: chown o777-18725303-0 failed: No such file or directory
ERROR: chmod o777-18725303-0 failed: No such file or directory
ERROR: utimes o777-18725303-0 failed: No such file or directory |
There is a patch currently on btrfs/misc-next that can help to fix this issue on the kernel side: As this commit is tagged for stable, maybe @kdave will queue it for the next rc maybe? |
That patch has been merged to Linus' tree as 518837e65068c385dddc0 and released in stable 5.10.11 |
If the errors occurs again, I will give it a try. I’ve never compiled a kernel, though. |
@bronger kernel 5.4.93 (current stable of 5.4) also has the fix. If your distribution updates their kernel to the latest stable, it also could be there... So apparently no need to compile a kernel :) |
I have been experiencing exactly this since June 2021 (new system build). It's still happening with linux kernel 5.13.19 and btrfs-progs v5.14.1 As a work-around, I have been using the oldest snapshot as the parent for each differential backup as mentioned above. @SudoerReodus has the issue been fixed for you? |
@cphuntington97 I created a new filesystem and used rsync to transfer files from the old one to new one and then got rid of the old one, which so far has solved the issue for me. |
able to reproduce this (or at least an issue with the same symptoms) on linux 6.12.4 and btrfs-progs v6.12 |
@gandalfs-cat Since the original report is very old, mind to open a new issue? Furthermore, did your fs has been mounted using older kernel and set any read-only snapshot to RW in the past? |
The original report is very old, closing the issue. If anyone hits similar errors during receiving, please open a new issue, possibly with the extra info:
|
Could you point us to the new issue for this? Thank you! |
thanks for the fast response! the source filesystem is an elderly one, im not sure how to get a number but i'd guess its been around maybe ~5 years (im pretty sure its been mounted on kernels < 5.14.2); however the snapshot is new (created with the same kernel as in original comment). it is possible i set some unrelated (and since-deleted) ro snapshot to rw at some point on this filesystem, but not this snapshot. at present there are no other snapshots on the source filesystem. the send/receive is not incremental, and i strongly doubt any process with sufficient permissions would've made modifications to the receiving subvolume mid transfer. i did discover there is also some filesystem corruption in the source filesystem, i believe mounting on windows at some point (via winbtrfs) resulted in an unremovable directory called sorry for the noise! |
If the fs is not corrupted and during receive no kernel error messages, then it must be a bug. Firstly mind to run a (And don't forget to open a new issue, thanks) |
(I made the post on mailing list as well but it will get/got burdened under emails - so adding issue here as well)
I have small btrfs filesystem (originally used for systemd's containers, mounted over /var/lib/machines as a loopback). The filesystem is fully clean - or at least seems so - no errors of any kind are reported via btrfs-scrub or btrfs-check.
The structure is as follows:
The interesting (problematic) part is xenial -> xenial2 -> back1 -> back2
As I recreated my main filesystem as btrfs, I wanted to move the old stuff with btrfs send/receive - and everything worked fine except back2.
The last of the above commands exits with
ERROR: cannot open /var/lib/machines/back2/o123802-148688-0: No such file or directory
.This looks like a bug, though perhaps I'm doing something fundamentally wrong. The sequence is 100% reproducible (I keep the source fs intact - so I can provide any debug output or assist as necessary).
Tested (so far) with:
kernel version: 4.18.3, 4.18.9
btrfs-progs: 4.17.1
The text was updated successfully, but these errors were encountered: