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

Status
Not open for further replies.

Habs33

Dabbler
Joined
Apr 25, 2014
Messages
15
I redid my setup to have all the plugins under one jail. But I still get the same error when I try to start any of the plugins
bnzbd_1 su: in openpam_check_desc_owner_perms(): /etc/pam.d/su: insecure ownership or permissions

Feb 22 18:12:14 sabnzbd_1 su: pam_start: system error​
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I redid my setup to have all the plugins under one jail. But I still get the same error when I try to start any of the plugins
bnzbd_1 su: in openpam_check_desc_owner_perms(): /etc/pam.d/su: insecure ownership or permissions

Feb 22 18:12:14 sabnzbd_1 su: pam_start: system error​
Why do you say it's the same error? The earlier error was because the 'media' user didn't exist, this is because your jail is broken.

The error "insecure ownership or permissions" usually happens when someone changes the ownership/permissions of their jail dataset(s). This will break the jail. Only ever change ownership/permissions of datasets you mount into your jail.
 

Habs33

Dabbler
Joined
Apr 25, 2014
Messages
15
I removed all my jails and redid it with only 1. But I never changed the permissions though. Is there a way to fix this?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I removed all my jails and redid it with only 1. But I never changed the permissions though. Is there a way to fix this?
Hmm.. strange. The ownership or permissions of /etc/pam.d/su somehow got altered.

I'd personally install sabnzbd again into a parallel jail and make sure it's starting correctly.
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
looks good to me. your saying your torrentToMedia script doesn't run anymore? can you double check your settings.json?
Code:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/local/share/nzbToMedia/TorrentToMedia.py",
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/local/share/nzbToMedia/TorrentToMedia.py",
are you able to run the scripts manually?
does 'media' own the nzbToMedia folder?
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471

Joshua Parker Ruehlig

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

Habs33

Dabbler
Joined
Apr 25, 2014
Messages
15
Hmm.. strange. The ownership or permissions of /etc/pam.d/su somehow got altered.

I'd personally install sabnzbd again into a parallel jail and make sure it's starting correctly.
Redid all the steps and now everything is working :). Thanks for all your help
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Redid all the steps and now everything is working :). Thanks for all your help
glad it's working. hope it stays that way =]
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
weird enough, it's working now... :/
Did you do anything to fix it or did it just start running? I am having the same issue where transmission is not running the torrenttomedia.py script. Also there are no log entries from transmission in the nzbtomedia.log file. I have followed the blog and video, checked the .json file and autoprocessmedia.cfg files and they appear to match the video and blog. The settings.json file in transmission is what initiates the torrenttomedia.py script right?
 

MtK

Patron
Joined
Jun 22, 2013
Messages
471
Did you do anything to fix it or did it just start running? I am having the same issue where transmission is not running the torrenttomedia.py script. Also there are no log entries from transmission in the nzbtomedia.log file. I have followed the blog and video, checked the .json file and autoprocessmedia.cfg files and they appear to match the video and blog. The settings.json file in transmission is what initiates the torrenttomedia.py script right?
Not that I remember, but do try to at least restart transmission if not the entire jail.

@Joshua, any chance to add logs to the transmission plugin?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Not that I remember, but do try to at least restart transmission if not the entire jail.

@Joshua, any chance to add logs to the transmission plugin?
I think you could do this by doing the below..
Code:
sysrc 'transmission_flags=-e /path/to/transmission.log'
service transmission restart
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
Well, i had everything working nicely except for getting transmission to run the script torrenttomedia so i tried to get that working and during that process I stupidly nuked my entire jail by setting permissions recursively. Big mistake. Learning the hard way i guess. I started over and am not at another stopping point. It seems to be a permission problem but its over my head in terms of freenas. the script starts to run then failed with the following [Errno 13] Permission denied. Hopefully someone can help me reverse my mistake and get this working again.

Code:
2015-02-26 00:28:25 INFO    ::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
2015-02-26 00:28:25 INFO    ::MAIN: Checking database structure...
2015-02-26 00:28:25 INFO    ::MAIN: Checking if git needs an update
2015-02-26 00:28:25 INFO    ::MAIN: No update needed
2015-02-26 00:28:25 INFO    ::MAIN: nzbToMedia Version:77da142216ba6dc91bb654635d4bd03f13c881e5 Branch:dev (FreeBSD 9.1-RELEASE)
2015-02-26 00:28:25 WARNING ::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
2015-02-26 00:28:25 INFO    ::MAIN: #########################################################
2015-02-26 00:28:25 INFO    ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2015-02-26 00:28:25 INFO    ::MAIN: #########################################################
2015-02-26 00:28:25 INFO    ::MAIN: Script triggered from SABnzbd
2015-02-26 00:28:25 INFO    ::MAIN: Auto-detected SECTION:SickBeard
2015-02-26 00:28:25 INFO    ::MAIN: Calling SickBeard:tv to post-process:Archer.2009.S05E12.720p.BluRay.X264-REWARD.nzb
2015-02-26 00:28:25 INFO    ::MAIN: Attempting to auto-detect tv fork
2015-02-26 00:28:25 INFO    ::MAIN: SickBeard:tv fork auto-detection successful ...
2015-02-26 00:28:25 INFO    ::MAIN: SickBeard:tv fork set to sickrage
2015-02-26 00:28:25 INFO    ::TRANSCODER: Checking [archer.2009.s05e12.720p.bluray.x264-reward.mkv] for corruption, please stand by ...
2015-02-26 00:28:25 INFO    ::TRANSCODER: SUCCESS: [archer.2009.s05e12.720p.bluray.x264-reward.mkv] has no corruption.
2015-02-26 00:28:25 INFO    ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 INFO    ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing folder /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: TV_DOWNLOAD_DIR:
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Path: /media/Downloads/sabnzbd/Complete/tv
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Dirs: [u'Archer.2009.S05E12.720p.BluRay.X264-REWARD.2']
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Files: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing VideoFiles: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing RarContent: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing VideoInRar: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing folder Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv (Archer.2009.S05E12.720p.BluRay.X264-REWARD.nzb)
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Found result in history: (<sickbeard.tv.TVShow object at 0x80b726710>, 5, [], 128, -1)
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Retrieving episode object for 5x12
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Snatch history had a quality in it, using that: 720p BluRay
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: SB snatched this episode so I'm marking it as priority
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Is ep a priority download: True
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Snatch history had a version in it, using that: v-1
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: There is no existing file so there's no worries about replacing it
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: This download is marked a priority download so I'm going to replace an existing file if I find one
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Found release name Archer.2009.S05E12.720p.BluRay.X264-REWARD
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Destination folder for this episode: /media/TVShows/Archer (2009)/Season 05
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Moving file from /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv to /media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Unable to move file /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv to /media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv: [Errno 13] Permission denied: '/media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv'
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing failed for /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv: Unable to move the files to their new home
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Problem(s) during processing
2015-02-26 00:28:25 ERROR   ::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Well, i had everything working nicely except for getting transmission to run the script torrenttomedia so i tried to get that working and during that process I stupidly nuked my entire jail by setting permissions recursively. Big mistake. Learning the hard way i guess. I started over and am not at another stopping point. It seems to be a permission problem but its over my head in terms of freenas. the script starts to run then failed with the following [Errno 13] Permission denied. Hopefully someone can help me reverse my mistake and get this working again.

Code:
2015-02-26 00:28:25 INFO    ::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
2015-02-26 00:28:25 INFO    ::MAIN: Checking database structure...
2015-02-26 00:28:25 INFO    ::MAIN: Checking if git needs an update
2015-02-26 00:28:25 INFO    ::MAIN: No update needed
2015-02-26 00:28:25 INFO    ::MAIN: nzbToMedia Version:77da142216ba6dc91bb654635d4bd03f13c881e5 Branch:dev (FreeBSD 9.1-RELEASE)
2015-02-26 00:28:25 WARNING ::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
2015-02-26 00:28:25 INFO    ::MAIN: #########################################################
2015-02-26 00:28:25 INFO    ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2015-02-26 00:28:25 INFO    ::MAIN: #########################################################
2015-02-26 00:28:25 INFO    ::MAIN: Script triggered from SABnzbd
2015-02-26 00:28:25 INFO    ::MAIN: Auto-detected SECTION:SickBeard
2015-02-26 00:28:25 INFO    ::MAIN: Calling SickBeard:tv to post-process:Archer.2009.S05E12.720p.BluRay.X264-REWARD.nzb
2015-02-26 00:28:25 INFO    ::MAIN: Attempting to auto-detect tv fork
2015-02-26 00:28:25 INFO    ::MAIN: SickBeard:tv fork auto-detection successful ...
2015-02-26 00:28:25 INFO    ::MAIN: SickBeard:tv fork set to sickrage
2015-02-26 00:28:25 INFO    ::TRANSCODER: Checking [archer.2009.s05e12.720p.bluray.x264-reward.mkv] for corruption, please stand by ...
2015-02-26 00:28:25 INFO    ::TRANSCODER: SUCCESS: [archer.2009.s05e12.720p.bluray.x264-reward.mkv] has no corruption.
2015-02-26 00:28:25 INFO    ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 INFO    ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing folder /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: TV_DOWNLOAD_DIR:
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Path: /media/Downloads/sabnzbd/Complete/tv
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Dirs: [u'Archer.2009.S05E12.720p.BluRay.X264-REWARD.2']
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing Files: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing VideoFiles: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing RarContent: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: PostProcessing VideoInRar: []
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing folder Archer.2009.S05E12.720p.BluRay.X264-REWARD.2
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv (Archer.2009.S05E12.720p.BluRay.X264-REWARD.nzb)
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Found result in history: (<sickbeard.tv.TVShow object at 0x80b726710>, 5, [], 128, -1)
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Retrieving episode object for 5x12
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Snatch history had a quality in it, using that: 720p BluRay
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: SB snatched this episode so I'm marking it as priority
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Is ep a priority download: True
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Snatch history had a version in it, using that: v-1
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: There is no existing file so there's no worries about replacing it
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: This download is marked a priority download so I'm going to replace an existing file if I find one
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Found release name Archer.2009.S05E12.720p.BluRay.X264-REWARD
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Destination folder for this episode: /media/TVShows/Archer (2009)/Season 05
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Moving file from /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv to /media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Unable to move file /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv to /media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv: [Errno 13] Permission denied: '/media/TVShows/Archer (2009)/Season 05/Archer (2009) - S05E12 - Archer Vice Filibuster.mkv'
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Processing failed for /media/Downloads/sabnzbd/Complete/tv/Archer.2009.S05E12.720p.BluRay.X264-REWARD.2/archer.2009.s05e12.720p.bluray.x264-reward.mkv: Unable to move the files to their new home
2015-02-26 00:28:25 POSTPROCESS::SICKBEARD: Problem(s) during processing
2015-02-26 00:28:25 ERROR   ::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script.
You need to make sure that trasmission can write in /media/TVShows
Pick a solution from here.
https://forums.freenas.org/index.ph...plugins-write-permissions-to-your-data.27273/
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
my permission on the data set the jail is using were set to user media (816) and group media (816) is there a way to double check in shell that the permission are correct?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
my permission on the data set the jail is using were set to user media (816) and group media (816) is there a way to double check in shell that the permission are correct?
ls -l /media/TVShows

Is transmission running as the transmission user (default) or did you change it to the media user? (using 'sysrc transmission_user=media')
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
ls -l /media/TVShows

Is transmission running as the transmission user (default) or did you change it to the media user? (using 'sysrc transmission_user=media')
i followed your blog and changed it in to the media user. Sickrage is getting sabnzbd to download and it starts to be processed by nzbtomedia but it seems that when it tries to move the completed download the script stops because it cant write to my TVShows folder
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i followed your blog and changed it in to the media user. Sickrage is getting sabnzbd to download and it starts to be processed by nzbtomedia but it seems that when it tries to move the completed download the script stops because it cant write to my TVShows folder
What's the ownership/permissions of the folder. (the "ls -l" command I posted earlier)
 
Status
Not open for further replies.
Top