Skip to content

(Btrfs) Snapper doesn't find path (THROW: open failed)

I installed Btrfs with Snapper 2 weeks ago and just noticed that Snapper is throwing an error since day one, when creating snapshots.

I followed the Arch Wiki regarding Snapper, therefore my configuration looks like this:

Mountpoints:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot
└─nvme0n1p2 259:2    0   931G  0 part /var/log
                                      /home
                                      /.snapshots
                                      /

Fstab:

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=77c5b354-de1f-460e-a0be-ca0a34ee7e21	/         	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@	0 0

# /dev/nvme0n1p1
UUID=7EA9-7850      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	   0 2

# /dev/nvme0n1p2
UUID=77c5b354-de1f-460e-a0be-ca0a34ee7e21	/home     	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home	   0 0

# /dev/nvme0n1p2
UUID=77c5b354-de1f-460e-a0be-ca0a34ee7e21	/var/log  	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@log	   0 0

# /dev/nvme0n1p2
UUID=77c5b354-de1f-460e-a0be-ca0a34ee7e21	/.snapshots	btrfs     	rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@snapshots	0 0

I tried to manually create a snapshot, which seems to work:

[root@arch ~]# snapper list-configs
Config | Subvolume
-------+----------
root   | /
        
[root@arch ~]# snapper -c root list
 # | Type   | Pre # | Date | User | Cleanup | Description | Userdata
---+--------+-------+------+------+---------+-------------+---------
0  | single |       |      | root |         | current     |
         
[root@arch ~]# snapper -c root create --description reddit

[root@arch ~]# snapper -c root list
 # | Type   | Pre # | Date                            | User | Cleanup | Description | Userdata
---+--------+-------+---------------------------------+------+---------+-------------+---------
0  | single |       |                                 | root |         | current     |         
1  | single |       | Fri 18 Mar 2022 05:38:06 PM CET | root |         | reddit      |         

Taking a look at the snapper log reveals:

2022-03-18 17:38:06 MIL libsnapper(27865) Snapper.cc(Snapper):92 - Snapper constructor
2022-03-18 17:38:06 MIL libsnapper(27865) Snapper.cc(Snapper):93 - libsnapper version 0.9.1
2022-03-18 17:38:06 MIL libsnapper(27865) Snapper.cc(Snapper):94 - config_name:root disable_filters:false
2022-03-18 17:38:06 MIL libsnapper(27865) AsciiFile.cc(reload):115 - loading file /etc/snapper/configs/root
2022-03-18 17:38:06 MIL libsnapper(27865) AsciiFile.cc(getValue):242 - key:SUBVOLUME value:/
2022-03-18 17:38:06 MIL libsnapper(27865) AsciiFile.cc(getValue):242 - key:FSTYPE value:btrfs
2022-03-18 17:38:06 MIL libsnapper(27865) AsciiFile.cc(getValue):242 - key:QGROUP value:
2022-03-18 17:38:06 MIL libsnapper(27865) AsciiFile.cc(getValue):242 - key:SYNC_ACL value:no
2022-03-18 17:38:06 MIL libsnapper(27865) Snapper.cc(Snapper):125 - subvolume:/ filesystem:btrfs
2022-03-18 17:38:06 MIL libsnapper(27865) Snapper.cc(loadIgnorePatterns):195 - number of ignore patterns:8
2022-03-18 17:38:06 MIL libsnapper(27865) Snapshot.cc(read):274 - found 1 snapshots
2022-03-18 17:38:06 WAR libsnapper(27865) FileUtils.cc(SDir):91 - THROW: open failed path://.snapshots/1 errno:2 (No such file or directory)
2022-03-18 17:38:06 WAR libsnapper(27865) Btrfs.cc(checkSnapshot):481 - CAUGHT: open failed path://.snapshots/1 errno:2 (No such file or directory)
2022-03-18 17:38:08 WAR libsnapper(27865) Snapper.cc(calculateUsedSpace):790 - THROW: quota rescan or sync failed
2022-03-18 17:38:08 WAR libsnapper(27865) Client.cc(dispatch):1866 - CAUGHT: quota rescan or sync failed

It starts with the line:

FileUtils.cc(SDir):91 - THROW: open failed path://.snapshots/1 errno:2 (No such file or directory)

The path with a double / obviously doesn't' exist. However /.snapshots/* exists (including the snapshot numbered 1).

As I mentioned above, it seems like the snapshot is successful, but the error messages in the log bother me (they also appear when using automatic timeline snapshots through systemd timers, as recommended by the Wiki).

Anybody can help me out?

1 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
th4akh

Author

12
posts
19
comments
4
media
View profile
No comments archived yet. Reddit counts 2.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.