snapraid-btrfs icon indicating copy to clipboard operation
snapraid-btrfs copied to clipboard

Recent snapper version might have broken snapraid-btrfs

Open mio-19 opened this issue 1 year ago • 7 comments

I updated my system last week. Now snapraid-btrfs can't find snapper configs for data drives

mio-19 avatar Apr 29 '24 02:04 mio-19

I have a PR in to fix this, but it's an easy patch. Change line 690 from

        sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*| //')"

to

        sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|│] //')"

D34DC3N73R avatar Apr 29 '24 18:04 D34DC3N73R

I was having the same problem after updating to snapper 0.11.0, and can confirm that the above patch from @D34DC3N73R fixed it. Now snapraid-btrfs ls prints my configs.

olnw avatar May 04 '24 14:05 olnw

And here I thought it was me... Setting up a new snapraid-btrfs snapper config and I could not get it to work, whatever I tried. I kept getting snapraid-btrfs: No snapper configs found for any data drives in /etc/snapraid.conf. I've read so many tutorials and finally checked this issues page and this PR fixed the issue :)

aodtcr avatar May 28 '24 08:05 aodtcr

While setting up a new config wasted a lot of hours troubleshooting, finally stumbled upon this post. Getting same error as @aodtcr .

Pulled new version from fork of @D34DC3N73R .

Unfortunately this does not work on my system either. When openening the file in vi, I see that the character after the first pipe character is not recognized. It is not a normal pipe character I think but I don't know the name of it and have not seen it before.

sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|**│**] //')"

Possibly related to locale settings?

Is there another way to achieve the same result?

maspiter avatar Jun 05 '24 08:06 maspiter

It's a "light vertical box drawing character" as outlined in PR #34 That sed command should match either the pipe character OR the vertical box drawing character since it looks like snapper 0.11.0 switched to the vertical box drawing character. Which version of snapper are you using? Were the extra asterisks added by you or is that how it actually looks in the command?

Check out the PR and you can see commands to test the output on your system.

D34DC3N73R avatar Jun 05 '24 15:06 D34DC3N73R

Thanks for your reply.

I installed snapper from Debian Bookworm repo, which is not the latest. I should have checked this.

When installing from the snapper repo, latest version, it seems to work.

maspiter avatar Jul 31 '24 10:07 maspiter