SAB to Sickbeard post processing nightmare

Status
Not open for further replies.

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
ok, back in after a meal out, i have killed it to make sure it is a clean build...

i have just got to the

Jails > Configuration

  • Jail Root = /mnt/tank/jails
Jails > Add Jails

When i do this i get
The command /usr/local/bin/warden list -v failed: "Error: No jails found!
"

Should the /mnt/tank/jails be a ZFS dataset...?
Mac
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
the steps assume tank is your zpool

I think the jails dataset would be automatically created.
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
Well in that case it is not behaving.
I created the zpool and then added media folder but then when I tried to add the jails it fails with a massive error message.

I am photographing a wedding today so will try again later or tomorrow...
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
i have set the config for jails to
/mnt/tank/jails but when i then click on add jail i get

Code:
Request Method:     GET
Request URL:     http://192.168.2.10/admin/jails/jails/add/
Software Version:     FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
Exception Type:     warden_exception
Exception Value:    

The command /usr/local/bin/warden list  -v failed: "Error: No jails found!
"

Exception Location:     /usr/local/www/freenasUI/../freenasUI/common/warden.py in run, line 447
Server time:     Sun, 5 Oct 2014 10:09:20 +0100
Traceback

Environment:

Software Version: FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
Request Method: GET
Request URL: http://192.168.2.10/admin/jails/jails/add/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  107.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  158.         return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
  209.                 return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  99.                     response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  52.         response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
  144.             return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in add
  378.             mf = mf()
File "/usr/local/www/freenasUI/../freenasUI/jails/forms.py" in __init__
  150.         addrs = guess_addresses()
File "/usr/local/www/freenasUI/../freenasUI/jails/utils.py" in guess_addresses
  539.     ipv4_addr = guess_ipv4_address()
File "/usr/local/www/freenasUI/../freenasUI/jails/utils.py" in guess_ipv4_address
  433.             get_ipv4_exclude_dict()
File "/usr/local/www/freenasUI/../freenasUI/jails/utils.py" in get_ipv4_exclude_dict
  101.     jails = w.list()
File "/usr/local/www/freenasUI/../freenasUI/common/warden.py" in list
  1060.         return self.__call(warden_list(flags, **kwargs))
File "/usr/local/www/freenasUI/../freenasUI/common/warden.py" in __call
  1021.             tmp = obj.run()
File "/usr/local/www/freenasUI/../freenasUI/common/warden.py" in run
  447.             raise warden_exception(msg)


Exception Type: warden_exception at /admin/jails/jails/add/
Exception Value: The command /usr/local/bin/warden list  -v failed: "Error: No jails found!
"
 
Last edited:

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
ok getting there slowly,
All has gone well so far but when i get to
Code:
Config > Folders

  • Temporary Download Folder = /mnt/media/downloads/sabnzbd/incomplete
  • Completed Download Folder = /mnt/media/downloads/sabnzbd/complete
  • Permissions for completed downloads = 777
  • Post-Processing Scripts Folder = /usr/local/share/nzbToMedia
[\code] When i click save the completed folder goes back to Downloads/complete. Why will it not let me change it..?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ok getting there slowly,
All has gone well so far but when i get to
Code:
Config > Folders

  • Temporary Download Folder = /mnt/media/downloads/sabnzbd/incomplete
  • Completed Download Folder = /mnt/media/downloads/sabnzbd/complete
  • Permissions for completed downloads = 777
  • Post-Processing Scripts Folder = /usr/local/share/nzbToMedia
[\code] When i click save the completed folder goes back to Downloads/complete. Why will it not let me change it..?
it should let you, I think it's a bug that others have complained about at well. I'll look into it, but I've never experienced it myself.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
some things I think might cause it
1) folder doesn't exist
2) permissions of the folder
3) currently downloading

1/2 arent an issue if you follow my guide
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
This appears that one of the scripts did not run.
Code:
drwxr-xr-x  4 root  wheel  4 Oct  5 12:45 complete
drwxr-xr-x  2 media  media  2 Oct  5 12:45 incomplete
Then
drwxr-xr-x  2 media  media  2 Oct  5 12:45 movie
drwxr-xr-x  2 media  media  2 Oct  5 12:45 tv


should i rerun it or just fix the problem complete folder...?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ahh, I modified the code a bit which caused this. thanks, I'll fix it.

for you just run the following in the jail
Code:
chown -R media:media /mnt/media
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
Great that works.

I then get this in SickRage, i am configuring the PostProcessing section and

Error(s) Saving Configuration
You tried saving an invalid sports naming config, not saving your sports settings

I have not touched the settings for episodes yet.
(Probably a SickRage problem.)


EDIT.
I just changed it from custom to one of the presets and it save it.fine.
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
i dont believe it.
I have got to the end of the guide everything perfect.

Gone to sick rage to add a show, and now i do anything with the page, it just sits there connecting.
What error logs can i look at.

I did take a ZFS snapshot before i added the show to sickbeard, if that will help to quickly roll back.

ARSE...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i dont believe it.
I have got to the end of the guide everything perfect.

Gone to sick rage to add a show, and now i do anything with the page, it just sits there connecting.
What error logs can i look at.

I did take a ZFS snapshot before i added the show to sickbeard, if that will help to quickly roll back.

ARSE...
there's should be logs in the webui, or if you're locked out /usr/pbi/sickbeard-amd64/etc/sickbeard

man your system hates you. so you can't add a show?
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
lol, i am tempted to update the system with a hammer.....

I have emailed you the log because it was crashing the site trying to upload segments of it.

Thanks again for your continued efforts at suicide watch and marriage guidance...
Mac
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
if you look at the end of the log sickrage can't connect to github.

can you ping 8.8.8.8, Google.com from the jail? sounds like network issues, nothing you did during setup but with something with your home network. everything works perfectly in any pfsense/ddwrt network I've used.
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
I can ssh into the box and it pings fine, i can download in couchpotato as well.

Just sickbeard, but it is not failing it just says connecting, if i leave it overnight it will probably be connected in the morning but will then start working again for 30 seconds then will die again.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I can ssh into the box and it pings fine, i can download in couchpotato as well.

Just sickbeard, but it is not failing it just says connecting, if i leave it overnight it will probably be connected in the morning but will then start working again for 30 seconds then will die again.
you've gone through the steps enough that I think you're an expert and that's not the issue, lol. might be something sickrage forums can help with.
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
At least i am not doing something totally stupid.

I have asked on the sickrage forums, fingers crossed they can help.

Thanks
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
They have not answered...

But as predicted, i can now get back into sickrage and once again it works like a dream, nice and responsive and i can search big bang theory and pick an episode to download manually to test it.

it passes it to SABNZBD and that then runs but i get
Code:
Traceback (most recent call last):
File "/usr/local/share/nzbToMedia/nzbToSickBeard.py", line 252, in <module>
import nzbToMedia
File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 491, in <module>
import nzbtomedia
File "/usr/local/share/nzbToMedia/nzbtomedia/__init__.py", line 28, in <module>
from nzbtomedia.autoProcess.autoProcessComics import autoProcessComics
File "/usr/local/share/nzbToMedia/nzbtomedia/autoProcess/autoProcessComics.py", line 6, in <module>
from nzbtomedia.nzbToMediaUtil import convert_to_ascii, remoteDir, server_responding
File "/usr/local/share/nzbToMedia/nzbtomedia/nzbToMediaUtil.py", line 12, in <module>
import beets
File "/usr/local/share/nzbToMedia/libs/beets/__init__.py", line 21, in <module>
import beets.library
File "/usr/local/share/nzbToMedia/libs/beets/library.py", line 30, in <module>
from beets import dbcore
File "/usr/local/share/nzbToMedia/libs/beets/dbcore/__init__.py", line 18, in <module>
from .db import Model, Database
File "/usr/local/share/nzbToMedia/libs/beets/dbcore/db.py", line 21, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: Shared object "libsqlite3.so.0" not found, required by "_sqlite3.so"


Do i need to run the package update or install for sqllite3 again..?

I want to add another show but i don't want to get locked out for another 10 hours....
 

crashtestmac

Explorer
Joined
Oct 3, 2014
Messages
52
I found a post with this command in

pkg install sqlite3

So i ran that, then i got this...
SickBeard: Successfully post-processed The.Big.Bang.Theory.S08E02.HDTV.x264-LOL.nzb! (More)

