Ubuntu snap install just doesn't work [as OP expeceted]

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Skeo
Newbie
Newbie
Posts: 9
Joined: April 25th, 2012, 10:34 pm

Ubuntu snap install just doesn't work [as OP expeceted]

Post by Skeo »

I've just updated to ubuntu 18.04 and have tried installing sabnzbd via the snap package.
I honestly can't think of any polite way to describe the experience.
In the couple hours I've been banging my head against the wall trying to get it to work, I've come across two really obvious problems, one of which is a showstopper.

1) Because of the sandboxing, the snap package can't see other packages on the system. - In the config tab I get the message asking me to install multicore par2. I did, restart everything and the message is still there.
2) Also because of sandboxing, sabnzbd doesn't have permission to access pretty much any part of the filesystem except it's own little /var/snap/sabnzbd place. The most obvious symptom of this is I get "Cannot create download_dir folder" errors when I try and point to the folders where I have my large HDDs mounted. I can't really setup my system to work in any useful way if I can't actually specify where I want things to download to.

After a LOT of google searching, I discovered you can install a snap with a "--classic" flag to fix problems like this with permissions.
I tried that and get: "Warning: flag --classic ignored for strictly confined snap sabnzbd"

right then.

I realise this filesystem permission issue is more a snap thing and not necessarily a sabnzbd thing, but it makes trying to install via snap a complete waste of time. It would be nice if you could fix the snap package so it actually works, because there seems to be some usefulness in the automatic updating etc etc.

Until that happens, and probably forever now anyway, I'm going back to a standard install and I'd suggest you put a big warning on the website saying DONT USE THE SNAP IF YOU HAVE MORE THAN ONE HARD DRIVE IN YOUR SYSTEM.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Ubuntu snap install just doesn't work

Post by sander »

What you describe as problems are the goals of docker and other container technologies and thus probably snap packages:

the app within the container should not be able to access the whole host system; only what you positively define as accessible.
the app within the container is self-contained
the container is "cattle, not a pet". Kill it if it doesn't work

In general, it's called "isolation".

If you don't want that or find it hard to use, don't use it.

I use Ubuntu, and I find snap horrible. I do like docker for testing purposes, but hard to use for apps with interactions.
So ... I use SABnzbd as real app on Ubuntu. Not in snap nor docker.

HTH
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by safihre »

I'm not a snap expert. but what I was told is that you can "mount" your drive as a "media" in the snap to access them. This should work around the no-access problem.

Indeed the Snap doesn't have multicore-par2, but that's something we could add later to the snap. Although it's a bit harder due to all the platforms.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Skeo
Newbie
Newbie
Posts: 9
Joined: April 25th, 2012, 10:34 pm

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by Skeo »

Huh, so I should have known not to bother with the brand spanking new installation format that is supposed to be amazing ... because ... it's useless by design.
And I should have known that... How?
Snap doesn't advertise any of these things, and it takes a loooooong time googling to try and find how it works detailed anywhere at all, let alone troubleshoot what you seem to think are obvious issues. And thanks for renaming my thread incorrectly, spelling mistake and all. This behaviour is not remotely "as I expected", instead it is how I found out it works after hours of investigating. Would you prefer I submitted bugs with absolutely no idea what's happening or why?

Mounting as media in the snap seems like it would indeed solve the issue, but in my hours of googling I couldn't find that mentioned anywhere, certainly not instructions on how to do it. This thread is the first I've heard of it.

As I said in my original comment, the snap install should come with serious disclaimers on the box. Something along the lines of "Don't use this. It doesn't really work and won't do what you're hoping. Especially not if you've ever used sabnzbd+ before." That should just about cover it.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by safihre »

We don't make the snap eco-system and trust me, it was also a terrible hassle to create the snap.. Only with some of their developers helping out we managed to push something..
Anyway, maybe just use the regular Ubuntu installation we provide?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by pinn »

I know this is an old thread but with Sab getting frequent updates now this may be workable. Are the issues described above still there or is the experience more straight forward?
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by safihre »

I updated the edge-snap, can you try that one and see if it works for you?
It should now also have access to your home-folder, although not sure exactly how it works.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by pinn »

safihre wrote: June 3rd, 2020, 4:05 am I updated the edge-snap, can you try that one and see if it works for you?
It should now also have access to your home-folder, although not sure exactly how it works.
Before I do, can I just ask about the built-in updater (Debian build). I note it says it checks for updates 1 a week. According to the settings, I'm on 3.0.0-develop [unknown].
Am I to assume that it will automatically update itself at some point?
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by safihre »

Yes I think it should.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by pinn »

Cheers. Think I'll take the path of least resistance then :)
If it doesn't work, I'll check out snap and feedback to you
Gorklax
Newbie
Newbie
Posts: 1
Joined: June 23rd, 2020, 9:16 pm

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by Gorklax »

Dumb question. Does the snap version just run in the background without the need to launch? If so, how do I access it? It's running on a headless server, but I can't access it via the port from another pc. The port is open in the firewalld service.

Edit: I was able to fix it by changing the listening port to my network address instead of localhost.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Ubuntu snap install just doesn't work [as OP expeceted]

Post by safihre »

Exactly, by default it runs on localhost only.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply