Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
-1
rated 0 times [  -1] [ 0]  / answers: 1 / hits: 1953  / 1 Year ago, sat, may 13, 2023, 10:24:43

I installed Sonarr from the Ubuntu application center, and from what I can tell it is part of a snap package. The service cannot access a hard drive mount I am using. I set up the drive in order to be owned by a user and group I specified. Sonarr appears to be running as a system application (based on what I read) and cannot look into directories on this mount, even though I made sure I ran chmod 777 on the relevant directories. Other services I run have no issues accessing the mount or writing to it. Only Sonarr. I did alot of searching and concluded that I need to change the user that the service runs under.


This is where googling has failed me. All the solutions are years old and I could not adapt them:



  1. I looked for the service configuration file in /lib/systemd and could not find it.

  2. Sonarr is now installed as a snap package and does not appear to use systemd for services. I dont know what it uses. It also does not need a user to install mono first.

  3. I found a snap file that appears to launch the sonarr service, but it has "DO NOT EDIT" on the first line. So I backed away.


So in order to proceed I need to know the following:



  1. Are services installed by snap managed from somewhere else?

  2. How can I find the configuration file for the service and change it to run as a specific user (e.g. me)

  3. If I set it to run as a specific user, does that mean the user has to be logged in for the service to work?


More From » 20.04

 Answers
1

Snaps come with a number of limitations with regards to accessing locations outside of a user's home directory. If you're looking to have Sonarr run with very specific configuration settings, you might want to go with the non-Snap version.


Here's the basic installation directions:



  1. Open a Terminal (if one is not open already)

  2. Remove the existing Sonarr snap:
    sudo snap remove sonarr

    Note: Use snap list to list installed snaps to find the exact name for Sonarr if it's different to the one above.

  3. Add Sonarr's repository to your software sources list:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xA236C58F409091A18ACA53CBEBFF6B99D9B78493
    echo "deb http://apt.sonarr.tv/ master main" | sudo tee /etc/apt/sources.list.d/sonarr.list


  4. Update apt:
    sudo apt update


  5. Install Sonarr, which is called nzbdrone:
    sudo apt install nzbdrone 


  6. Start the service:
    mono --debug /opt/NzbDrone/NzbDrone.exe



Be sure to confirm that UFW is configured to allow Sonarr access to the dedicated mount location.


Source: Sonarr's Installation Wiki


[#1930] Monday, May 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aradxalte

Total Points: 70
Total Questions: 116
Total Answers: 116

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
aradxalte questions
Tue, Mar 15, 22, 16:13, 2 Years ago
Thu, Oct 14, 21, 15:15, 3 Years ago
Mon, Jun 27, 22, 09:35, 2 Years ago
;