Skip to content
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

Config is un use #21

Closed
NicoHood opened this issue Dec 5, 2016 · 11 comments
Closed

Config is un use #21

NicoHood opened this issue Dec 5, 2016 · 11 comments

Comments

@NicoHood
Copy link
Collaborator

NicoHood commented Dec 5, 2016

[arch@arch ~]$ sudo snap-sync
Select a mounted BTRFS device to backup to.
   1) e95284fd-f67a-4d64-af68-1454db9b11fa (/)
   2) e95284fd-f67a-4d64-af68-1454db9b11fa (/home)
   3) e95284fd-f67a-4d64-af68-1454db9b11fa (/.snapshots)
   4) 4f1cabfc-cd6b-4012-8ec6-9073d84f2300 (/mnt2)
   5) 80acb842-b065-4a11-9b88-71619b25f48b (/mnt)
   0) Exit
Enter a number: 4

You selected the disk with UUID 4f1cabfc-cd6b-4012-8ec6-9073d84f2300.
The disk is mounted at /mnt2.

Will backup //.snapshots/117/snapshot to /mnt2/test/root/117//snapshot
Continue with backup [Y/n]? 
At subvol //.snapshots/117/snapshot
Config is in use.

I am not sure why this happens. Snapper list gives me those entries:

[arch@arch ~]$ sudo snapper list
Type   | #   | Pre # | Date                            | User | Cleanup  | Description                                                                                                                        | Userdata                                                 
-------+-----+-------+---------------------------------+------+----------+------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------
single | 0   |       |                                 | root |          | current                                                                                                                            |                                                          
single | 1   |       | Mon 28 Nov 2016 06:26:07 PM CET | root | timeline | timeline                                                                                                                           |                                                          
pre    | 4   |       | Mon 28 Nov 2016 06:37:01 PM CET | root | number   | pacman -S arch-install-scripts                                                                                                     |                                                          
post   | 5   | 4     | Mon 28 Nov 2016 06:37:02 PM CET | root | number   | pacman -S arch-install-scripts                                                                                                     |                                                          
single | 11  |       | Tue 29 Nov 2016 12:00:08 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 35  |       | Wed 30 Nov 2016 12:00:08 AM CET | root | timeline | timeline                                                                                                                           |                                                          
pre    | 40  |       | Fri 02 Dec 2016 08:17:10 PM CET | root | number   | pacman -S git devtools                                                                                                             |                                                          
post   | 41  | 40    | Fri 02 Dec 2016 08:17:14 PM CET | root | number   | pacman -S git devtools                                                                                                             |                                                          
pre    | 42  |       | Fri 02 Dec 2016 08:20:20 PM CET | root | number   | pacman -U cower-16-1-x86_64.pkg.tar.xz                                                                                             |                                                          
post   | 43  | 42    | Fri 02 Dec 2016 08:20:21 PM CET | root | number   | pacman -U cower-16-1-x86_64.pkg.tar.xz                                                                                             |                                                          
pre    | 44  |       | Fri 02 Dec 2016 08:24:28 PM CET | root | number   | pacman -U pacaur-4.6.10-1-any.pkg.tar.xz                                                                                           |                                                          
post   | 45  | 44    | Fri 02 Dec 2016 08:24:29 PM CET | root | number   | pacman -U pacaur-4.6.10-1-any.pkg.tar.xz                                                                                           |                                                          
pre    | 46  |       | Fri 02 Dec 2016 08:30:22 PM CET | root | number   | pacman -Syu                                                                                                                        |                                                          
post   | 47  | 46    | Fri 02 Dec 2016 08:31:22 PM CET | root | number   | pacman -Syu                                                                                                                        |                                                          
pre    | 48  |       | Fri 02 Dec 2016 08:37:00 PM CET | root | number   | pacman --color never --noconfirm -S --asdeps gnuplot gconf                                                                         |                                                          
post   | 49  | 48    | Fri 02 Dec 2016 08:37:08 PM CET | root | number   | pacman --color never --noconfirm -S --asdeps gnuplot gconf                                                                         |                                                          
pre    | 50  |       | Fri 02 Dec 2016 08:38:31 PM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/harmony-player/harmony-player-0.4.3-1-x86_64.pkg.tar.xz --ask 36 --noconfirm                   |                                                          
post   | 51  | 50    | Fri 02 Dec 2016 08:38:34 PM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/harmony-player/harmony-player-0.4.3-1-x86_64.pkg.tar.xz --ask 36 --noconfirm                   |                                                          
single | 52  |       | Fri 02 Dec 2016 09:00:03 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 56  |       | Sat 03 Dec 2016 12:00:03 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 64  |       | Sat 03 Dec 2016 08:00:03 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 65  |       | Sat 03 Dec 2016 09:00:03 AM CET | root | timeline | timeline                                                                                                                           |                                                          
pre    | 66  |       | Sat 03 Dec 2016 09:46:46 AM CET | root | number   | pacman -Syu                                                                                                                        |                                                          
post   | 67  | 66    | Sat 03 Dec 2016 09:46:48 AM CET | root | number   | pacman -Syu                                                                                                                        |                                                          
single | 68  |       | Sat 03 Dec 2016 10:00:08 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 69  |       | Sat 03 Dec 2016 11:00:08 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 70  |       | Sat 03 Dec 2016 12:00:08 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 71  |       | Sat 03 Dec 2016 01:00:08 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 72  |       | Sat 03 Dec 2016 02:00:08 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 73  |       | Sat 03 Dec 2016 03:00:08 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 74  |       | Sat 03 Dec 2016 04:00:08 PM CET | root | timeline | timeline                                                                                                                           |                                                          
pre    | 75  |       | Sun 04 Dec 2016 01:13:58 AM CET | root | number   | pacman -U /home/arch/snap-sync/snap-sync-0.2.2-1-any.pkg.tar.xz                                                                    |                                                          
post   | 76  | 75    | Sun 04 Dec 2016 01:13:58 AM CET | root | number   | pacman -U /home/arch/snap-sync/snap-sync-0.2.2-1-any.pkg.tar.xz                                                                    |                                                          
single | 77  |       | Sun 04 Dec 2016 01:15:34 AM CET | root |          | latest incremental backup                                                                                                          | backupdir=test, uuid=4f1cabfc-cd6b-4012-8ec6-9073d84f2300
single | 78  |       | Sun 04 Dec 2016 02:00:26 AM CET | root | timeline | timeline                                                                                                                           |                                                          
pre    | 79  |       | Sun 04 Dec 2016 02:18:44 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-volumed/xfce4-volumed-0.1.13-7-x86_64.pkg.tar.xz --ask 36 --noconfirm                    |                                                          
post   | 80  | 79    | Sun 04 Dec 2016 02:18:46 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-volumed/xfce4-volumed-0.1.13-7-x86_64.pkg.tar.xz --ask 36 --noconfirm                    |                                                          
pre    | 81  |       | Sun 04 Dec 2016 02:19:10 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps libkeybinder3                                                                         |                                                          
post   | 82  | 81    | Sun 04 Dec 2016 02:19:10 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps libkeybinder3                                                                         |                                                          
pre    | 83  |       | Sun 04 Dec 2016 02:19:11 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps intltool                                                                              |                                                          
post   | 84  | 83    | Sun 04 Dec 2016 02:19:11 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps intltool                                                                              |                                                          
pre    | 85  |       | Sun 04 Dec 2016 02:19:20 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-pulseaudio-plugin/xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz --ask 36 --noconfirm |                                                          
post   | 86  | 85    | Sun 04 Dec 2016 02:19:22 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-pulseaudio-plugin/xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz --ask 36 --noconfirm |                                                          
pre    | 87  |       | Sun 04 Dec 2016 02:20:51 AM CET | root | number   | pacman -Rs xfce4-volumed                                                                                                           |                                                          
post   | 88  | 87    | Sun 04 Dec 2016 02:20:51 AM CET | root | number   | pacman -Rs xfce4-volumed                                                                                                           |                                                          
pre    | 89  |       | Sun 04 Dec 2016 02:25:39 AM CET | root | number   | pacman -S xfce4-notifyd                                                                                                            |                                                          
post   | 90  | 89    | Sun 04 Dec 2016 02:25:39 AM CET | root | number   | pacman -S xfce4-notifyd                                                                                                            |                                                          
pre    | 91  |       | Sun 04 Dec 2016 02:27:43 AM CET | root | number   | pacman -Rs xfce4-pulseaudio-plugin                                                                                                 |                                                          
post   | 92  | 91    | Sun 04 Dec 2016 02:27:44 AM CET | root | number   | pacman -Rs xfce4-pulseaudio-plugin                                                                                                 |                                                          
pre    | 93  |       | Sun 04 Dec 2016 02:28:08 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps libkeybinder3                                                                         |                                                          
post   | 94  | 93    | Sun 04 Dec 2016 02:28:08 AM CET | root | number   | pacman --color never --noconfirm -S --asdeps libkeybinder3                                                                         |                                                          
pre    | 95  |       | Sun 04 Dec 2016 02:28:17 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-pulseaudio-plugin/xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz --ask 36 --noconfirm |                                                          
post   | 96  | 95    | Sun 04 Dec 2016 02:28:17 AM CET | root | number   | pacman -Ud /home/arch/.cache/pacaur/xfce4-pulseaudio-plugin/xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz --ask 36 --noconfirm |                                                          
pre    | 97  |       | Sun 04 Dec 2016 02:30:35 AM CET | root | number   | pacman -U xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz                                                                        |                                                          
post   | 98  | 97    | Sun 04 Dec 2016 02:30:35 AM CET | root | number   | pacman -U xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz                                                                        |                                                          
single | 99  |       | Sun 04 Dec 2016 03:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 100 |       | Sun 04 Dec 2016 04:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 101 |       | Sun 04 Dec 2016 05:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 102 |       | Sun 04 Dec 2016 06:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 103 |       | Sun 04 Dec 2016 07:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 104 |       | Sun 04 Dec 2016 08:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 105 |       | Sun 04 Dec 2016 09:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 106 |       | Sun 04 Dec 2016 10:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 107 |       | Sun 04 Dec 2016 11:00:24 AM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 108 |       | Sun 04 Dec 2016 12:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 109 |       | Sun 04 Dec 2016 01:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 110 |       | Sun 04 Dec 2016 02:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 111 |       | Sun 04 Dec 2016 03:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 112 |       | Sun 04 Dec 2016 04:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 113 |       | Sun 04 Dec 2016 05:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 114 |       | Sun 04 Dec 2016 06:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 115 |       | Sun 04 Dec 2016 07:00:24 PM CET | root | timeline | timeline                                                                                                                           |                                                          
single | 116 |       | Sun 04 Dec 2016 07:01:03 PM CET | root |          |                                                                                                                                    |                                                          
single | 117 |       | Sun 04 Dec 2016 07:01:19 PM CET | root |          |                                                                                                                                    |                                                          
[arch@arch ~]$ 