Wooooooohhhooooooooooooo
Code:
[08:12:10] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[08:12:10] [INFO]::MAIN: Checking database structure...
[08:12:10] [INFO]::MAIN: Database upgrade required: Initial Schema
[08:12:10] [INFO]::MAIN: Checking if git needs an update
[08:12:11] [INFO]::MAIN: No update needed
[08:12:11] [INFO]::MAIN: nzbToMedia Version:d904aafb99938455e3fed45d70d392eb021f1da8 Branch:master (FreeBSD 9.2-RELEASE-p10)
[08:12:11] [WARNING]::MAIN: Failed to locate ffmpeg, transcoding disabled!
[08:12:11] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[08:12:11] [WARNING]::MAIN: Failed to locate ffprobe, video corruption detection disabled!
[08:12:11] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[08:12:11] [INFO]::MAIN: #########################################################
[08:12:11] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[08:12:11] [INFO]::MAIN: #########################################################
[08:12:11] [INFO]::MAIN: Script triggered from SABnzbd
[08:12:11] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[08:12:11] [INFO]::MAIN: Calling SickBeard:tv to post-process:The.Big.Bang.Theory.S08E02.HDTV.x264-LOL.nzb
[08:12:11] [INFO]::MAIN: Attempting to auto-detect tv fork
[08:12:11] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ...
[08:12:11] [INFO]::MAIN: SickBeard:tv fork set to sickrage
[08:12:11] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:11] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:11] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[08:12:12] [POSTPROCESS]::SICKBEARD: Processing folder /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:12] [POSTPROCESS]::SICKBEARD: TV_DOWNLOAD_DIR:
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing Path: /mnt/media/downloads/sabnzbd/complete/tv
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing Dirs: [u'The.Big.Bang.Theory.S08E02.HDTV.x264-LOL']
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing Files: []
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing VideoFiles: []
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing RarContent: []
[08:12:12] [POSTPROCESS]::SICKBEARD: PostProcessing VideoInRar: []
[08:12:12] [POSTPROCESS]::SICKBEARD: Processing folder The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:12] [POSTPROCESS]::SICKBEARD: Processing /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL/the.big.bang.theory.802.hdtv-lol.mp4 (The.Big.Bang.Theory.S08E02.HDTV.x264-LOL.nzb)
[08:12:12] [POSTPROCESS]::SICKBEARD: Found result in history: (<sickbeard.tv.TVShow object at 0x80a9bf6d0>, 8, [], 1, -1)
[08:12:12] [POSTPROCESS]::SICKBEARD: Retrieving episode object for 8x2
[08:12:12] [POSTPROCESS]::SICKBEARD: Snatch history had a quality in it, using that: SD TV
[08:12:12] [POSTPROCESS]::SICKBEARD: SB snatched this episode so I'm marking it as priority
[08:12:12] [POSTPROCESS]::SICKBEARD: Is ep a priority download: True
[08:12:12] [POSTPROCESS]::SICKBEARD: Snatch history had a version in it, using that: v-1
[08:12:12] [POSTPROCESS]::SICKBEARD: There is no existing file so there's no worries about replacing it
[08:12:12] [POSTPROCESS]::SICKBEARD: This download is marked a priority download so I'm going to replace an existing file if I find one
[08:12:12] [POSTPROCESS]::SICKBEARD: Found release name The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:12] [POSTPROCESS]::SICKBEARD: Destination folder for this episode: /mnt/media/videos/tvshows/The Big Bang Theory/Season 08
[08:12:12] [POSTPROCESS]::SICKBEARD: Moving file from /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL/the.big.bang.theory.802.hdtv-lol.mp4 to /mnt/media/videos/tvshows/The Big Bang Theory/Season 08/The Big Bang Theory - S08E02 - The Junior Professor Solution.mp4
[08:12:12] [POSTPROCESS]::SICKBEARD: Processing succeeded for /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL/the.big.bang.theory.802.hdtv-lol.mp4
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleting file the.big.bang.theory.802.hdtv-lol.sample.mp4
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleting file 209677.srr
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleting file 209677-Sample.vol00+1.par2
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleting file the.big.bang.theory.802.hdtv-lol.sfv
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleting file the.big.bang.theory.802.hdtv-lol.nfo
[08:12:12] [POSTPROCESS]::SICKBEARD: Deleted folder: /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL
[08:12:12] [POSTPROCESS]::SICKBEARD: Successfully processed
[08:12:12] [INFO]::CLEANDIR: Directory /mnt/media/downloads/sabnzbd/complete/tv/The.Big.Bang.Theory.S08E02.HDTV.x264-LOL has been processed and removed ...
[08:12:12] [INFO]::MAIN: The /usr/local/share/nzbToMedia/nzbToSickBeard.py script completed successfully.
SickBeard: Successfully post-processed The.Big.Bang.Theory.S08E02.HDTV.x264-LOL.nzb!



Now to get crazy and add another show....
 
Status
Not open for further replies.
Top