[Release thread] SABnzbd plugin

Status
Not open for further replies.

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
Hi everyone,

I have been asked by one of the team to open a new thread for testing the pbi. So here it is.

The PBI is still available at:

EDIT: Since there are some users having troubles downloading the pbi here should be a working tutorial on how to download it:

1) Go to https://github.com/MasterGollom/PBI
2) click the "download zip" link in the lower right under "clone to desktop"
Ok, for now what I've read, there are still a few things that don't work out of the box, which are:

- par2 doesn't work -> done, should be working now
- unrar doesn't work -> done, should be working now

Thx for this many users testing the plugin.
 

grendel69

Dabbler
Joined
Jul 20, 2013
Messages
20
Just tried to install this on 9.1 and it gives me the following error:

middleware.exceptions:38] [MiddlewareError: This file was not identified as in PBI format, it might as well be corrupt.

What version is it for?
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
@grendel, sorry, just figured out that my suggestion of how to download the plugin doesn't work anymore :/
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
For anybody having problems with the setup-wizard: it has never worked (for me) with Chrome, but it does work with MSIE. And after the wizard, you can go back to Chrome.
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
BTW - I hads problems installing earlier versions, but it DOES work now though. I think I may have tried to delete the jail last time instead of deleting the plugin. But when I tried that (deleting the plugin and then reinstalling the pbi), everything worked beautifully. 'on is blue, and webgui works too! Master indeed! :)
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
ok, good to hear, have you downloaded my new version? I need to know if unrar & par2 now works straight out of the box
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Couple of random points/suggestions:
  • the freenas/cp/sb/sab/plex combo is shaping up to be the best (and cheapest) solution out there these days for the new media landscape!
  • sabnzbd wizard only works under MSIE, not Chrome. After running the wizard, you can use any browser though
  • Master Gollom - if you want to see an example of a plugin that was able to name its jail AND have it show up properly (WITH Ip-address) under 'jls', just check out the new plex pbi.
Code:
[root@freenas] ~# jls
  JID  IP Address      Hostname                      Path
    1  -              bit_1                        /mnt/StephanNAS/jails/bit_1
    3  -              customplugin_2                /mnt/StephanNAS/jails/customplugin_2
    4  -              customplugin_3                /mnt/StephanNAS/jails/customplugin_3
    5  -              customplugin_4                /mnt/StephanNAS/jails/customplugin_4
    6  -              dlna_1                        /mnt/StephanNAS/jails/dlna_1
    7  192.168.1.122  plex                          /mnt/StephanNAS/jails/plex
    8  -              customplugin_1                /mnt/StephanNAS/jails/customplugin_1


Thanks again to all involved!
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
Is there somewhere a source for the plex plugin? Having a look at the transmission source, I can't find anything....has the plugin to be signed somehow, as the jails are created before the plugin installation....
I used Chrome for the sab wizard, had no problems with it....
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
I may be wrong on plex - the method for installing it is different. See here. I don't know whether that will be any help...
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
yeah he's creating the jail manually and then installing plex using ssh, he's not using a pbi....
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
CP/Sab combo works beautifully. You'll see it unpacked AND checked. I still have to fix the folder structure, but that has nothing to do with the program. Will have to find some good instructions for that; if anybody knows of some, please do let me know
Code:
Completed    2013-08-17 18:08:11
Name    DVDRip
Size    1.4 GB
Status    Completed
Category    movies
Path    /usr/pbi/sabnzbdplus-amd64/sabnzbd/Downloads/complete/DVDRip
Download    Downloaded in 2 minutes 30 seconds at an average of 9.6 MB/s
Source    DVDRip
Unpack    [befree-gwtw] Unpacked 1 files/folders in 6 seconds
Repair    [befree-gwtw] Quick Check OK
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
I have 2 main mountpoints.
  • Nas -> storage "disk"
  • Jail -> "disk" for the jails
Then go to Jails->Storage->Add Storage
  • Source: /mnt/Nas
  • Destination: /tmp/ -> temp folder of the jail
Now you have to tell Sab to put the downloaded files into the /tmp/ directory. To do this go to Sab->Config->Folders
  • Temporary Download Folder: /tmp/SABnzbd/incomplete -> where SABnzbd is a folder I created myself.
  • Completed Download Folder: /tmp/SABnzbd

Hope this helps
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Thanks! I guess my setup is a bit more complicated. My videos are in a folder called \mnt\StephanNAS\TVShows, etc. - these are the folders that the Plex server then scans. Let's call that the destination folder

My understanding was that the process was the following (and I'll use the sickbeard examples):
  • sickbeard starts as the 'searcher': it looks for nzbs and when it finds a wanted one, it pushes that nzb to sabnzbd
  • sabnzb is the 'downloader': as soon as sb sends it an nzb, it downloads it
    • first it downloads the pieces in an 'incomplete' folder, within the plugin's jail
    • then it unzips them (and repairs them with par if necessary) into a 'complete' folder - also in the jail
My question now is how I get those completed video files in the appropriate subfolder for that show in my destination folder.
  • The way I had things set up under FreeNAS 8.3, they all went to the destination folder itself, which was no big deal, because Plex would sort them nicely anyway. I thought the way I did that, was by linking the TVShows destination folder to the 'complete' folder in the 'sickbeard'-jail with a mount point. So Sab (which can't really 'see' anything outside of its jail) puts it in that 'complete' folder, but that folder is actually the same as the destination folder 'outside' of the jail).
  • On Windows, however, I used a sabtosickbeard script in sab, and that one ended up putting everything perfectly in the folders I wanted. I thought that sab then just sent the file back to sab for post-processing, and that that's why it worked so well.
So the way I understand it, there are two methods:
  • one by having sab putting the completed files directly into the right folder, category by category (i.e. the 'tv' catgeory goes into the TVShows) - but then it does not know which precise folder to put it it; OR
  • one by having sb do the post-processing, whereby it can even rename the shows and put them into the right folder.
Is this right?
And more importantly - if anybody could tell me exactly how I can set everything up in such a way that my files end up in the appropriate folders, I'd be very grateful.
Thanks!
 

Jason Hamilton

Contributor
Joined
Jul 4, 2013
Messages
141
So today I rebuilt my USB thumb drive because I couldn't get my SAB to start. However today I'm still having an issue with getting the SAB to start. Can anyone point me in the right direction to help debug this? I'm also experiencing the same with Sickbeard and Couchpotato. Thank you all in advance for your help with this.
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
I have a rights/owner issue. When sab downloads files, the owner is a certain '350', and the permissions are that only the owner (350) can read, write or execute. That means that the Plex doesn't 'see' them and therefore can't scan them. Here you see some of my latest files: the most recent ones (until 4:39 am) were done automatically; the last ones I chmodded manually. The last ones ended up nicely in Plex, the first ones not.
fldao0.png

Question: is there a way to change this so that when sab creates new folders, they get made with 777 instead of 700? Thanks!
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Ha! I may have found the solution, In the configuration under folders, there is a 'Permissions for completed downloads', I'll set that one on 777.
 

Jason Hamilton

Contributor
Joined
Jul 4, 2013
Messages
141
So today I rebuilt my USB thumb drive because I couldn't get my SAB to start. However today I'm still having an issue with getting the SAB to start. Can anyone point me in the right direction to help debug this? I'm also experiencing the same with Sickbeard and Couchpotato. Thank you all in advance for your help with this.

So it turns out I found the culprit. When I went into the jail and attempted to run sab, couch or sick by hand they all failed with the same result. Unable to find bash in /usr/local/bin. So a quick copy from the /usr/bin of the main FreeNAS to that location and everything starts up and runs just fine. I don't know why my FreeNAS doesn't copy bash into its Jail during the Jail creation so I'm sure that this is a problem on my end somewhere. I hope though that this helps someone else who might be having a problem trying to start theirs.

If you want to start it by hand go into the jail and then cd /usr/pbi/sabnzbd/etc/rc.d/ then ./sabnzbd start

From there you can see if it starts by hand or not.
 

Master Gollom

Dabbler
Joined
Jul 25, 2013
Messages
44
Hi Jason,

The PBI's should be started from /usr/local/etc/rc.d -> "/usr/local/etc/rc.d/sabnzbd onestart". This is the path the gui uses to start the pbi's.
I would like to know more about your "bash"-issue. Do you have a clean FreeNAS9 install or have you upgraded from 8 to 9?

cheers
 
Status
Not open for further replies.
Top