Closed mfgbhatti closed 1 month ago
One thing is AFAIS that you hit bug https://github.com/openSUSE/snapper/issues/856:
WAR libsnapper(3328) Client.cc(check_permission):436 - THROW: no permissions
But that should not cause further problems.
What really looks strange is this:
[ALPM-SCRIPTLET] Invalid snapshot '--type'.
As if a program passes --type
instead of a snapshot number.
I am using snap-pac. It was working as expected before I restored. There is also pre-upgrade snapshot [ALPM-SCRIPTLET] Creating snapshot failed.
One interesting thing happening as you can see in ls -la /.snapshot
drwxr-x---+ 1 root root 24 Apr 19 18:34 .
drwxr-xr-x 1 root root 158 Apr 18 18:35 ..
drwxr-xr-x 1 root root 32 Apr 17 23:55 825
drwxr-xr-x 1 root root 32 Apr 19 00:45 826
drwxr-xr-x 1 root root 32 Apr 19 00:45 827
drwxr-xr-x 1 root root 32 Apr 19 00:48 828
But in snapper.log
I can still see MIL libsnapper(3038) Snapshot.cc(read):344 - found 5 snapshots
After upgrading to latest version, everything is working as expected. Here is the latest snapper.log
.
MIL libsnapper(3004) Snapper.cc(Snapper):97 - Snapper constructor
MIL libsnapper(3004) Snapper.cc(Snapper):98 - snapper version 0.11.0
MIL libsnapper(3004) Snapper.cc(Snapper):99 - libsnapper version 7.4.3
MIL libsnapper(3004) Snapper.cc(Snapper):100 - config_name:root root_prefix:/ disable_filters:false
MIL libsnapper(3004) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/root
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:FSTYPE value:btrfs
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:QGROUP value:1/0
ERR libsnapper(3004) Btrfs.cc(evalConfigInfo):116 - qgroup '1/0' does not exist
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:SYNC_ACL value:yes
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value:farhan
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel
MIL libsnapper(3004) Snapper.cc(Snapper):130 - subvolume:/ filesystem:btrfs
MIL libsnapper(3004) Snapper.cc(loadIgnorePatterns):204 - number of ignore patterns:8
MIL libsnapper(3004) Snapshot.cc(read):340 - found 3 snapshots
WAR libsnapper(3004) FileUtils.cc(SDir):88 - THROW: open failed path://.snapshots/830 errno:2 (No such file or directory)
WAR libsnapper(3004) Btrfs.cc(checkSnapshot):484 - CAUGHT: open failed path://.snapshots/830 errno:2 (No such file or directory)
WAR libsnapper(3004) FileUtils.cc(SDir):88 - THROW: open failed path://.snapshots/831 errno:2 (No such file or directory)
WAR libsnapper(3004) Btrfs.cc(checkSnapshot):484 - CAUGHT: open failed path://.snapshots/831 errno:2 (No such file or directory)
MIL libsnapper(3004) AsciiFile.cc(get_value):1076 - key:BACKGROUND_COMPARISON value:yes
MIL libsnapper(3004) Comparison.cc(Comparison):60 - num1:830 num2:831
MIL libsnapper(3004) Comparison.cc(load):272 - num1:830 num2:831
MIL libsnapper(3004) Comparison.cc(create):141 - num1:830 num2:831
MIL libsnapper(3004) Btrfs.cc(cmpDirs):1360 - special btrfs cmpDirs
MIL libsnapper(3004) Btrfs.cc(process):1331 - dir1:'//.snapshots/830/snapshot' dir2:'//.snapshots/831/snapshot'
MIL libsnapper(3004) Btrfs.cc(cmpDirs):1372 - stopwatch 3.184126s for comparing directories
MIL libsnapper(3004) Comparison.cc(create):161 - found 1256 lines
MIL libsnapper(3004) Comparison.cc(save):318 - num1:830 num2:831
MIL libsnapper(3004) Snapper.cc(~Snapper):142 - Snapper destructor
MIL libsnapper(3004) snapperd.cc(main):315 - Exiting
Unclear cause but is fixed now.
Operating System: Linux arch 6.8.7-arch1-1
Versions: snapper version 0.10.7 libsnapper version 7.4.0
Snapper Config:
Pacman Hooks: Yes, I am using snap-pac for pre and post upgrade snapshots
Btrfs Subvolumes:
Snapper Log:
Pacman Log:
Snapshots Directory Permissions:
Command
snapper -c root create --description test
worked but it created two single snapshots. Running same command again produced one snapshot. Just read snapper log, I already pasted above, there is a discrepancy. There was only one snapshot as you can see in btrfs output but snapper is reportingfound 2 snapshots
. This behavior started after I restored a snapshot by using live arch usb.Steps Taken to resolve: