[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
The "Add Storage" options creates a nullfs mountpoint, which is a link from one spot to another. Whether you look at the file in it's original location or nullfs mounted location (inside the jail) they reference the same files with the same permission levels, UID, and GID.

Files when viewer from a jail's perspective, or hosts perspective will have the same permission levels, UID, and GID. A jail, or host may associate these UID/GID using their local user/group database but these are not synced.

1) Mounting the files into the jail doesn't change the permission of anything. Changing them within the jail will change the from the host's perspective as well, even on the original (non-nullfs) location.
2) Yes, if you follow my blog and change ownership of your files to 'media:media' inside the jail, they will look like '816:816' from the host's perspective, even on the original (non-nullfs) location.
3) The media user or group aren't created directly during the blog post, either in the jail or on the host. They are indirectly created in jail when you install sabnzbd though, because that plugin requires that user.

4) I'm not an expert when it comes to CIFS but have a little experience with it. What I have done in the past (on FreeBSD not FreeNAS) is have CIFS do everything for a share as a certain user, this is where I recommend creating the 'media' user in the host. I then regulate CIFS access with CIFS accounts. I don't know is this is possible to setup with FreeNAS. There is probably other ways to skin this cat though and this forums is a good place to ask.
As for OpenELEC, I have alot of experience. For my media dataset I have a read-only NFS share that I limit to the subnets of my OpenELEC boxes (you could even limit to their IP if they're static). If someone smart and sneaky was on your network they could read your media files, but this method is more elegant and performant than CIFS.

5) I have no idea the difference between those two, I don't think setting it to Windows would break anything though. I think it is more a Share (CIFS/NFS) thing.
 

malum-in-se

Dabbler
Joined
Nov 6, 2014
Messages
19
Thanks for getting back to me so promptly. I've gotten everything up and running but it kicked back with a post processing error for tvshows, and movies aren't pulling in the category. But I've got a good starting point to tinker and work on it.
 

ClayM

Explorer
Joined
Mar 4, 2013
Messages
67
Has anybody set their sab/SB/etc up for external Internet access? Is there a recommended configuration for this?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Has anybody set their sab/SB/etc up for external Internet access? Is there a recommended configuration for this?
I just have nginx in front of everything so I don't need to remember port numbers, and use DynamicDNS casue I have a dynamic IP at my house. (ex. http://domain.com/sabnzbd)

I have everything password protected, but might do something different in the future...
Password through nginx, and have everything un-password protected locally. This only works because I have isolated subnets in my house though.
 

malum-in-se

Dabbler
Joined
Nov 6, 2014
Messages
19
Got everything up and running, post and everything running great. That guide is solid. I could've spent leas time researching and just followed the guide. Good solid directions.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Got everything up and running, post and everything running great. That guide is solid. I could've spent leas time researching and just followed the guide. Good solid directions.
Glad it worked out well!
 

Savell Martin

Contributor
Joined
Jun 10, 2013
Messages
164
Hey Josh,

I know you are a busy guy, but just wondering how are you getting on with Sonarr?
I waiting to upgrade to 9.3 to do a fresh install and use Sonarr instead of SickBeard.
 

Joshua Parker Ruehlig

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

I know you are a busy guy, but just wondering how are you getting on with Sonarr?
I waiting to upgrade to 9.3 to do a fresh install and use Sonarr instead of SickBeard.
probably won't get to it for at least a month.. got a lot of projects im working on right now. but maybe I'll find a way to sneak it in this weekend.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I'm having issues with nzbToMedia working correctly with transmission. Can someone take a look at my ps aux results and see if it's right? If not how to fix it.

