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

Problems with running snaps #58

Closed
perrsona1234 opened this issue Feb 14, 2020 · 11 comments
Closed

Problems with running snaps #58

perrsona1234 opened this issue Feb 14, 2020 · 11 comments
Labels
bug Something isn't working

Comments

@perrsona1234
Copy link

perrsona1234 commented Feb 14, 2020

Via CLI:
With sudo snap install snaps are being installed properly & are working fine.
Via Bauh:
I can install & remove snaps, but the button to open them is grayed out for both NORMAL & ROOT users. It's grayed out for all snaps.

Honestly, I have no idea what kind of logs would be useful here.
Zrzut ekranu z 2020-02-14 22-47-20

@vinifmor
Copy link
Owner

@perrsona1234 , thank you for reporting the issue. No additional log is required. I'm going to have a look at the applications with the gray launch button and analyse why bauh is not allowing to launch them.

@vinifmor
Copy link
Owner

@perrsona1234 , I've just tested here and the button is enabled (green). Did you install drawing via bauh or using the command line ?
drawing_snap

@vinifmor
Copy link
Owner

Does this directory (/var/lib/snapd/snap) exist on your system ? Or this one -> /snap ?

@vinifmor
Copy link
Owner

@perrsona1234 I've just published a possible fix on the staging branch. Could you give me a feedback if it fixes your issue ?

@perrsona1234
Copy link
Author

perrsona1234 commented Feb 19, 2020

So, the folders I have are:
/snap
/var/snap
/var/lib/snapd/snaps
~/snap

I was installing snaps both with bauh as NORMAL & ROOT users & sudo snap install command. All of them are working, when being run via snap run command. Also, all of them are inaccessible, when I try to run them with bauh, both as NORMAL & ROOT users.

@perrsona1234
Copy link
Author

perrsona1234 commented Feb 19, 2020

So, I updated bauh to latest staging branch.
Did the usual:
bauh --reset
git clone https://github.com/vinifmor/bauh.git
cd bauh
git checkout staging
sudo pip3 install .

The good news is that snaps are now working, when being run from bauh as a ROOT user. The bad news is that, when I try to run bauh as a normal user - it crashes. Here is the log: https://pastebin.com/gpYAwu1x

@vinifmor
Copy link
Owner

Thank you for reporting this. I've just published a fix to the staging again. Could you give me a feedback if it works now ?

@perrsona1234
Copy link
Author

perrsona1234 commented Feb 19, 2020

So, I updated bauh again and now everything works. It still shows some error, but I am able to run snaps from bauh, both as a NORMAL & ROOT user.

Do You need more info?
Should I close the issue now?
Thanks for Your work.
Zrzut ekranu z 2020-02-19 18-40-40

@vinifmor
Copy link
Owner

Great. I believe this error is happening because of the files generated by the old version. Try to remove the following directories and let me know if the error still shows up:

  • /tmp/bauh
  • /tmp/bauh_root

@vinifmor vinifmor added bug Something isn't working and removed in review labels Feb 19, 2020
@perrsona1234
Copy link
Author

After deleting the two mentioned directiories, everything looks fine now.
bauh starts properly without any errors, both as a NORMAL & ROOT users.

For both, NORMAL & ROOT users:
flatpaks are installing & working
snaps are installing & working
appimages are installing & working
webapps are installing & working

Do You need any extra info?
Thank You!

@vinifmor
Copy link
Owner

Great. It's fine. Let this issue open for now. I'm going to publish 0.8.4 with these fixes soon and close it.

@vinifmor vinifmor mentioned this issue Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants