[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
Joshua solved my problem of post #1230 by adding 'user' and 'password' in the autoProcessMedia.cfg. Funny that CP works well without this condition, now the SR not! So it is the hint to solve for someone who has the same problem as me!

Another thing, you could help me how to configure NGINX to have remote access to plugins? I have a registered domain and would like to have something like <www.mydomain.com/sickrage> or <www.mydomain.com/couchpotato> ...

Thanks for your help ....
did you follow my blog post? if so, your nginx should already have everything available from http://jail_IP/program

I'm not sure what you are trying to accomplish exactly. I assume this is what you want to do...
* forward TCP port 80 to your jail_IP
* i suggest you add a password to nginx if your programs aren't password protected
* assuming you have a dynamic DNS, you'll need a dynamic DNS provider. I use FreeDNS, and set my router (or you can do this in freenas) to keep my IP updated
 

Ray Milyard

Patron
Joined
Aug 8, 2014
Messages
262
so it doesn't seem like transmission is running the script/or the script is failing and not logging anything. maybe double check your autoProcessMedia.cfg, your settings.json and that nzbToMedia is owned by media. sorry I couldn't be more help


It seems runs sometimes and others it doesn't.
 

Dmitry Nevozhay

Dabbler
Joined
May 30, 2014
Messages
30
I would check headphones config in /var/db/headphones for any mention of listening IP. you'll want to stop the service before actually editing this.

you could also try digging though headphone's logs in the same directory. an idea would be to stop the service, clear the logs, then start the service check the logs to see if headphones complains about attaching to the ipv4 address.
I checked config...
it contained in [General] section the following lines:
http_port = 8181
http_host = localhost
I tried to change http_host to exact jail's IP value:
http_host = 192.168.1.10
And bingo!!!
After restart the GUI works again!
But i don't understand why the localhost is a bad value for jail's web server???
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I checked config...
it contained in [General] section the following lines:
http_port = 8181
http_host = localhost
I tried to change http_host to exact jail's IP value:
http_host = 192.168.1.10
And bingo!!!
After restart the GUI works again!
But i don't understand why the localhost is a bad value for jail's web server???
not sure, maybe headphones changed something where localhost means IPv6?
 

Gerald Young

Dabbler
Joined
Dec 14, 2014
Messages
24
quick question for you guys.. I have sab, transmission, sickrage, and couch potato running all in the same jail in my tank volume and plex running in a separate jail in the same volume. Now my question is can I install headphones in the same jail as sab and have everything work and store the music in a different Volume?
 

Dmitry Nevozhay

Dabbler
Joined
May 30, 2014
Messages
30
Gerald, yes you can. You should "add storage" to sab's jail, with source pointing to "different Volume". And the user media (uid=816) should have read/write access to that new volume (or jail's group media (gid=816) should include user with the same uid of owner of "different Volume")
 

Gerald Young

Dabbler
Joined
Dec 14, 2014
Messages
24
You should "add storage" to sab's jail, with source pointing to "different Volume". And the user media (uid=816) should have read/write access to that new volume (or jail's group media (gid=816) should include user with the same uid of owner of "different Volume")

So I can add more than one storage source to a jail? I already have shows and movies stored in "tank" and want to keep them going there, I just have music deposited into "different volume"
 

Dmitry Nevozhay

Dabbler
Joined
May 30, 2014
Messages
30
You can add as many as you want
 

Gerald Young

Dabbler
Joined
Dec 14, 2014
Messages
24
anddd broken again.. I tryed to get HP working but it won't pass the info to sab.. tuned it all off but getting this error now with CP and SR.
Code:
[12:25:26] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[12:25:26] [INFO]::MAIN: Checking database structure...
[12:25:26] [INFO]::MAIN: Checking if git needs an update
[12:25:26] [INFO]::MAIN: There is a newer version available  (you're 65 commits behind)
[12:25:26] [INFO]::MAIN: nzbToMedia Version:9b143cd6f2eb2edc14f32149ed9e4532c3ecd7c6 Branch:master (FreeBSD 9.1-RELEASE)
[12:25:26] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
[12:25:26] [INFO]::MAIN: #########################################################
[12:25:26] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[12:25:26] [INFO]::MAIN: #########################################################
[12:25:26] [INFO]::MAIN: Script triggered from SABnzbd 0.7.17+
[12:25:26] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[12:25:26] [INFO]::MAIN: Calling SickBeard:tv to post-process:Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.nzb
[12:25:27] [INFO]::MAIN: Attempting to auto-detect tv fork
[12:25:27] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...
[12:25:27] [INFO]::MAIN: SickBeard:tv fork set to sickrage
/usr/local/bin/ffprobe: Undefined symbol "av_log_get_flags"
/usr/local/bin/ffprobe: Undefined symbol "av_log_get_flags"
[12:25:27] [ERROR]::TRANSCODER: Checking [/usr/local/share/nzbToMedia/tests/test.mp4] has failed
[12:25:27] [INFO]::TRANSCODER: DISABLED: ffprobe failed to analyse test file. Stopping corruption check.
[12:25:27] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[12:25:27] [POSTPROCESS]::SICKBEARD: Processing folder /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [POSTPROCESS]::SICKBEARD: TV_DOWNLOAD_DIR:
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing Path: /mnt/media/downloads/sabnzbd/complete/tv
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing Dirs: [u'Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN']
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing Files: []
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing VideoFiles: []
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing RarContent: []
[12:25:27] [POSTPROCESS]::SICKBEARD: PostProcessing VideoInRar: []
[12:25:27] [POSTPROCESS]::SICKBEARD: Processing folder Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [POSTPROCESS]::SICKBEARD: Processing folder /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [POSTPROCESS]::SICKBEARD: Found unwanted files: ['Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.nfo', 'Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.sfv']
[12:25:27] [POSTPROCESS]::SICKBEARD: Processing /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv (Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.nzb)
[12:25:27] [POSTPROCESS]::SICKBEARD: Found result in history: (<sickbeard.tv.TVShow object at 0x80b7e8cd0>, 3, [], 64, -1)
[12:25:27] [POSTPROCESS]::SICKBEARD: Retrieving episode object for 3x16
[12:25:27] [POSTPROCESS]::SICKBEARD: Snatch history had a quality in it, using that: 1080p WEB-DL
[12:25:27] [POSTPROCESS]::SICKBEARD: SB snatched this episode so I'm marking it as priority
[12:25:27] [POSTPROCESS]::SICKBEARD: Is ep a priority download: True
[12:25:27] [POSTPROCESS]::SICKBEARD: Snatch history had a version in it, using that: v-1
[12:25:27] [POSTPROCESS]::SICKBEARD: There is no existing file so there's no worries about replacing it
[12:25:27] [POSTPROCESS]::SICKBEARD: This download is marked a priority download so I'm going to replace an existing file if I find one
[12:25:27] [POSTPROCESS]::SICKBEARD: Found release name Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN
[12:25:27] [POSTPROCESS]::SICKBEARD: Processing failed for /mnt/media/downloads/sabnzbd/complete/tv/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN/Arrow.S03E16.The.Offer.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv: Unable to post-process an episode if the show dir doesn't exist, quitting
[12:25:27] [POSTPROCESS]::SICKBEARD: Problem(s) during processing
[12:25:27] [ERROR]::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script.
SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the scripts is saying it can't find the folder to move the file to. does your show/season folder for this show exist? if so, maybe you changed a setting somewhere so the script doesn't know where to look.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
duplicate post
 

Gerald Young

Dabbler
Joined
Dec 14, 2014
Messages
24
i got it along with installing hp i did the freenas updates.. which unmounted the storage for what ever reason.. thanks for having a look though..
 

IAmCole

Cadet
Joined
Mar 21, 2015
Messages
3
Hey guys, apologies in advance if this is just a noob question, but I've been fooling around with things for the last 3 days and can't seem to get the kinks worked out.

I installed the sabnzbd plugin on my FreeNAS 9.3 box (let me know if you need more hardware configuration information). I originally tried to create a root/wheel owned dataset for SAB to save completed downloads and incomplete downloads in (also added a CIFS share for this dataset). I added the dataset as storage in the sab jail and pointed it to the <sabjail>/media folder. This seemed to work fine and in the config->folders section, I could browse the dataset as I expected. Upon saving the changes, however, I saw access denied errors in the SAB logs and the config values reverted back to their original values and didn't persist the changes.

To try and solve this problem, I created a media user/group with id's of 816 on my freenas box. I created a new media dataset owned by media/media. I also created a CIFS share for the new media dataset. I remapped <sabjail>/media to the new media dataset. SAB now allowed me to configure the folders to point to the dataset where they would be accessible from my CIFS share and Sonarr. I verified I had access to the share from my computer by creating some folders in it. I then started some downloads via sonarr. As soon as the incomplete folder had files added to it, i could no longer access it from my CIFS share. The same thing with the completed folder (actually...SAB put the completed files into a TV folder. I could navigate into the /completed folder and see the /tv folder, but when trying to navigate to /tv, I got access denied). Additionally, Sonarr can't grab the completed files (I believe it is also getting access denied).

I've tried starting from scratch several times, but keep hitting the same issues. Any idea what may be the problem or how to fix it?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey guys, apologies in advance if this is just a noob question, but I've been fooling around with things for the last 3 days and can't seem to get the kinks worked out.

I installed the sabnzbd plugin on my FreeNAS 9.3 box (let me know if you need more hardware configuration information). I originally tried to create a root/wheel owned dataset for SAB to save completed downloads and incomplete downloads in (also added a CIFS share for this dataset). I added the dataset as storage in the sab jail and pointed it to the <sabjail>/media folder. This seemed to work fine and in the config->folders section, I could browse the dataset as I expected. Upon saving the changes, however, I saw access denied errors in the SAB logs and the config values reverted back to their original values and didn't persist the changes.

To try and solve this problem, I created a media user/group with id's of 816 on my freenas box. I created a new media dataset owned by media/media. I also created a CIFS share for the new media dataset. I remapped <sabjail>/media to the new media dataset. SAB now allowed me to configure the folders to point to the dataset where they would be accessible from my CIFS share and Sonarr. I verified I had access to the share from my computer by creating some folders in it. I then started some downloads via sonarr. As soon as the incomplete folder had files added to it, i could no longer access it from my CIFS share. The same thing with the completed folder (actually...SAB put the completed files into a TV folder. I could navigate into the /completed folder and see the /tv folder, but when trying to navigate to /tv, I got access denied). Additionally, Sonarr can't grab the completed files (I believe it is also getting access denied).

I've tried starting from scratch several times, but keep hitting the same issues. Any idea what may be the problem or how to fix it?
you solved the plugin writing issue. you issue now has to do with what user CIFS is doing operations with, not so much a plugin issue.

here's some tips
* in sabnzbd you can change the permissions it writes files as.
* you could force the user CIFS access files as to match sabnzbd's user
 

IAmCole

Cadet
Joined
Mar 21, 2015
Messages
3
you solved the plugin writing issue. you issue now has to do with what user CIFS is doing operations with, not so much a plugin issue.

here's some tips
* in sabnzbd you can change the permissions it writes files as.
* you could force the user CIFS access files as to match sabnzbd's user

Thanks for getting back to me so quickly. I don't think it's just a CIFS issue, Sonarr is also unable to access the completed files. Also, I tried out some other stuff and found that if I drop a .nzb file into SAB's watched directory, I can access the downloaded files when they complete (along with the incomplete files while the downloads are in progress). So it appears as though only downloads initiated through Sonarr are the problem. Also, here is the full error message that I'm seeing when I try to access the share on my windows machine:
\\FREENAS\media\Downloads\Complete\TV is not accessible. You might not have permission to use this network resource. Contact that administrator to find out if you have access permissions.

The handle is invalid.

The user I'm authenticated as is in all groups, including media (which the dataset is owned by) and wheel.

Edit: Forgot to ask - how do you change the permissions that SAB writes the files as? I changed the config value for "Permissions for completed downloads" to 777, but it didn't seem to solve the problem. Is that what you were talking about?
 
Last edited:

IAmCole

Cadet
Joined
Mar 21, 2015
Messages
3
Ok, I'm an idiot. Looks like setting the permissions to 777 did actually work, but I guess the original TV folder was created before I made that change, so it had the locked down permissions that prevented sonarr and my CIFS from being able to access (even the new files dropped in). I changed the completed directory and everything started working.

Thanks again for your help!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, I'm an idiot. Looks like setting the permissions to 777 did actually work, but I guess the original TV folder was created before I made that change, so it had the locked down permissions that prevented sonarr and my CIFS from being able to access (even the new files dropped in). I changed the completed directory and everything started working.

Thanks again for your help!
no prob, glad you got it working
 

Habs33

Dabbler
Joined
Apr 25, 2014
Messages
15
Got around to signing up for a usenet but after trying to download something, I get this error in SABnzbd. Note I'm using Sickrage and not sickbeard

[02:10:10] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[02:10:10] [ERROR]::SICKBEARD: Server returned status 404
[02:10:10] [ERROR]::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script.
SickBeard: Failed to post-process - Server returned status 404!

any ideas?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Got around to signing up for a usenet but after trying to download something, I get this error in SABnzbd. Note I'm using Sickrage and not sickbeard



any ideas?
sounds like to me it 404ed when connecting to either sickbeard or sabnzbd. did you configure both in your autoProcessMedia.cfg?
i believe you need to put your sabnzbd api key in the [nzb] section.
 
Status
Not open for further replies.
Top Bottom