Page 1 of 2

SAB not sorting after download.

Posted: Mon Jun 09, 2014 12:48 pm
by bostoneric
Started getting the following once the download was complete and SAB unpacked the file.


[19:37:00] [INFO]::MAIN: Loading config from [/volume1/Download/nzbToMedia/autoProcessMedia.cfg]
[19:37:00] [INFO]::MAIN: Checking database structure...
[19:37:00] [INFO]::MAIN: Checking if git needs an update
[19:37:00] [INFO]::MAIN: No update needed
[19:37:00] [INFO]::MAIN: nzbToMedia Version:9eeff323ac6b956700812d75f0745be21e51d366 Branch:master (Linux 3.7.9)
[19:37:00] [WARNING]::MAIN: Failed to locate ffmpeg, transcoding disabled!
[19:37:00] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[19:37:00] [WARNING]::MAIN: Failed to locate ffprobe, video corruption detection disabled!
[19:37:01] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[19:37:01] [INFO]::MAIN: #########################################################
[19:37:01] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[19:37:01] [INFO]::MAIN: #########################################################
[19:37:01] [INFO]::MAIN: Script triggered from SABnzbd
[19:37:01] [ERROR]::MAIN: Unable to locate a section with subsection:tv enabled in your autoProcessMedia.cfg, exiting!
[19:37:01] [ERROR]::MAIN: A problem was reported in the /volume1/Download/nzbToMedia/nzbToSickBeard.py script

Re: SAB not sorting after download.

Posted: Mon Jun 09, 2014 7:40 pm
by clinton.hall
if you don't want to use nzbToMedia, then remove this from your postprocess/category options. if you do want to use it, configure your autoProcessMedia.cfg...

edit /volume1/Download/nzbToMedia/autoProcessMedia.cfg

use this guide
https://github.com/clinton-hall/nzbToMe ... sMedia.cfg

Re: SAB not sorting after download.

Posted: Mon Jun 09, 2014 11:50 pm
by bostoneric
any reason why this would suddenly change? I've been using it all along successfully with no issues till recently.

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 6:29 am
by clinton.hall
Ok, so you have been using nzbToMedia?

There were some recent changes to these scripts which should have updated successfully, but sometimes the update goes funny.

I would

Code: Select all

cd /volume1/Downloads/nzbToMedia
OL/start-stop.sh stop
find . -type f -name "*.pyc" -exec rm -f {} \;
git reset --hard
git pull
Then try running again to see if it works.
If not review the autoProcessMedia.cfg as there are new options etc.

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 10:58 am
by bostoneric
ok here's the output. still getting the same as above.

guess I need to check whats in the nzbToSickBeard.py

Code: Select all

admin@Boston1:~ $ cd /volume1/Download/nzbToMedia
admin@Boston1:/volume1/Download/nzbToMedia $ OL/start-stop.sh stop
-sh: OL/start-stop.sh: not found
admin@Boston1:/volume1/Download/nzbToMedia $ find . -type f -name "*.pyc" -exec 
rm -f {} \;
admin@Boston1:/volume1/Download/nzbToMedia $ git reset --hard
HEAD is now at 9eeff32 leave comic book archives alone. #351 #421
admin@Boston1:/volume1/Download/nzbToMedia $ git pull
Already up-to-date.
admin@Boston1:/volume1/Download/nzbToMedia $ 

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 11:10 am
by bostoneric
ok checked out the autoProcessMedia.cfg and noticed the username/pass field was empty.

Code: Select all

SickBeard]
    #### autoProcessing for TV Series
    #### tv - category that gets called for post-processing with SB
    [[tv]]
        enabled = 0
        host = localhost
        port = 8081
        username = “”	
        password = “”

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 12:00 pm
by bostoneric
ok here is the latest after adding the username/pass

