Installation on Ubuntu 20.04 uses Snap?

Get help with all aspects of 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
orlokN
Newbie
Newbie
Posts: 1
Joined: November 18th, 2020, 3:42 am

Installation on Ubuntu 20.04 uses Snap?

Post 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'
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Installation on Ubuntu 20.04 uses Snap?

Post 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.
kayk1
Newbie
Newbie
Posts: 1
Joined: August 16th, 2022, 10:00 am

Re: Installation on Ubuntu 20.04 uses Snap?

Post 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
Post Reply