You are not logged in.
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-nzbto 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.targetAs 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
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
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
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-nzbI 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
... 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
You need to chmod your ~ at least with the world executable bit:
chmod 701 /home/cdrThis 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/DownloadsI 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
also remember that in your exec line:
Would you mind clarifying which file this is in? I initially thought ~/.xinitrc but not sure.
Offline
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
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
Your ~ should be world executable, not your Downloads dir.
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
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