Code:
root@sabnzbd_1:/ # ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
media 39109 0.0 0.7 244428 54876 ?? SJ 4:14PM 0:05.81 /usr/pbi/couchpotat
root 39540 0.0 0.1 25092 4212 ?? IsJ 4:25PM 0:00.00 nginx: master proce
www 39541 0.0 0.1 25092 4668 ?? IJ 4:25PM 0:00.00 nginx: worker proce
www 39542 0.0 0.1 25092 4664 ?? SJ 4:25PM 0:00.04 nginx: worker proce
root 51630 0.0 0.4 168892 33544 ?? IJ 5:00PM 0:03.82 /usr/pbi/sickrage-a
root 53811 0.0 0.0 12092 1600 ?? IsJ Tue03PM 0:00.09 /usr/sbin/syslogd -
media 53894 0.0 1.9 413264 157732 ?? IJ Tue03PM 5:07.29 /usr/pbi/sabnzbd-am
root 53926 0.0 0.0 14188 1616 ?? IsJ Tue03PM 0:00.08 /usr/sbin/cron -s
root 54150 0.0 0.4 192396 35976 ?? IJ Tue03PM 0:04.81 /usr/pbi/transmissi
root 54155 0.0 0.4 177084 33680 ?? IJ Tue03PM 0:04.35 /usr/pbi/couchpotat
root 54165 0.0 0.4 172456 33812 ?? IJ Tue03PM 0:04.33 /usr/pbi/sabnzbd-am
media 74525 0.0 4.6 911412 385256 ?? IJ 6:13PM 3:11.67 /usr/pbi/sickrage-a
root 61900 0.0 0.0 17572 3032 1 SsJ 4:53PM 0:00.01 /bin/csh
root 62037 0.0 0.0 16300 1880 1 R+J 4:57PM 0:00.00 ps aux
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm having issues with nzbToMedia working correctly with transmission. Can someone take a look at my ps aux results and see if it's right? If not how to fix it.

Code:
root@sabnzbd_1:/ # ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
media 39109 0.0 0.7 244428 54876 ?? SJ 4:14PM 0:05.81 /usr/pbi/couchpotat
root 39540 0.0 0.1 25092 4212 ?? IsJ 4:25PM 0:00.00 nginx: master proce
www 39541 0.0 0.1 25092 4668 ?? IJ 4:25PM 0:00.00 nginx: worker proce
www 39542 0.0 0.1 25092 4664 ?? SJ 4:25PM 0:00.04 nginx: worker proce
root 51630 0.0 0.4 168892 33544 ?? IJ 5:00PM 0:03.82 /usr/pbi/sickrage-a
root 53811 0.0 0.0 12092 1600 ?? IsJ Tue03PM 0:00.09 /usr/sbin/syslogd -
media 53894 0.0 1.9 413264 157732 ?? IJ Tue03PM 5:07.29 /usr/pbi/sabnzbd-am
root 53926 0.0 0.0 14188 1616 ?? IsJ Tue03PM 0:00.08 /usr/sbin/cron -s
root 54150 0.0 0.4 192396 35976 ?? IJ Tue03PM 0:04.81 /usr/pbi/transmissi
root 54155 0.0 0.4 177084 33680 ?? IJ Tue03PM 0:04.35 /usr/pbi/couchpotat
root 54165 0.0 0.4 172456 33812 ?? IJ Tue03PM 0:04.33 /usr/pbi/sabnzbd-am
media 74525 0.0 4.6 911412 385256 ?? IJ 6:13PM 3:11.67 /usr/pbi/sickrage-a
root 61900 0.0 0.0 17572 3032 1 SsJ 4:53PM 0:00.01 /bin/csh
root 62037 0.0 0.0 16300 1880 1 R+J 4:57PM 0:00.00 ps aux
that ps output doesn't show much. but one thing I did notice is transmission isn't even running.

your trying to have transmission run a post-processing script after downloading stuff from sickrage? did you follow my blog? do you have a nzbtomedia log from the failed post-processing attempt.

