egara / buttermanager

ButterManager is a BTRFS tool for managing snapshots, balancing filesystems and upgrading the system safetly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selecting a subvolume closes Buttermanager

lapineige opened this issue · comments

System : Kubuntu 20.10
Version : 2.3, and master

Hello,

When I select a subvolume, or any folder, the app just quit, and if I open it again nothing was saved.
I suppose that's a bug ?

I tried both, same result.

Here is the log :

INFO:ConfigManager. Checking OS. DEBIAN found
INFO:ConfigManager. Creating PropertiesManager...
INFO:ConfigManager. Retrieving user's configuration from buttermanager.yaml file and loading it in memory...
INFO:VersionChecker. Checking for a new version of ButterManager. Please wait...
INFO:PasswordWindow. Calculating appropriated base font size for UI elements...
INFO:PasswordWindow. Base font size = 9
INFO:VersionChecker. Last version is 2.3 and current version is 2.3
INFO:RootSnapshotChecker. Checking if the current snapshot used for root is the default. Please wait...
INFO:ButtermanagerMainWindow. BTRFS filesystems found in the system:
INFO:ButtermanagerMainWindow. BTRFS Filesystem -> UUID: SomeRandomUUID; Devices: ['/dev/nvme0n1p2']; Mounted Points: ['/', '/home', '/run/timeshift/backup', '/tmp']
INFO:UpdatesChecker. Checking Internet connection. Please wait...
INFO:UpdatesChecker. Internet connection is available!

Note: I did try a "balance" operation right after first opening, and this worked.

Hi again.

Ok, it should be a bug, but it is not reproducible on Arch where I develop so I have to install a virtual machine to test it and see what happens.

I'll keep you inform and thanks!

Someone reported to me that it was working on Fedora too.

Thanks a lot for your time :)

If you want me to give you the version for a list of libraries, feels free to ask :)

Hi @lapineige

I come back to you because this weekend I have installed a fresh Kubuntu 21.10 on Virtual Box. This is my experience.

Before the installation of ButterManager, I have installed []all the required libraries](https://github.com/egara/buttermanager#from-the-source-code). I have installed grub-btrfs from Git too.

Installation using venv_install script

This installation creates a virtual environment with all the dependencies and ButterManager will run from this venv. In this case, ButterManager runs OK and the file dialog for choosing locations works fine for me. No problem at all

VirtualBox_Kubuntu 21_1

VirtualBox_Kubuntu 21_2

BUT if you try to integrate ButterManager with grub-btrfs activating Boot the system from GRUB using snapshots which is in Settings tabs, the creating of the snapshot for the root partition will fail and, sincerelly, I don't know why :(

Installation using native_install script

This installation will require all the libraries needed installed natively in the system. When ButterManager runs and you select a location in the file dialog, you are absolutely right. The application crashes silently. No error messages. Nothing!

I'm on Arch Linux and I have installed ButterManager natively via AUR too. This installation is new, because before this version, a venv was used. And I have realized that this exact same problem happens in Arch.

I think it is related to the versions of the libraries and I'm trying to implement a workaround in the next version, so I'll keep you inform.

Meanwhile, if you want to use ButterManager, you can introduce the path manually on the fields and remember, if you want to integrate GRUB with your snapshots, you have to install grub-btrfs check the option in Settings and use the native_install script.

Thank you very much for your feedback again!

Thanks a lot for your time and for investigating into that issue ! <3

if you try to integrate ButterManager with grub-btrfs activating Boot the system from GRUB using snapshots

I did not touch this option (unchecked by default), nor installed grub-btrfs as it was complicated and I did not need it. Would that be an issue ?

I think this would be an issue, but again, in this case, this integration is working perfectly on the native installation so... I don't know, maybe something related to de libraries version I guess...

So, if you don't need GRUB integration to reboot your system directly using a previous snapshot (which, on the other hand, I think is something useful if you don't want to use a live USB when you want to rollback your system), you can stick on the venv installation. In this case, the file manager should work out of the box.

But I'm going to try to implement something different for selecting the directories in the next version in order to avoid this weird behavior of PyQT5.

Great, then maybe I'll wait for the next version.

Grub integration would be handy indeed, but installation is too complicated for me and I found no package nor ready to use PPA, so I will pass 😅

Hi @lapineige

I have discovered that this issue happens on KDE Plasma Desktop Environment and a native installation of ButterManager. I think it is a bug in PyQT5, so I have introduced a fallback for this case. It is only in devel branch at the moment but when I merge the code into de master branch and release version 2.4 it will be available for everyone.

Cheers!!

Great, thanks !

Hello,

I see that the patch is already available in devel, do you want me to test it ?
How risky can it be to use the devel branch ?

Hi @lapineige and thank you for your help.

Yes, it is save but if you want to try, please, follow these steps:

1.- Make a copy of the configuration file within ~/.buttermanager/buttermanager.yaml because the new feature that I'm developing will change it and it is not finished yet.
2.- Install python3-tk package on Kubuntu if it is not installed yet
3.- Uninstall ButterManager and install it again from devel
4.- Run it and tell me

Then, you can uninstall this version, restore buttermanager.yaml configuration file and install ButterManager stable from master again.

Thank you very much for your help. You are very kind :)

New version 2.4 has just been released and this issue should be fixed. Could you test it on Kubuntu @lapineige ?

Yeah, that's great news ! :D

I think I'm going to try it within a week.

Thanks a lot for your work :)

So I tried, with native install same crash as before :/ (and no log)
But with virtual environment it works ! 🎉

Fun fact: the theme is different between both 🤔

As an user, that's not a big deal (and it's a way to know if it's native or venv ^^). Thanks for the explanations 🙂

A quick feedback after trying it more extensively : it works like a charm, thanks a lot 🎉 😃
The only thing I'm missing is a ~timeshift-like automated snapshot on a regular basis (for every subvolume but /, which is covered by timeshift), but if it makes a snapshot after any (apt) upgrade, then I will have quite a lot of frequent backups (I have updates several times a week-end).
I finally found the GUI tool I was missing to make "regular" automated and transparent backup/snapshots for my files. Thanks you so much for your time and work 👍

@lapineige and thanks to you for all the extensive testing you are doing with ButterManager! :)