digint / digint/btrbk

failed to clone extents

Open
#565 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
2.1k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Hi, btrbk sending to ssh targets often fails due to "failed to clone extents".

How can I fix that, how can I find the failing subvolume to drop and re-transfer?
I tried the `btrfs send ... >/dev/null` only on the remote machine, that works without errors.

```
Creating incremental backup...
Creating backup: /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
[send/receive] target: /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
[send/receive] source: mmu:/mnt/btrfs-top-lvl/snapshots/root/root.20231031T081700+0100
[send/receive] parent: mmu:/mnt/btrfs-top-lvl/snapshots/root/root.20231023T153709+0200
in @ 0.0 kiB/s, out @ 0.0 kiB/s, 156 MiB total, buffer 100% full
summary: 156 MiByte in 1min 50.1sec - average of 1451 kiB/s
[send/receive] checking target metadata: /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
ERROR: Failed to send/receive subvolume: mmu:/mnt/btrfs-top-lvl/snapshots/root/root.20231031T081700+0100 [/mnt/btrfs-top-lvl/snapshots/root/root.20231023T153709+0200] -> /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
ERROR: ... Command execution failed (exitcode=1)
ERROR: ... sh: ssh -i '/root/.ssh/id_ed25519' -o compression=no root@mmu 'btrfs send -p '\''/mnt/btrfs-top-lvl/snapshots/root/root.20231023T153709+0200'\'' --proto 2 --compressed-data '\''/mnt/btrfs-top-lvl/snapshots/root/root.20231031T081700+0100'\'' | mbuffer -v 1 -q -m 5% | lz4 -c' | lz4 -d -c | mbuffer -v 1 -m 5% | btrfs receive '/mnt/local/data/archive/mmu/root/'
ERROR: ... failed to clone extents to usr/lib/python3.11/site-packages/numpy/distutils/__pycache__/ccompiler_opt.cpython-311.opt-1.pyc: Invalid argument
[delete] target: /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
WARNING: Deleted partially received (garbled) subvolume: /mnt/local/data/archive/mmu/root/root.20231031T081700+0100
ERROR: Error while resuming backups, aborting
Created 0/2 missing backups
```
```
btrbk --version
btrbk command line client, version 0.32.6-dev
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.