-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not search B-tree: Operation not permitted #757
Comments
There was no change that would affect the |
A quick hack to force the unprivileged search does not work (unsetting iter->use_search_tree manually). |
Well, it worked before upgrading, and never had that error.
Good to know, would be good to have the backups working again without root. |
Just rereading this, are either of those true in this case? I've given a path to a specific snapshot, and the parent directory is owned by the user. root@sam-backups:~# su - backup-laptop
backup-laptop@sam-backups:~$ ls -l
total 0
drwxr-xr-x 1 backup-laptop backup-laptop 40626 Mar 3 13:13 home
[...]
backup-laptop@sam-backups:~$ btrfs sub show home/2024-03-03
ERROR: Could not search B-tree: Operation not permitted
backup-laptop@sam-backups:~$
logout
root@sam-backups:~# btrfs sub list /home/backup-laptop/home/
[...]
ID 5854 gen 644248 top level 5 path home/backup-laptop/home/2024-03-03 |
Any recommendations on a workaround for this? I need to get something working again soon. |
Ok, workaround for now is |
That's dangerous and should not be done, perhaps except some highly restricted environments. |
The only alternative I have is to login directly as root with a passwordless SSH key... |
Maybe you can get some ideas from https://digint.ch/btrbk/doc/ssh_filter_btrbk.1.html |
That would be logging in as root, but restricting the commands to a whitelist, right? Would be nice to be able to do both (i.e. run all the basic backup btrfs commands as a restricted user). I'll take a look at incorporating it later regardless. |
After upgrading my (Debian) server, my backup scripts now get
ERROR: Could not search B-tree: Operation not permitted
when runningbtrfs sub show /home/backup-laptop/home/2024-03-03
. I assume this is probably some change caused by the kernel upgrade.Assuming this is not a bug, what is the expected way to achieve this without running as root? I use this command to check if the last snapshot was fully synced (e.g. the receive command didn't get killed by the machine shutting down or similar), by checking the output has something under 'Received UUID'.
The text was updated successfully, but these errors were encountered: