[FreeNAS 9 Plugins] - SAB / SB / CP / HP / Maraschino / HTPC / Mylar / LL / Gamez

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@malum-in-se
I got the same error as you with the latest SickRage and with web_root = /sickrage

I'll create a bug report + thread on SickRage's forum so he gets it fixed.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Last edited:

malum-in-se

Dabbler
Joined
Nov 6, 2014
Messages
19
Great that worked. Sickrage is up and running. I tried to see if I could copy over my config.ini, but when I did so I got a similar error as before. So I replaced it with the config.ini that was just installed and it's back to running. I will just go ahead and plugin all my old config stuff. Thanks for the help and getting me up and running.
 

malum-in-se

Dabbler
Joined
Nov 6, 2014
Messages
19
I will go ahead and try and upgrade before I start plugging in my config stuff and see if I can get the newer version up and running and just change the web gui address.
 

malum-in-se

Dabbler
Joined
Nov 6, 2014
Messages
19
Weird... the upgrade somehow broke post processing, even though all the nzbtomedia stuff stayed exactly the same. I transfered over the sickbeard config stuff fine. Downloading and search are working great now...

My old nzbtomedia log when it worked had this:

Code:
[16:39:01] [INFO]::MAIN: #########################################################
[16:39:01] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[16:39:01] [INFO]::MAIN: #########################################################
[16:39:01] [INFO]::MAIN: Script triggered from SABnzbd
[16:39:01] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[16:39:01] [INFO]::MAIN: Calling SickBeard:tv to post-process: (removed)
[16:39:01] [INFO]::MAIN: Attempting to auto-detect tv fork
[16:39:01] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...


now it looks the same except for the tv fork stuff

Code:
22:28:27] [INFO]::MAIN: #########################################################
[22:28:27] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[22:28:27] [INFO]::MAIN: #########################################################
[22:28:27] [INFO]::MAIN: Script triggered from SABnzbd
[22:28:27] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[22:28:27] [INFO]::MAIN: Calling SickBeard:tv to post-process:(removed)
[22:28:27] [INFO]::MAIN: Attempting to auto-detect tv fork
[22:28:27] [INFO]::MAIN: SickBeard:tv fork auto-detection found custom params {}
[22:28:27] [INFO]::MAIN: SickBeard:tv fork set to custom


Then the logs are completely different.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Weird... the upgrade somehow broke post processing, even though all the nzbtomedia stuff stayed exactly the same. I transfered over the sickbeard config stuff fine. Downloading and search are working great now...

My old nzbtomedia log when it worked had this:

Code:
[16:39:01] [INFO]::MAIN: #########################################################
[16:39:01] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[16:39:01] [INFO]::MAIN: #########################################################
[16:39:01] [INFO]::MAIN: Script triggered from SABnzbd
[16:39:01] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[16:39:01] [INFO]::MAIN: Calling SickBeard:tv to post-process: (removed)
[16:39:01] [INFO]::MAIN: Attempting to auto-detect tv fork
[16:39:01] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...


now it looks the same except for the tv fork stuff

Code:
22:28:27] [INFO]::MAIN: #########################################################
[22:28:27] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[22:28:27] [INFO]::MAIN: #########################################################
[22:28:27] [INFO]::MAIN: Script triggered from SABnzbd
[22:28:27] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[22:28:27] [INFO]::MAIN: Calling SickBeard:tv to post-process:(removed)
[22:28:27] [INFO]::MAIN: Attempting to auto-detect tv fork
[22:28:27] [INFO]::MAIN: SickBeard:tv fork auto-detection found custom params {}
[22:28:27] [INFO]::MAIN: SickBeard:tv fork set to custom


Then the logs are completely different.
Did you set the web_root and restart sickrage like in my blog post?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Savell Martin
I finished the PBI (plugin) for Sonarr. It just needs to be pulled into the official repo.
 

sessus

Dabbler
Joined
Jul 2, 2013
Messages
17
Hey Joshua,

in your old installation guide you mention how to use a different sickbeard branch. I tried the same method with the current 9.3 plugin, but it doesn't seem to work. I get:

Code:
/usr/local/etc/rc.d/sickbeard: WARNING: failed to start sickbeard


Is there something I'm missing?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Joshua,

in your old installation guide you mention how to use a different sickbeard branch. I tried the same method with the current 9.3 plugin, but it doesn't seem to work. I get:

Code:
/usr/local/etc/rc.d/sickbeard: WARNING: failed to start sickbeard


Is there something I'm missing?
I have no idea what steps you tried, can you post the commands you ran?

what branch are you trying to switch to?
 

sessus

Dabbler
Joined
Jul 2, 2013
Messages
17
Code:
rm -r /usr/pbi/sickbeard-amd64/share/sickbeard/Sick-Beard /usr/pbi/sickbeard-amd64/etc/sickbeard/* && git clone https://github.com/cytec/Sick-Beard.git /usr/pbi/sickbeard-amd64/share/sickbeard/Sick-Beard


Branch: https://github.com/cytec/Sick-Beard

The above is from your previous/old guide. It seems, though, that the folder structure has changed and the "/usr/pbi/sickbeard-amd64/etc/sickbeard" path is no longer valid.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
rm -r /usr/pbi/sickbeard-amd64/share/sickbeard/Sick-Beard /usr/pbi/sickbeard-amd64/etc/sickbeard/* && git clone https://github.com/cytec/Sick-Beard.git /usr/pbi/sickbeard-amd64/share/sickbeard/Sick-Beard


Branch: https://github.com/cytec/Sick-Beard

The above is from your previous/old guide. It seems, though, that the folder structure has changed and the "/usr/pbi/sickbeard-amd64/etc/sickbeard" path is no longer valid.
yeah, its /var/db/sickbeard now. so just change that and it should work.

also make sure to 'chown media:media /usr/pbi/sickbeard-amd64/share/sickbeard/*' so your branch can auto-update itself.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Got it all setup, but can't get sabnzb to post process. I turned off SickRage in the autoProcessMedia.cfg and entered used its settings for NzbDrone section. Changed the category section in sabnzb for tv to use NzbToNzbDrone.py script. I get this error after download completes:

Code:
           [16:01:27] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[16:01:27] [INFO]::MAIN: Checking database structure...
[16:01:27] [INFO]::MAIN: Checking if git needs an update
[16:01:28] [INFO]::MAIN: No update needed
[16:01:28] [INFO]::MAIN: nzbToMedia Version:bc2bab95ee4293775788bcb37eccf8333c7abb7a Branch:master (FreeBSD 9.1-RELEASE)
[16:01:28] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
[16:01:28] [INFO]::MAIN: #########################################################
[16:01:28] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[16:01:28] [INFO]::MAIN: #########################################################
[16:01:28] [INFO]::MAIN: Script triggered from SABnzbd
[16:01:28] [INFO]::MAIN: Auto-detected SECTION:NzbDrone
[16:01:28] [INFO]::MAIN: Calling NzbDrone:tv to post-process:Sons.of.Liberty.2015.S01E03.Independence.720p.HDTV.x264-DHD
[16:01:28] [INFO]::MAIN: Attempting to verify tv fork
[16:01:28] [INFO]::MAIN: NzbDrone:tv fork set to default
[16:01:29] [INFO]::TRANSCODER: Checking [Sons.of.Liberty.2015.E03.Independence.720p.HDTV.x264-DHD.mkv] for corruption, please stand by ...
[16:01:29] [INFO]::TRANSCODER: SUCCESS: [Sons.of.Liberty.2015.E03.Independence.720p.HDTV.x264-DHD.mkv] has no corruption.
[16:01:29] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/Sons.of.Liberty.2015.S01E03.Independence.720p.HDTV.x264-DHD
[16:01:29] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/Sons.of.Liberty.2015.S01E03.Independence.720p.HDTV.x264-DHD
[16:01:29] [POSTPROCESS]::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request
[16:01:29] [ERROR]::NZBDRONE: Server returned status 405
[16:01:29] [ERROR]::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToNzbDrone.py script.
NzbDrone: Failed to post-process - Server returned status 405!
 

jasn

Dabbler
Joined
Dec 19, 2014
Messages
32
I used Josh's blog, (and video), to successfully install SABNzbd, Couchpotato, Sickrage and Transmission, on the latest nightly of FreeNAS 9.3 Everything worked correctly, and I've even started downloading TV episodes with Sickrage. They're post processing and ending up in the correct /mnt/media/videos/tvshows/ directory.

The only issue I'm having is, (similar to the prior post), post processing via Couchpotato. After SABNzbd downloads the movie completely, the SABNzbd download screen lists the download with the following error message;
Code:
Exit(1) Exception AttributeError: "’NoneType’ object has no attribute ’path’" in (More)

Here's the Traceback section from the script log of the failed post processed download;
Code:
[15:45:42] [POSTPROCESS]::COUCHPOTATO: Starting renamer scan for movie.nzb
Traceback (most recent call last):
  File "/usr/local/share/nzbToMedia/nzbToCouchPotato.py", line 249, in <module>
  result = nzbToMedia.main(sys.argv, section)
  File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 710, in main
  download_id='')
  File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 595, in process
  inputCategory, failureLink)
  File "/usr/local/share/nzbToMedia/nzbtomedia/autoProcess/autoProcessMovie.py", line 242, in process
  result = r.json()
  File "/usr/local/share/nzbToMedia/libs/requests/models.py", line 759, in json
  return json.loads(self.text, **kwargs)
  File "/usr/local/lib/python2.7/json/__init__.py", line 338, in loads
  return _default_decoder.decode(s)
  File "/usr/local/lib/python2.7/json/decoder.py", line 366, in decode
  obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.7/json/decoder.py", line 384, in raw_decode
  raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method PosixProcess.__del__ of <nzbtomedia.nzbToMediaUtil.PosixProcess instance at 0x807e7e9e0>> ignored
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I used Josh's blog, (and video), to successfully install SABNzbd, Couchpotato, Sickrage and Transmission, on the latest nightly of FreeNAS 9.3 Everything worked correctly, and I've even started downloading TV episodes with Sickrage. They're post processing and ending up in the correct /mnt/media/videos/tvshows/ directory.

The only issue I'm having is, (similar to the prior post), post processing via Couchpotato. After SABNzbd downloads the movie completely, the SABNzbd download screen lists the download with the following error message;
Code:
Exit(1) Exception AttributeError: "’NoneType’ object has no attribute ’path’" in (More)

Here's the Traceback section from the script log of the failed post processed download;
Code:
[15:45:42] [POSTPROCESS]::COUCHPOTATO: Starting renamer scan for movie.nzb
Traceback (most recent call last):
  File "/usr/local/share/nzbToMedia/nzbToCouchPotato.py", line 249, in <module>
  result = nzbToMedia.main(sys.argv, section)
  File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 710, in main
  download_id='')
  File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 595, in process
  inputCategory, failureLink)
  File "/usr/local/share/nzbToMedia/nzbtomedia/autoProcess/autoProcessMovie.py", line 242, in process
  result = r.json()
  File "/usr/local/share/nzbToMedia/libs/requests/models.py", line 759, in json
  return json.loads(self.text, **kwargs)
  File "/usr/local/lib/python2.7/json/__init__.py", line 338, in loads
  return _default_decoder.decode(s)
  File "/usr/local/lib/python2.7/json/decoder.py", line 366, in decode
  obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.7/json/decoder.py", line 384, in raw_decode
  raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method PosixProcess.__del__ of <nzbtomedia.nzbToMediaUtil.PosixProcess instance at 0x807e7e9e0>> ignored
did you restart CP after changing the web_root option? maybe it's not listening at http://jail_IP:5050/couchpotato yet? I don't mention to do this, but probably should.
 

jasn

Dabbler
Joined
Dec 19, 2014
Messages
32
did you restart CP after changing the web_root option? maybe it's not listening at http://jail_IP:5050/couchpotato yet? I don't mention to do this, but probably should.
Wow. Scary. A reboot is all it took. I don't know if I've ever followed such a complicated howto, and managed to get it working right on the first try, but it just happened. Great work Josh!

At this point I only have two other things. The first is if I want to add an additional plugin to this setup, like Headphones, would it mean following a similar methodology, uploading the plugin, configure it in the same jail, etc.?

The second thing is that I want to use this post to setup Transmission to use PIA VPN when it runs. If you have any advice I'd love to read it. I'm guessing if it's setup in the same jail and Transmission runs, it's going to setup the VPN for the jail at that point, and if SABNzbd is running, it would affect that service too. Is that correct?

Jason
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@jasn
Thanks, I'm gonna add the steps to restart CP

yes, others have added headphones to this setup with the sane steps. I've just never used it myself.

yes I would think sabnzbd would be stuck using that tunnel also. you could experiment with running transmission in a different jail. it would take work, both transmission and sabnzbd need access to the same media dataset and nzbToMedia scripts. maybe just have 2 identical copies of nzbToMedia, or even store the scripts on the media dataset
 
Status
Not open for further replies.
Top