Code: Select all

          Traceback (most recent call last):
  File "/volume1/Download/nzbToMedia/nzbToSickBeard.py", line 155, in <module>
    result = nzbToMedia.main(sys.argv, section)
  File "/volume1/Download/nzbToMedia/nzbToMedia.py", line 445, in main
    nzbtomedia.initialize(section)
  File "/volume1/Download/nzbToMedia/nzbtomedia/__init__.py", line 203, in initialize
    if not config.migrate():
  File "/volume1/Download/nzbToMedia/nzbtomedia/nzbToMediaConfig.py", line 223, in migrate
    CFG_OLD.write()
  File "/volume1/Download/nzbToMedia/libs/configobj/configobj.py", line 2123, in write
    'ascii'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 2036: ordinal not in range(128)

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 7:00 pm
by clinton.hall
can you show the output of

Code: Select all

cd /volume1/Download/nzbToMedia
ls -l

Re: SAB not sorting after download.

Posted: Tue Jun 10, 2014 7:03 pm
by clinton.hall
ahh...

do any of the usernames or passwords in the autoProcessMedia.cfg file have non-ascii characters? maybe accents over the vowels etc?

Re: SAB not sorting after download.

Posted: Thu Jun 12, 2014 10:38 am
by bostoneric
clinton.hall wrote:can you show the output of

Code: Select all

cd /volume1/Download/nzbToMedia
ls -l

Code: Select all

/volume1/Download/nzbToMedia $ ls -l
total 676
-rwxr-xr-x    1 admin    administ      4623 Jun  9 19:54 DeleteSamples.py*
-rw-r--r--    1 admin    administ      4274 Jun  9 19:54 README.md
-rwxr-xr-x    1 admin    administ      3179 Jun  9 19:54 ResetDateTime.py*
-rwxr-xr-x    1 admin    administ     18539 Jun  9 19:54 TorrentToMedia.py*
drwxr-xr-x    2 admin    administ      4096 Jun  9 19:20 autoProcess/
-rwxrw-rw-    1 admin    administ     12098 Jun  9 20:09 autoProcessMedia.cfg*
-rw-r--r--    1 admin    administ         0 Jun 10 20:39 autoProcessMedia.cfg.old
-rw-r--r--    1 admin    administ     11830 Jun  9 19:54 autoProcessMedia.cfg.spec
-rw-r--r--    1 admin    administ     16004 Jun  9 19:54 changelog.txt
-rwxr-xr-x    1 admin    administ       504 Jun  9 19:54 getffmpeg.sh*
drwxr-xr-x    9 admin    administ      4096 Jun  9 20:28 libs/
-rw-r--r--    1 admin    administ     35127 Jun  9 19:54 license.txt
drwxr-xr-x    2 admin    administ      4096 Jun  9 19:20 linktastic/
drwx------    2 admin    administ      4096 Jun  3 21:56 logs/
-rwxr-xr-x    1 admin    administ      3729 Jun  9 19:54 nzbToCouchPotato.py*
-rwxr-xr-x    1 admin    administ      2025 Jun  9 19:54 nzbToGamez.py*
-rwxr-xr-x    1 admin    administ      2437 Jun  9 19:54 nzbToHeadPhones.py*
-rwxr-xr-x    1 admin    administ     19250 Jun  9 19:54 nzbToMedia.py*
-rw-------    1 admin    administ      7756 Jun  9 20:28 nzbToMedia.pyc
-rwxr-xr-x    1 admin    administ      2393 Jun  9 19:54 nzbToMylar.py*
-rwxr-xr-x    1 admin    administ      3358 Jun  9 19:54 nzbToNzbDrone.py*
-rwxr-xr-x    1 admin    administ      3848 Jun  9 19:54 nzbToSickBeard.py*
drwxr-xr-x   10 admin    administ      4096 Jun  9 20:28 nzbtomedia/
-rw-------    1 admin    administ      4096 Jun  9 19:52 nzbtomedia.db
-rw-------    1 admin    administ    481597 Jun  2 20:42 postprocess.log
drwxr-xr-x    2 admin    administ      4096 Jun  9 19:54 tests/