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

Status
Not open for further replies.

Oldtimer

Dabbler
Joined
Feb 19, 2015
Messages
10
I cannot access my plugins. The jail is on and running.

Hello I have been using the guide for a long with my old AMD motherboard with 16GB.

I upgraded to

Supermicro X10SL7-F Intel Xeon E3-1230V3 see signature

I decided to start again.

All was working splendidly for five days. When I decided to update Sabnzbd 1.02 to 1.03.

After the update I cannot access my plugins. The jail is on and running.

I rebooted , switched off tried service sabnzbd onestart.


I am at a lost at what to do now.


HELP
p.s Sorry about the earlier incomplete post
 

Oldtimer

Dabbler
Joined
Feb 19, 2015
Messages
10
All working now.
I deleted all plugins apart from sabnzbd.
Rebooted, then I was able to switch on the solitary sabnzbd and viola.
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Does anyone knows what's going on SAB with these warning messages?

Code:
21/06/2016 20:16 [21/Jun/2016:20:16:09] HTTP
Traceback (most recent call last):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 650, in respond
    self.hooks.run('on_start_resource')
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 114, in run
    raise exc
ValueError: need more than 1 value to unpack
ERRO 21/06/2016 20:16 [21/Jun/2016:20:16:08] 
Traceback (most recent call last):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 104, in run
    hook()
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 63, in __call__
    return self.callback(**self.kwargs)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/auth.py", line 65, in basic_auth
    if check_auth(users, encrypt):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/auth.py", line 11, in check_auth
    ah = httpauth.parseAuthorization(request.headers['authorization'])
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/httpauth.py", line 183, in parseAuthorization
    params = parser(auth_params)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/httpauth.py", line 163, in _parseBasicAuthorization
    username, password = base64_decode(auth_params).split(":", 1)
ValueError: need more than 1 value to unpack


Thanks!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Does anyone knows what's going on SAB with these warning messages?

Code:
21/06/2016 20:16 [21/Jun/2016:20:16:09] HTTP
Traceback (most recent call last):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 650, in respond
    self.hooks.run('on_start_resource')
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 114, in run
    raise exc
ValueError: need more than 1 value to unpack
ERRO 21/06/2016 20:16 [21/Jun/2016:20:16:08]
Traceback (most recent call last):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 104, in run
    hook()
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/_cprequest.py", line 63, in __call__
    return self.callback(**self.kwargs)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/auth.py", line 65, in basic_auth
    if check_auth(users, encrypt):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/auth.py", line 11, in check_auth
    ah = httpauth.parseAuthorization(request.headers['authorization'])
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/httpauth.py", line 183, in parseAuthorization
    params = parser(auth_params)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbdplus/cherrypy/lib/httpauth.py", line 163, in _parseBasicAuthorization
    username, password = base64_decode(auth_params).split(":", 1)
ValueError: need more than 1 value to unpack


Thanks!
maybe check on the sabnzbd forum. maybe an issue mismatching versions. did you happen to update anything before this error?
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
Josh,

I followed your guide verbatim and did not have any issues or errors that I noticed along the way. I am a bit of a Freenas noob.

I don't use Sab for downloads, just specifically Sickrage and transmission. I started a new download of a show , and the search and snatch worked fine, but when transmission finished, nothing happened. The download is just sitting in transmission complete.

I have the script location in the transmission Freenas config, and everything looks in order. I don't know what is stopping the script from launching and don't know what to do next...

Let me know what logs/errors to post here, as I said I'm pretty inept with this stuff...

Thanks in advance
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi @joshmxpx
I would see if you have any logs in /usr/local/share/nzbToMedia/logs

You could also double check the settings stuck in /var/db/transmission/settings.json
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
This is what i have in settings.json

Code:
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 8,
    "dht-enabled": true,
    "download-dir": "//Downloads",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/mnt/media/downloads/transmission/incomplete",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "pidfile": "/var/run/transmission/daemon.pid",
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "",
    "rpc-whitelist": "",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": true,
    "script-torrent-done-filename": "/usr/local/share/nzbToMedia/TorrentToMedia.py",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
"speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true,
    "watch-dir": "",
    "watch-dir-enabled": false
}


apparently the log file is empty, either that or i am opening it incorrectly.

this is what is there:

root@sabnzbd_1:/ # cd /usr/local/share/nzbToMedia/logs
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # ls
nzbtomedia.log nzbtomedia.pid
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
This is what i have in settings.json

Code:
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 8,
    "dht-enabled": true,
    "download-dir": "//Downloads",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/mnt/media/downloads/transmission/incomplete",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "pidfile": "/var/run/transmission/daemon.pid",
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": true,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "",
    "rpc-whitelist": "",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": true,
    "script-torrent-done-filename": "/usr/local/share/nzbToMedia/TorrentToMedia.py",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
"speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true,
    "watch-dir": "",
    "watch-dir-enabled": false
}


apparently the log file is empty, either that or i am opening it incorrectly.

this is what is there:

root@sabnzbd_1:/ # cd /usr/local/share/nzbToMedia/logs
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # ls
nzbtomedia.log nzbtomedia.pid
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs #
you should read that log file
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
you should read that log file

i use the cat command in putty and there is no return, which leads me to assume its a blank file:

Code:
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # ls
nzbtomedia.log  nzbtomedia.pid
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # cat nzbtomedia.log
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # cat nzbtomedia.pid
75755root@sabnzbd_1:/usr/local/share/nzbToMedia/logs #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i use the cat command in putty and there is no return, which leads me to assume its a blank file:

Code:
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # ls
nzbtomedia.log  nzbtomedia.pid
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # cat nzbtomedia.log
root@sabnzbd_1:/usr/local/share/nzbToMedia/logs # cat nzbtomedia.pid
75755root@sabnzbd_1:/usr/local/share/nzbToMedia/logs #
Hmm, maybe the script never ran for some reason. can you verify what happens when you run the script directly?

I don't think it's related to this issue, but I did notice your transmission download folder is incorrect in the config. maybe try restarting transmission and double check the settings.json has the same 'script-torrent-done-filename' still.
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
Hmm, maybe the script never ran for some reason. can you verify what happens when you run the script directly?

I don't think it's related to this issue, but I did notice your transmission download folder is incorrect in the config. maybe try restarting transmission and double check the settings.json has the same 'script-torrent-done-filename' still.

ok I figured out how to run the script directly. would it have mattered that i had to install the python package? here is the output from the script:

Code:
root@sabnzbd_1:/ # python /usr/local/share/nzbToMedia/TorrentToMedia.py
python: Command not found.
root@sabnzbd_1:/ # pkg install python
Updating FreeBSD repository catalogue...
[sabnzbd_1] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
[sabnzbd_1] Fetching packagesite.txz: 100%    6 MiB   2.9MB/s    00:02
Processing entries: 100%
FreeBSD repository update completed. 25427 packages processed.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        python: 2.7_2,2

Number of packages to be installed: 1

992 B to be downloaded.

Proceed with this action? [y/N]: y
[sabnzbd_1] Fetching python-2.7_2,2.txz: 100%    992 B   1.0kB/s    00:01
Checking integrity... done (0 conflicting)
[sabnzbd_1] [1/1] Installing python-2.7_2,2...
[sabnzbd_1] [1/1] Extracting python-2.7_2,2: 100%
root@sabnzbd_1:/ # python /usr/local/share/nzbToMedia/TorrentToMedia.py
[11:47:57] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[11:47:57] [INFO]::MAIN: Checking database structure...
[11:47:57] [INFO]::MAIN: Database upgrade required: Initial Schema
[11:47:57] [INFO]::MAIN: Checking if git needs an update
[11:47:57] [INFO]::MAIN: No update needed
[11:47:57] [INFO]::MAIN: nzbToMedia Version:2d770510a284fadc6b44628626f5769789086dbb Branch:master (FreeBSD 10.3-STABLE)
[11:47:58] [INFO]::MAIN: #######################################################
[11:47:58] [INFO]::MAIN: ## ..::[TorrentToMedia.py]::.. ##
[11:47:58] [INFO]::MAIN: #######################################################
[11:47:58] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[11:47:58] [INFO]::MAIN: Searching /mnt/media/downloads/transmission/complete/movie for mediafiles to post-process ...
[11:47:58] [INFO]::MAIN: The /usr/local/share/nzbToMedia/TorrentToMedia.py script completed successfully.
root@sabnzbd_1:/ #


I see two issues: the warning about arguments, and the fact that it is specifically searching the complete/movie folder...

The files sitting in Transmission are in the tv folder, does something need to be modified in the script?

EDIT: I did a test download with a movie torrent, again the script did not launch on its own after download completed, but when i forced the script it processed correctly, renamed and moved the file, however did not remove the entry from transmission as i thought it was supposed to

Thanks again for your prompt replies and suggestions...
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
If you follow the blog post it has a line where you install python2 (which is a link to python2.7).
Code:
pkg upgrade && pkg install git python2 py27-sqlite3 unrar p7zip ffmpeg nginx


Maybe the line didn't run completely successfully when you did it?
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
If you follow the blog post it has a line where you install python2 (which is a link to python2.7).
Code:
pkg upgrade && pkg install git python2 py27-sqlite3 unrar p7zip ffmpeg nginx


Maybe the line didn't run completely successfully when you did it?

I do remember running that line, but maybe something went wrong.

It's installed now anyway. Any reason you can think of why the script is not triggering from transmission?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I do remember running that line, but maybe something went wrong.

It's installed now anyway. Any reason you can think of why the script is not triggering from transmission?
I bet you didn't install python2, just python and python2.7

can you try running the script directly to verify?
Code:
/usr/local/share/nzbToMedia/TorrentToMedia.py
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
I bet you didn't install python2, just python and python2.7

can you try running the script directly to verify?
Code:
/usr/local/share/nzbToMedia/TorrentToMedia.py

Apparently it is installed:

Code:
root@sabnzbd_1:/ # /usr/local/share/nzbToMedia/TorrentToMedia.py
[16:15:54] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[16:15:54] [INFO]::MAIN: Checking database structure...
[16:15:54] [INFO]::MAIN: Checking if git needs an update
[16:15:54] [INFO]::MAIN: No update needed
[16:15:54] [INFO]::MAIN: nzbToMedia Version:2d770510a284fadc6b44628626f5769789086dbb Branch:master (FreeBSD 10.3-STABLE)
[16:15:54] [INFO]::MAIN: #########################################################
[16:15:54] [INFO]::MAIN: ## ..::[TorrentToMedia.py]::.. ##
[16:15:54] [INFO]::MAIN: #########################################################
[16:15:54] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[16:15:54] [INFO]::MAIN: Searching /mnt/media/downloads/transmission/complete/movie for mediafiles to post-process ...
[16:15:54] [INFO]::MAIN: The /usr/local/share/nzbToMedia/TorrentToMedia.py script completed successfully.
root@sabnzbd_1:/ #


Any other suggestions?
 

joshmxpx

Dabbler
Joined
Apr 12, 2014
Messages
14
OK I have figured out why only the movie folder was being processed by the script, the sickbeard/sickrage section of autoprocess.cfg was set to enabled = 0

There are still 2 main issues I am trying to resolve, however:

  1. Why the script does not run on completion of a torrent
  2. Why the script does not remove the torrent from transmission after it does run (manually)
Any further advice would go a long way, I'm SO close!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hmm, I'm not sure why it woudn't run when it is specified to in transmission. I mentioned earlier to restart transmission and check the settings.json.
Sometimes what is on disk, isn't what transmission is running with but restarting it will force it to save it's current config to disk.

Ohh, and can you post your [Torrent] section which would have the relevant setting, "deleteOriginal"
 

cloud

Dabbler
Joined
Mar 2, 2014
Messages
10
I'm having a permissions issue that I'm uncertain how to resolve. I'm hoping you can point me in the right direction.

The issue is between transmission and Sickrage:
When transmission downloads a torrent which contains a folder the permission is set to 775 transmission:nobody
Sickrage attempted to process this folder but fails and generates [Processing failed: File is locked for reading/writing]
I can manually fix this by running a chown command of 'media:nobody *' but that gets tedious.

user Transmission 921 is in the group Media 816
and
user Media 816 is in group Transmission 921

How do I make Transmission assign the Media group to the downloaded folder?
Where do I make that config?

Thanks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@cloud
Also, I'm not exactly sure how transmission chooses what group to write files, possibly it respects the current group owner of the folder. In that case I recoomend you do the following...
Code:
chmod -R 921:816 /pah/to/media/folder


also see the opening post here which has some useful information.
https://forums.freenas.org/index.ph...plugins-write-permissions-to-your-data.27273/
Remember that if you want to use group permissions to be able to write files the user who needs access, needs to be in the matching group, in the jail.

tell me if you still have issues with solution 3, and show the output of 'ls -l /path/to/folder'
 
Status
Not open for further replies.
Top