Page 1 of 1

Installation on Ubuntu 20.04 uses Snap?

Posted: November 18th, 2020, 3:57 am
by orlokN
After update of my Ubuntu I had to reinstall sabnzbd. When configuring I saw the folders used by sabnzbd to point from a subdirectory of snap (usr/bin/snap ?). I tried to change that by copying the directories I use in the configuration page, but when I tried to download the first nzb I got folder permission problems. I next changed the folder permissions using Nautilus. But I get stuck on a "500 Internal Server Error", and no access to the configuration of sabnzbd.

I tried to post the error trace but am not allowed because I can not post links?

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
 <chunk of traceback omitted ...>
    PermissionError: [Errno 13] Permission denied: '+home+OrlokN+incomplete'

Re: Installation on Ubuntu 20.04 uses Snap?

Posted: November 18th, 2020, 4:36 am
by sander
So you've installed the snap version

Maybe easier to de-install that, and install the PPA version. See https://sabnzbd.org/wiki/installation/i ... buntu-repo

With the PPA you have no permission problems.

Re: Installation on Ubuntu 20.04 uses Snap?

Posted: August 16th, 2022, 10:06 am
by kayk1
FYI for anyone hitting this from search like I did.

Snaps have permissions sandboxed so that you can only access specific folders. So if you have a folder you can't access, the easiest way to get around it is to mount the folder you want to access inside a folder that you do have access to.

So, for example, from terminal:

sudo mount --bind "/media/myusername/Download Cache/NZBDownloads/intermediate" "/var/snap/sabnzbd/common/Downloads/incomplete/mount"

The first folder is the folder that you want to access inside your snap.

The second folder is the location inside your snap that you have access to.

You'll have to create the folder inside the snap before trying to mount it.

sudo mkdir "/var/snap/sabnzbd/common/Downloads/incomplete/mount"

Then from here you can use the folder inside your sabnzb settings as the Temporary Download Folder etc.

You are also probably going to want to enable access to different storage types. It's called removable-media, but there's a chance one of your storage drives is considered removable, even if it's internal. Mine is on a PCIE card and is considered removable.

snap connect sabnzbd:removable-media