Comments (6)
Thanks for the bug report!
At some point, btrfs subvolume show
returns an error, which is not correctly parsed by btrbk (causing the above error).
If you run btrbk with -l debug
, you will be able to see what command fails exactly. Could you please paste the debug output here? I'll dig into this later.
from btrbk.
Hi, here the output
btrbk command line client, version 0.19.1 (Sat Jun 6 16:21:30 2015)
Using configuration: /foo/bar/btrbk.conf
### btrfs subvolume show '/home' 2>&1
Command execution successful
Parsed 11 subvolume detail items: /home
### btrfs subvolume list -a -c -u -q -R '/home'
Command execution successful
Parsed 39 total subvolumes for filesystem at: /home
Found 4 subvolume children of: /home
### btrfs subvolume show '/mnt/btrfs_bkp' 2>&1
Command execution successful
Real path for subvolume "/mnt/btrfs_bkp" is: ERROR
ERROR: process died unexpectedly (btrbk v0.19.1)
Please contact the author: Axel Burri <[email protected]>
Stack Trace:
----------------------------------------
Use of uninitialized value $key in concatenation (.) or string at /usr/sbin/btrbk line 367, <FILE> line 95.
at /usr/sbin/btrbk line 119, <FILE> line 95.
main::__ANON__("Use of uninitialized value \$key in concatenation (.) or strin"...) called at /usr/sbin/btrbk line 367
main::check_file("ERROR", HASH(0x19e4350)) called at /usr/sbin/btrbk line 632
main::btrfs_subvolume_detail(HASH(0x1941280)) called at /usr/sbin/btrbk line 291
main::vinfo_root(HASH(0x1941280)) called at /usr/sbin/btrbk line 1728
/mnt/btrfs_bkp is an empty directory (= mountpoint for my usb-drive, whenever it is attached. Currently it isn't...)
Since the top-level directory ('/') is a btrfs-volume as well, /mnt/btrfs_bkp is a subdirectory within a btrfs-device. Might this be an issue?
from btrbk.
I traced the error down to btrfs-progs < 3.17.3, which returns exit status 0 on errors:
commit 05afee34683f5a57fba0b2f55375bef592bb3987
btrfs-progs: fix return value problem for btrfs sub show
This totally confuses btrbk ("Command execution successful") and leads to your error.
Fixed in: 16cfb60
from btrbk.
@bk1285 please confirm that you are using btrfs-progs < 3.17.3 and btrbk-0.19.2-dev (on master branch) fixes the problem.
from btrbk.
Great! Works now for me with btrbk-0.19.2-dev and btrfs-progs version 3.17!
Regards,
Bernd
from btrbk.
fix included in btrbk-0.19.2
from btrbk.
Related Issues (20)
- Clean interrupted ssh transfers
- Prevent incomplete backups from blocking progress
- Is it safe to dedupe snapshots on the server and the client?
- Is my configuration wrong? I keep getting snapshots in the wrong folder HOT 6
- Failed to fetch subvolume detail for snapshot_dir HOT 1
- Double daily backups sometimes... HOT 1
- understanding target_preserve_min
- Is 650 GB per day between hard disks connected by 1 GBit ethernet ok? HOT 1
- Feature request : BTRBK + grub-btrfs - Restore the snapshot currently booted - like Timeshift
- Why is btrbk only creating snapshots and not transfering?
- dry-run ignores lock
- whatever default shell is used despite it is not a posix compatible shell
- Not optimal behavior for low quality network connections
- [Question] How to specify clone sources from snapshots of other unrelated subvolumes?
- ERROR: ... unable to destroy quota group: Device or resource busy
- ERROR: clone: did not find source subvol HOT 4
- Question: duplicated instance when /etc/crontab set to run hourly at 00 minute HOT 1
- [Question] Quarterly retention
- [Feature Request] configurable timestamps / names for snapshots
- snapshot_dir required even when `snapshot_create` set to `no`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrbk.