Giter Club home page Giter Club logo

Comments (6)

digint avatar digint commented on August 17, 2024

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.

bk1285 avatar bk1285 commented on August 17, 2024

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.

digint avatar digint commented on August 17, 2024

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.

digint avatar digint commented on August 17, 2024

@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.

bk1285 avatar bk1285 commented on August 17, 2024

Great! Works now for me with btrbk-0.19.2-dev and btrfs-progs version 3.17!

Regards,
Bernd

from btrbk.

digint avatar digint commented on August 17, 2024

fix included in btrbk-0.19.2

from btrbk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.