I think moved the data a bit. The first mountpoint was somehwere at /run/media/name and now is mnt2. Before the folder on the partition was test and now is the root (i moved the data with mv).

This might have caused trouble:

[arch@arch ~]$ sudo ls /mnt2/test/
root
[arch@arch ~]$ sudo ls /mnt2/test/root
116  117  118
[arch@arch ~]$ sudo ls /mnt2/
home		     test						 xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz.asc
PKGBUILD	     xfce4-pulseaudio-plugin-0.2.4-1-x86_64-build.log	 xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz-namcap.log
PKGBUILD-namcap.log  xfce4-pulseaudio-plugin-0.2.4-1-x86_64-package.log  xfce4-pulseaudio-plugin-0.2.4.tar.bz2
root		     xfce4-pulseaudio-plugin-0.2.4-1-x86_64.pkg.tar.xz	 xfce4-pulseaudio-plugin.install
@NicoHood
Copy link
Collaborator Author

I always get this issue now. I am not sure if it appears for the / root or /home config. It seems the / root is transmitted (it takes time) and then when it tried to load the /home settings it fails:

Will backup //.snapshots/2554/snapshot to /run/media/arch/e5b8a2d6-85a1-4640-a659-acb8d6922bd6/backup/E744/root/2554//snapshot
Continue with backup [Y/n]? y
At subvol //.snapshots/2554/snapshot
Config is in use.