someone else said these stopped working with each other recently so that would mean complaining to sickrage or nzbtomedia. both devs frequent the sickrage forums.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Sorry I had transmission stopped because I was messing with the configurations. I saw a few pages back someone having an issue and you said to make sure transmission is running as media. Mine appears to be running as root so I wanted to see how to change that. I can get logs when I get home as well.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry I had transmission stopped because I was messing with the configurations. I saw a few pages back someone having an issue and you said to make sure transmission is running as media. Mine appears to be running as root so I wanted to see how to change that. I can get logs when I get home as well.
I doubt it's running as root, you'd need to have changed some stuff for this to happen. you may be confusing transmission-daemon with the interface that interacts between freenas and transmission.

did you see anything in the nzbtomedia logs?
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
your config looks fine then. did you check to see the mointpoint into the jail is there.

does transmission have permissions to write in it's download directories? it should be run be 'media'. check 'ps aux'

I was talking about this. I followed your updated 9.3 guide. The only variance is I have a user and group assigned ID 816 that isn't discussed on your blog. Right now, movies are grabbed by CouchPotato and are downloading through Transmission. Once it finishes it completely disappears. I have been unable to find it by looking through CIFS and SSH. SickRage grabs shows and Transmission downloads them and once it's finished it goes into a Paused status. I can manually post process them and it works fine, but I would like the NZBtoMedia script to work. I'm downloading some things now and once they are done I'll post the log. All downloads that go through SabNZB have no issue at all post processing.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I was talking about this. I followed your updated 9.3 guide. The only variance is I have a user and group assigned ID 816 that isn't discussed on your blog. Right now, movies are grabbed by CouchPotato and are downloading through Transmission. Once it finishes it completely disappears. I have been unable to find it by looking through CIFS and SSH. SickRage grabs shows and Transmission downloads them and once it's finished it goes into a Paused status. I can manually post process them and it works fine, but I would like the NZBtoMedia script to work. I'm downloading some things now and once they are done I'll post the log. All downloads that go through SabNZB have no issue at all post processing.
The files from CP should be ending up in /mnt/media/videos/movies/ unless something isn't working somewhere in the process.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Ok, don't laugh at my movie I tried to download... I have kids.

Code:
2015-01-21 21:38:51 INFO    ::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
2015-01-21 21:38:51 INFO    ::MAIN: Checking database structure...
2015-01-21 21:38:51 INFO    ::MAIN: Checking if git needs an update
2015-01-21 21:38:52 INFO    ::MAIN: No update needed
2015-01-21 21:38:52 INFO    ::MAIN: nzbToMedia Version:bc2bab95ee4293775788bcb37eccf8333c7abb7a Branch:master (FreeBSD 9.3-RELEASE-p8)
2015-01-21 21:38:52 WARNING ::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
2015-01-21 21:38:52 INFO    ::MAIN: #########################################################
2015-01-21 21:38:52 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2015-01-21 21:38:52 INFO    ::MAIN: #########################################################
2015-01-21 21:38:52 INFO    ::MAIN: SEARCH: Found torrent directory Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS in input directory directory /mnt/media/downloads/transmission/complete/movie
2015-01-21 21:38:52 INFO    ::MAIN: SEARCH: Setting inputDirectory to /mnt/media/downloads/transmission/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:52 INFO    ::MAIN: Auto-detected SECTION:CouchPotato
2015-01-21 21:38:57 INFO    ::MAIN: Output directory set to: /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: FLATTEN: Flattening directory: /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 WARNING ::MAIN: Found no media files in /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Calling CouchPotato:movie to post-process:Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Attemping imdbID lookup for Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Searching folder and file names for imdbID ...
2015-01-21 21:38:57 INFO    ::MAIN: Searching IMDB for imdbID ...
2015-01-21 21:38:57 INFO    ::MAIN: Found imdbID [tt3611432]
2015-01-21 21:38:57 WARNING ::COUCHPOTATO: No media files found in directory /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS. Processing this as a failed download
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: FAILED DOWNLOAD DETECTED FOR Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: Setting failed release Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS to ignored ...
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: SUCCESS: Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS has been set to ignored ...
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: Trying to snatch the next highest ranked release.
2015-01-21 21:39:11 POSTPROCESS::COUCHPOTATO: SUCCESS: Snatched the next highest release ...


