Code Monkey home page Code Monkey logo

Comments (6)

timharton avatar timharton commented on July 20, 2024

Re ran btrbk with these settings:

sudo /usr/sbin/btrbk -q -v -l info -c /etc/btrbk/btrbk-#####.conf run 

This is the first part of the output:

btrbk command line client, version 0.19.3  (Thu Jul  9 11:04:04 2015)
Using configuration: /etc/btrbk/btrbk-#######.conf
Creating subvolume snapshot for: /mnt/btr_system/@
>>> /mnt/btr_system/btrbk_snapshots/@.20150709_4
Creating subvolume snapshot for: /mnt/btr_system/@home
>>> /mnt/btr_system/btrbk_snapshots/@home.20150709_4
Creating subvolume snapshot for: /mnt/btr_system/@vms
>>> /mnt/btr_system/btrbk_snapshots/@vms.20150709_4
Checking for missing backups of subvolume "/mnt/btr_system/@" in: {#######}/mnt/btrfs/btrbk/#####/
No missing backups found
Creating subvolume backup (send-receive) for: /mnt/btr_system/@
Receiving from snapshot: /mnt/btr_system/btrbk_snapshots/@.20150709_4
Incremental from parent snapshot: /mnt/btr_system/btrbk_snapshots/@.20150709_3
>>> {#######}/mnt/btrfs/btrbk/#####/@.20150709_4
At subvol /mnt/btr_system/btrbk_snapshots/@.20150709_4

It seems to be occurring after sending an incremental snapshot to my server.

from btrbk.

digint avatar digint commented on July 20, 2024

Even with the latest btrfs-progs, you will still see the At subvol ... messages. These are generated by btrfs send on stderr, which btrbk does not catch and process. This is an issue and I won't fix this on btrbk, since we want to see the real errors on stderr if something fails. I will try to provide patches to btrfs-progs for disabling this, but for now we all have to live with it...

The -q option only disables the summary display at the end of processing, and does not affect stderr output (btrbk messages as well as output from btrfs commands).

from btrbk.

digint avatar digint commented on July 20, 2024

I fixed this logging problem by catching and filtering stderr from external commands (btrfs-progs). It's on the "open3" branch, and I will merge this to master as soon as I performed some more testing on several error cases.

I would apreciate if you (and also my GitHub followers reading this) could give it a try, I'm especially interested on how this behaves on old Perl versions (I'm using perl-5.20.2, which comes with IPC::Open3 v1.16 included on my system).

from btrbk.

timharton avatar timharton commented on July 20, 2024

Will do

from btrbk.

digint avatar digint commented on July 20, 2024

After digging deeper into the perl and file descriptor hell, I rewrote the stderr catching code, which is now in the "run_cmd_open3" branch (the old "open3" branch got deleted).
I did much testing, and it still produces deadlocks in some special test cases. I could not observe deadlocks with normal btrbk calls though, but as long as I'm not convinced that everything is correct I will not merge this.

from btrbk.

digint avatar digint commented on July 20, 2024

fixed in btrbk-0.21.0

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.