digint / digint/btrbk

archive failing with ERROR: chown o257-311460-0 failed: No such file or directory

Open
#295 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Perl
Stars
2.1k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Running a command like

`btrbk --progress -v archive /mnt/usb/mobiledata/snapshots/ /mnt/local/data/archive/`

I always fail to do the complete archive:

```
Archiving subvolumes: /mnt/usb/mobiledata/snapshots/balintop/home/home.*
No common parent subvolume present, creating full backup...
Creating backup: /mnt/local/data/archive/balintop/home/home.20180807T111135+0200
[send/receive] target: /mnt/local/data/archive/balintop/home/home.20180807T111135+0200
[send/receive] source: /mnt/usb/mobiledata/snapshots/balintop/home/home.20180807T111135+0200
in @ 8183 kiB/s, out @ 8183 kiB/s, 26.5 GiB total, buffer 0% full
summary: 26.5 GiByte in 9h 02min 32.6sec - average of 854 kiB/s
[send/receive] checking target metadata: /mnt/local/data/archive/balintop/home/home.20180807T111135+0200
Creating incremental backup...
Creating backup: /mnt/local/data/archive/balintop/home/home.20190727T114502+0200
[send/receive] target: /mnt/local/data/archive/balintop/home/home.20190727T114502+0200
[send/receive] source: /mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200
[send/receive] parent: /mnt/usb/mobiledata/snapshots/balintop/home/home.20180807T111135+0200
in @ 0.0 kiB/s, out @ 0.0 kiB/s, 0.0 kiB total, buffer 0% full
summary: 0.0 kiByte in 27.6sec - average of 0.0 kiB/s
WARNING: [send/receive] (send=/mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200, receive=/mnt/local/data/archive/balintop/home) At subvol /mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200
WARNING: [send/receive] (send=/mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200, receive=/mnt/local/data/archive/balintop/home) ERROR: chown o257-311460-0 failed: No such file or directory
WARNING: [send/receive] (send=/mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200, receive=/mnt/local/data/archive/balintop/home) At snapshot home.20190727T114502+0200
[send/receive] checking target metadata: /mnt/local/data/archive/balintop/home/home.20190727T114502+0200
ERROR: Failed to send/receive btrfs subvolume: /mnt/usb/mobiledata/snapshots/balintop/home/home.20190727T114502+0200 [/mnt/usb/mobiledata/snapshots/balintop/home/home.20180807T111135+0200] -> /mnt/local/data/archive/balintop/home
[delete] options: commit-after
[delete] target: /mnt/local/data/archive/balintop/home/home.20190727T114502+0200
WARNING: Deleted partially received (garbled) subvolume: /mnt/local/data/archive/balintop/home/home.20190727T114502+0200
ERROR: Error while archiving subvolumes, aborting
Archived 1/5 subvolumes
WARNING: Skipping archiving of "/mnt/usb/mobiledata/snapshots/balintop/home/": At least one target aborted earlier
Completed within: 32587s (Fri Sep 20 23:48:55 2019)
```
I tried again after removing the failed subvolume, but then I get the same error on the next subvolume and so on.

btrfs check and btrfs scrub have found no errors.

This is the latest btrbk from github:

```
# btrbk --version
btrbk command line client, version 0.29.0-dev
```

Kernel is 5.2.15-gentoo and sys-fs/btrfs-progs-5.2.2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `btrbk --progress -v archive` command with the stated btrbk, kernel, and btrfs-progs versions, then trace the archive send/receive handling for the failing incremental subvolume. Compare the first and subsequent failed subvolumes; done means the archive completes without the `chown ... No such file or directory` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, perl
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.