I watched the torrent finish, it went to seed status, but I don't do seeding and it then Paused automatically then completely disappeared. CouchPotato tried to pull another torrent but it looks like it's in Spanish so it cancels it.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, don't laugh at my movie I tried to download... I have kids.

Code:
2015-01-21 21:38:51 INFO    ::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
2015-01-21 21:38:51 INFO    ::MAIN: Checking database structure...
2015-01-21 21:38:51 INFO    ::MAIN: Checking if git needs an update
2015-01-21 21:38:52 INFO    ::MAIN: No update needed
2015-01-21 21:38:52 INFO    ::MAIN: nzbToMedia Version:bc2bab95ee4293775788bcb37eccf8333c7abb7a Branch:master (FreeBSD 9.3-RELEASE-p8)
2015-01-21 21:38:52 WARNING ::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
2015-01-21 21:38:52 INFO    ::MAIN: #########################################################
2015-01-21 21:38:52 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2015-01-21 21:38:52 INFO    ::MAIN: #########################################################
2015-01-21 21:38:52 INFO    ::MAIN: SEARCH: Found torrent directory Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS in input directory directory /mnt/media/downloads/transmission/complete/movie
2015-01-21 21:38:52 INFO    ::MAIN: SEARCH: Setting inputDirectory to /mnt/media/downloads/transmission/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:52 INFO    ::MAIN: Auto-detected SECTION:CouchPotato
2015-01-21 21:38:57 INFO    ::MAIN: Output directory set to: /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: FLATTEN: Flattening directory: /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 WARNING ::MAIN: Found no media files in /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Calling CouchPotato:movie to post-process:Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Attemping imdbID lookup for Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 INFO    ::MAIN: Searching folder and file names for imdbID ...
2015-01-21 21:38:57 INFO    ::MAIN: Searching IMDB for imdbID ...
2015-01-21 21:38:57 INFO    ::MAIN: Found imdbID [tt3611432]
2015-01-21 21:38:57 WARNING ::COUCHPOTATO: No media files found in directory /abs/path/to/complete/movie/Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS. Processing this as a failed download
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: FAILED DOWNLOAD DETECTED FOR Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: Setting failed release Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS to ignored ...
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: SUCCESS: Monster.High.Scaris.City.of.Frights.2013.DVDRip.XviD-AQOS has been set to ignored ...
2015-01-21 21:38:57 POSTPROCESS::COUCHPOTATO: Trying to snatch the next highest ranked release.
2015-01-21 21:39:11 POSTPROCESS::COUCHPOTATO: SUCCESS: Snatched the next highest release ...


I watched the torrent finish, it went to seed status, but I don't do seeding and it then Paused automatically then completely disappeared. CouchPotato tried to pull another torrent but it looks like it's in Spanish so it cancels it.
Why am I seeing "/abs/path/to/", can you double check your CP/nzbTpMedia settings.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm, maybe we need to set this now in autoProcessMedia.cfg
Code:
[Torrent]
outputDirectory = /mnt/media/downloads/transmission/complete
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Are you talking about this?
xeiik0.jpg


Do you want me to nano autoProcessMedia.cfg and add that line of code? Do I need to stop all of the services like Transmission, sickbeard, etc. first?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Are you talking about this?
xeiik0.jpg


Do you want me to nano autoProcessMedia.cfg and add that line of code? Do I need to stop all of the services like Transmission, sickbeard, etc. first?
No, CP looks good.
Just edit /usr/local/share/nzbToMedia/autoProcessMedia.cfg
You won't be adding the line, it's already there in the Torrent section, just edit it.

You don't need to stop anything.
 
Status
Not open for further replies.
Top