egara / buttermanager

ButterManager is a BTRFS tool for managing snapshots, balancing filesystems and upgrading the system safetly.
GNU General Public License v3.0
129 stars 6 forks source link

Snapshot error in logs #42

Open KimHono opened 2 years ago

KimHono commented 2 years ago

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

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...

Maybe ButterManager is involved in this case ?

Best regards

egara commented 2 years ago

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 :)

KimHono commented 2 years ago

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_tokeep: '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 = commandlineoutput.decode('utf-8') AttributeError: 'NoneType' object has no attribute 'decode' Aborted (core dumped)

Thanks for this very useful application !

egara commented 2 years ago

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

KimHono commented 2 years ago

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...

egara commented 2 years ago

Thanks for the info @KimHono

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

KimHono commented 2 years ago

Thanks !