The message it a btrfs message. I did a reboot and it does not help.

@wesbarnett
Copy link
Collaborator

It's a snapper message and it looks like its with the root configuration.

What's the output of btrfs sub get-default / for the system with snapshot 2554 above? Also what does your journal look like?

@NicoHood
Copy link
Collaborator Author

sudo btrfs sub get-default /
ID 5 (FS_TREE)

cat /var/log/snapper.log
2016-12-27 21:49:36 WAR libsnapper(1680) FileUtils.cc(SDir):88 - THROW: open failed path://.snapshots errno:2 (No such file or directory)
2016-12-27 21:52:23 WAR libsnapper(1680) Client.cc(dispatch):1580 - CAUGHT: config in use

@wesbarnett
Copy link
Collaborator

Are you sure that /.snapshots exists? Maybe it was moved?

@NicoHood
Copy link
Collaborator Author

drwxr-x---   1 root wheel  950 Dec 28 11:35 .snapshots

I have no idea...

@wesbarnett
Copy link
Collaborator

I think you are using a setup with /.snapshots as a mount point? Is the subvolume mounted?

@NicoHood
Copy link
Collaborator Author

Yes it is:

/dev/mapper/cryptroot on /.snapshots type btrfs (rw,relatime,ssd,space_cache,subvolid=259,subvol=/@snapshots)

Also it worked before. I did not change anything in the setup. But snapper updated to 0.4.1. Maybe that is the issue?

@NicoHood
Copy link
Collaborator Author

NicoHood commented Dec 28, 2016

This is the problem:
https://github.com/wesbarnett/snap-sync/blob/master/bin/snap-sync#L191

At subvol //.snapshots/2588/snapshot
+ snapper -c root delete 2170
Config is in use.

@wesbarnett
Copy link
Collaborator

wesbarnett commented Dec 29, 2016

Interesting. See this openSUSE thread. It might give you some ideas for troubleshooting, but I don't see a solution from it.

@wesbarnett
Copy link
Collaborator

Closing as a snapper issue.

@NicoHood
Copy link
Collaborator Author

This only seem to happen with the root config:

Sending incremental snapshot for root...
At subvol //.snapshots/4756/snapshot
At snapshot snapshot
Deleting old snapshot for root...
Config is in use.
==> ERROR: 
Tagging new snapshot as latest backup for root...

Sending incremental snapshot for home...
At subvol /home/.snapshots/3138/snapshot
At snapshot snapshot
Deleting old snapshot for home...
Tagging new snapshot as latest backup for home...

Sending incremental snapshot for hackallthethings...
At subvol /hackallthethings/.snapshots/2555/snapshot
At snapshot snapshot
Deleting old snapshot for hackallthethings...
Tagging new snapshot as latest backup for hackallthethings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants