You are not logged in.

#1 2014-02-20 10:54:35

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

SABnzbd global configuration, not starting download

I have followed the Wiki article for installing and configuring SABnzbd and the global configuration section mentions that it is controlled by the sabnzbd daemon.

The install script finishes saying that I should run

 xdg-mime default sabnzbd.desktop applications/x-nzb

to have .nzb file associate with sabnzbd.

I have followed the section for configuring https access to sabnzbd, global configuration.

My /etc/systemd/system/sabnzbd.service looks like

[Unit]
Description=SABnzbd binary newsreader
After=network.target

[Service]
ExecStart=/opt/sabnzbd/SABnzbd.py -l0
User=sabnzbd
Group=sabnzbd
PIDFile=/run/sabnzbd/sabnzbd-9090.pid

[Install]
WantedBy=multi-user.target

As an extra step I added my user to the sabnzbd group. I then started the sabnzbd.service and pointed my browser at https:/localhost:9090/ which immediately re-directs to the sabnzbd wizard, as expected. After completing the wizard sabnzbd restarts and I can go to the main download page.

When I choose a .nzb file to download and firefox prompts me to open it with sabnzbd. Sabnzbd doesn't do anything, it's status remains at idle.

I have tried getting this working on my laptop for days! What step have I {missed out,done wrong}?. All commands completed without any errors. I am relatively new to Linux and Arch and I enjoy working out how to get my computer to do what I want it to do. Frustratingly I have sabnzbd working on my main machine, (also running Arch) but I cant access it...

My internet connection (120Gbs+Netflix+CableTV) will be out of action for about 3-4 weeks and I need to urgently download some resources to keep me occupied as it gets disconnected tomorrow (house move - reason why I cant access my desktop).

Last edited by cdrjameson (2014-02-20 16:30:52)

Offline

#2 2014-02-20 15:39:51

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SABnzbd global configuration, not starting download

What does your sabnzbd.desktop look like? Post it in full please.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-20 16:07:21

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: SABnzbd global configuration, not starting download

I'm afraid I can't really help with the xdg/mime problem you seem to be having, but you can in the meantime set up a watched folder in sabnzbd and just download the nzb file directly into there.

Scott

Offline

#4 2014-02-20 16:11:22

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

Re: SABnzbd global configuration, not starting download

Here is my /usr/share/applications/sabnzbd.desktop

[Desktop Entry]
Type=Application
Version=1.0
Name=SABnzbd+
GenericName=Binary Newsreader
Icon=/opt/sabnzbd/sab2_64.png
Exec=sh /opt/sabnzbd/addnzb.sh %u
Terminal=false
Categories=Network
MimeType=application/x-nzb

I am able to manually add a .nzb file using the sabnzbd interface if I have it saved on disk or a known url and it works fine. The issue now is sabnzbd not automatically starting the download...

Offline

#5 2014-02-20 16:18:10

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

Re: SABnzbd global configuration, not starting download

firecat53 wrote:

... set up a watched folder in sabnzbd and just download the nzb file directly into there.

I have tried to do that but sabnzbd, for some reason wont let me navigate beyond /home/cdr i.e. I cant see any directories or files within my home folder.

In writing this I have had an epiphany; is this behaviour because my home folder permissions are set to 700? My sabnzbd runs as user: sabnzbd and group: sabnzbd. What would be the recommended method to allow it access into my ~/Downloads/ ?

Edit #1: If I allow sabnzbd to read my home folder I think autostart should work... chmod 744 my ~ ? (it didn't)

Edit #2:I chmod -R 744 ~Downloads/ but after restarting the sabnzbd.service it, I still cannot navigate lower than /home/cdr/ when trying to set a watched folder.

Last edited by cdrjameson (2014-02-20 16:31:40)

Offline

#6 2014-02-20 16:34:45

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SABnzbd global configuration, not starting download

You need to chmod your ~ at least with the world executable bit:

chmod 701 /home/cdr

This will allow the daemon to traverse your home directory without seeing it's contents. And therefore not exposing these to the world. As for the download folder, I suggest the following:

chmod 770 /home/cdr/Downloads/
chown cdr:sabnzbd /home/cdr/Downloads

I also remember that in your exec line:

Exec=sh /opt/sabnzbd/addnzb.sh %u

Changing '%u' to '%U' makes a difference with respect to program arguments.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#7 2014-02-20 16:44:26

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

Re: SABnzbd global configuration, not starting download

Rexilion wrote:

also remember that in your exec line:

Would you mind clarifying which file this is in? I initially thought ~/.xinitrc but not sure.

Offline

#8 2014-02-20 18:12:44

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SABnzbd global configuration, not starting download

Sorry, I meant the line starting with Exec in your sabnzbd.desktop file.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#9 2014-03-25 20:25:26

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

Re: SABnzbd global configuration, not starting download

Long time since I've been online; same issue still not resolved. However I am able to manually add nzb to sabnzbd using the web interface. I have to save the nzb file then upload using the interface. Its a bit clunky but at least I can download items. I have tried all of the above suggestions

%u to %U; and

$ ls -ld Downloads
drwxrwx--x 2 cdr sabnzbd 4096 Mar 21 09:51 Downloads 

I would really like to be able to "open with sabnzbd" from firefox and have sabnzbd start the download automatically. The sabnzbd.service is enabled.

Not sure that it is relevant but I am running Mate and stock Kernel.

Offline

#10 2014-03-26 09:39:16

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: SABnzbd global configuration, not starting download

Your ~ should be world executable, not your Downloads dir.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#11 2015-01-02 17:15:18

nixIT
Member
Registered: 2010-01-13
Posts: 548

Re: SABnzbd global configuration, not starting download

Has this been solved? I'm having a similar issue, Sabnzbd can't see past my download folder. My folder structure is:

/nixit/nixitdata/download/share/newsgroups

--nixIT


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

Board footer

Powered by FluxBB