buttermanager icon indicating copy to clipboard operation
buttermanager copied to clipboard

Snapshot error in logs

Open KimHono opened this issue 3 years ago • 6 comments

Hi, I notice a snapshot error in a log. How to reproduce:

  • I clicked on "update with snapshot button". Everything worked fine.
  • Then I opened the resulting log file. There, I notice the following error:
Checking for system updates. 
-------- 

-------- 
Starting system upgrading process. Please wait... 

-------- 
Creating snapshots and updating GRUB entries if it is necessary... 
-------- 
Create a snapshot of '/mnt/defvol/@/' in '/mnt/defvol/snapshots/root-20211024-0' 

-------- 
Error creating the snapshot /mnt/defvol/@/ 
Error: 'NoneType' object has no attribute 'decode' 
-------- 
Upgrading the system. Please wait... 
:: Synchronising package databases... 
core downloading... 
extra downloading... 
community downloading... 
multilib downloading... 
endeavouros downloading... 
:: Starting full system upgrade... 
resolving dependencies... 
looking for conflicting packages...
  • Finally, I tried to do several snapshots in command line, outside ButterManager. No error message appeared.

Maybe ButterManager is involved in this case ?

Best regards

KimHono avatar Oct 24 '21 19:10 KimHono

Hi @KimHono and thank you very much for the report. This message is weird. I have EndevourOS installed myself and ButterManager is working OK. ButterManager uses this command and btrfs-progs underneath:

btrfs subvolume snapshot <source> <dest>

Could you include here your configuration file?. It is located at ~/.buttermanager/buttermanager.yaml.

And another thing to check. Open a terminal and type buttermanager. Hit enter and try to create a snapshot. If an exception is thrown in the terminal, please attach it here to see if there is more information.

Thank you very much :)

egara avatar Oct 25 '21 07:10 egara

Hi @egara, it's cool we both use EndeavourOS ! Btw, I forgot to write my ButterManager version, which is 2.4.2.

As you asked, here is my configuration file: aur_repository: 0 check_at_startup: 0 grub_btrfs: 1 path_to_consolidate_root_snapshot: '@' save_log: 1 snap_packages: 0 subvolumes_dest: /mnt/defvol/snapshots/ subvolumes_orig: /mnt/defvol/@/ subvolumes_prefix: root subvolumes_snapshots_to_keep: '3'

And here is the exception I received while using the "Take snapshot" button on the main window: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/buttermanager/buttermanager/window/windows.py", line 418, in take_snapshot settings.subvolumes[subvolume].create_snapshot() File "/usr/lib/python3.9/site-packages/buttermanager/buttermanager/filesystem/snapshot.py", line 157, in create_snapshot commandline_output = commandline_output.decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode' Aborted (core dumped)

Thanks for this very useful application !

KimHono avatar Oct 30 '21 21:10 KimHono

Hi @KimHono and thanks for the information and your words! I'm very glad that you find ButterManager useful for you :)

Your configuration file seems to be fine and about the stack trace... it is something weird. Is your locale UTF-8 or are you using another one? (you can check it out opening a terminal and typing locale)

Again, thank you very much :D

egara avatar Nov 01 '21 07:11 egara

Hi @egara, nothing special with my locale, it's LANG=en_GB.UTF-8. Buttermanager is crashing when using this function on the main window, however the snapshots are successful.

I hope it will help you debugging...

KimHono avatar Nov 01 '21 08:11 KimHono

Thanks for the info @KimHono

I'm a little bit lost but I'll investigate on it and tell you something :)

egara avatar Nov 01 '21 14:11 egara

Thanks !

KimHono avatar Nov 09 '21 06:11 KimHono