Traceback Error, Mylar can't find completed downloads

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
tibbles
Posts: 4
Joined: Sat Jun 06, 2015 6:27 pm

Traceback Error, Mylar can't find completed downloads

Post by tibbles »

Hey, Evilhero, first off - you really are a hero. This is a brilliant, brilliant piece of software. It took some setting up, but I had it working great for a few months, and it's really a game changer for people trying to get into serially released comics.
Oddly enough, in the past week or so it's started to have a problem detecting completed downloads in the monitored folder. Trying to manuually post process via the manage screen isn't successful either. The error given in the gui log is below. As for the required info:

Mylar Version: master
-- source build 83dc652b96feb14356f7a2f48be93dc0de7db0c9.
Python Version : 2.7.8
On Freenas
Workflow: Managed comic downloads torrent from KAT directly into the watched folder, Transmission picks it up, successfully downloads files, places file in complete folder, Mylar fails to detect that a finished comic is in the completed folder. Going to manage -> Manually post process and scanning does not affect change. Checking the gui logs shows the traceback error below. I tried adding and removing a trailing / and it didn't seem to change either (saw suggested on the forum). I thought it might be related to a weird character in a name, because I had recently downloaded Wicked + Divine, but I deleted those files and repeated and the problem's still there. Any ideas?

I tried to check the mylar.log file (and this is going to sound incredibly lame) but couldn't figure out how to open it through the shell. Nano wasn't installed, and I'm still getting my bsd legs.
2015-06-06 11:15:08 ERROR Uncaught exception: Traceback (most recent call last):
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/logger.py", line 159, in new_run
old_run(*args, **kwargs)
File "/usr/pbi/mylar-amd64/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 275, in Process
watchmatch = filechecker.listFiles(self.nzb_folder,cs['ComicName'],cs['ComicPublisher'],cs['AlternateSearch'], manual=cs['WatchValues'])
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 76, in listFiles
dirlist = traverse_directories(basedir)
File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 1148, in traverse_directories
for (dirname, subs, files) in os.walk(dir):
File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 296, in walk
for x in walk(new_path, topdown, onerror, followlinks):
File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 286, in walk
if isdir(join(top, name)):
File "/usr/pbi/mylar-amd64/lib/python2.7/posixpath.py", line 80, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 1: ordinal not in range(128)
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Traceback Error, Mylar can't find completed downloads

Post by evilhero »

Well thanks for the kind words about the program. I only do this in my free time, and the last 2 weeks has been busy on a personal level so I haven't had as much time to dedicate to mylar (I've been working on stuff, just haven't pushed anything up to the branch).

I probably need to see mylar.log the file in order to figure out what series is causing the problem, or more likely what file is causing the problem. Just guessing but it looks like you have a filename with some weird Latin characters (ae) within the filename that is causing issues.

You can try to use pico instead of nano - it should be installed already.
tibbles
Posts: 4
Joined: Sat Jun 06, 2015 6:27 pm

Re: Traceback Error, Mylar can't find completed downloads

Post by tibbles »

Oh absolutely, the fact that you're doing this on your own time is part of what's so heroic about the whole endeavor! Thanks for your time, in case you don't get enough appreciations on here, seriously, thanks!
On to my log, was able to install nano, export the log and change the permissions. The relevant part is pasted below. I really appreciate your help. I've gone through and looked for files that might have an ae but I'm not coming up with anything. Just in case it was the Wicked + Divine I deleted that comic from my watch list too.
06-Jun-2015 14:19:35 - DEBUG :: FOLDERMONITOR : 'Traceback (most recent call last):\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/scheduler.py", line 78, in runAction\n self.action.run()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 1191, in run\n result = PostProcess.Process()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 275, in Process\n watchmatch = filechecker.listFiles(self.nzb_folder,cs[\'ComicName\'],cs[\'ComicPublisher\'],cs[\'AlternateSearch\'], manual=cs[\'WatchValues\'])\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 76, in listFiles\n dirlist = traverse_directories(basedir)\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 1148, in traverse_directories\n for (dirname, subs, files) in os.walk(dir):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 296, in walk\n for x in walk(new_path, topdown, onerror, followlinks):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 286, in walk\n if isdir(join(top, name)):\n File "/usr/pbi/mylar-amd64/lib/python2.7/posixpath.py", line 80, in join\n path += \'/\' + b\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe6 in position 1: ordinal not in range(128)\n'
06-Jun-2015 14:19:36 - DEBUG :: FOLDERMONITOR : Starting new thread: FOLDERMONITOR
06-Jun-2015 14:19:36 - INFO :: FOLDERMONITOR : delaying startup thread for 60 seconds to avoid locks.
06-Jun-2015 14:20:36 - INFO :: FOLDERMONITOR : [FOLDER-CHECK] Checking folder /USB/Torrents/Complete/ for newly snatched downloads
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] nzb name: Manual Run
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] nzb folder: /USB/Torrents/Complete/
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] Not using SABnzbd : Manual Run
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] Manual Run initiated
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [FILECHECKER] comic: Black Science
06-Jun-2015 14:20:36 - DEBUG :: FOLDERMONITOR : [FILECHECKER] Looking in: /USB/Torrents/Complete/
06-Jun-2015 14:20:37 - DEBUG :: FOLDERMONITOR : Exception generated in thread FOLDERMONITOR: 'ascii' codec can't decode byte 0xe6 in position 1: ordinal not in range(128)
06-Jun-2015 14:20:37 - DEBUG :: FOLDERMONITOR : 'Traceback (most recent call last):\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/scheduler.py", line 78, in runAction\n self.action.run()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 1191, in run\n result = PostProcess.Process()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 275, in Process\n watchmatch = filechecker.listFiles(self.nzb_folder,cs[\'ComicName\'],cs[\'ComicPublisher\'],cs[\'AlternateSearch\'], manual=cs[\'WatchValues\'])\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 76, in listFiles\n dirlist = traverse_directories(basedir)\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 1148, in traverse_directories\n for (dirname, subs, files) in os.walk(dir):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 296, in walk\n for x in walk(new_path, topdown, onerror, followlinks):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 286, in walk\n if isdir(join(top, name)):\n File "/usr/pbi/mylar-amd64/lib/python2.7/posixpath.py", line 80, in join\n path += \'/\' + b\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe6 in position 1: ordinal not in range(128)\n'
06-Jun-2015 14:20:38 - DEBUG :: FOLDERMONITOR : Starting new thread: FOLDERMONITOR
06-Jun-2015 14:20:38 - INFO :: FOLDERMONITOR : delaying startup thread for 60 seconds to avoid locks.
06-Jun-2015 14:21:38 - INFO :: FOLDERMONITOR : [FOLDER-CHECK] Checking folder /USB/Torrents/Complete/ for newly snatched downloads
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] nzb name: Manual Run
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] nzb folder: /USB/Torrents/Complete/
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] Not using SABnzbd : Manual Run
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [POST-PROCESSING] Manual Run initiated
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [FILECHECKER] comic: Black Science
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : [FILECHECKER] Looking in: /USB/Torrents/Complete/
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : Exception generated in thread FOLDERMONITOR: 'ascii' codec can't decode byte 0xe6 in position 1: ordinal not in range(128)
06-Jun-2015 14:21:38 - DEBUG :: FOLDERMONITOR : 'Traceback (most recent call last):\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/scheduler.py", line 78, in runAction\n self.action.run()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 1191, in run\n result = PostProcess.Process()\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/PostProcessor.py", line 275, in Process\n watchmatch = filechecker.listFiles(self.nzb_folder,cs[\'ComicName\'],cs[\'ComicPublisher\'],cs[\'AlternateSearch\'], manual=cs[\'WatchValues\'])\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 76, in listFiles\n dirlist = traverse_directories(basedir)\n File "/usr/pbi/mylar-amd64/share/mylar/mylar/mylar/filechecker.py", line 1148, in traverse_directories\n for (dirname, subs, files) in os.walk(dir):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 296, in walk\n for x in walk(new_path, topdown, onerror, followlinks):\n File "/usr/pbi/mylar-amd64/lib/python2.7/os.py", line 286, in walk\n if isdir(join(top, name)):\n File "/usr/pbi/mylar-amd64/lib/python2.7/posixpath.py", line 80, in join\n path += \'/\' + b\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe6 in position 1: ordinal not in range(128)\n'
06-Jun-2015 14:21:39 - DEBUG :: FOLDERMONITOR : Starting new thread: FOLDERMONITOR
06-Jun-2015 14:21:39 - INFO :: FOLDERMONITOR : delaying startup thread for 60 seconds to avoid locks.
tibbles
Posts: 4
Joined: Sat Jun 06, 2015 6:27 pm

Re: Traceback Error, Mylar can't find completed downloads

Post by tibbles »

Okay... I'm actually pretty sure I fixed it. I noticed I was having the same problem with Couchpotato, so I rechecked the permissions. They looked all right, but I figured I would go ahead and check "set recursively" again, just to be sure. Restarted the server and it's chugging away again! Thanks Evilhero.
To anyone else that stumbles on this thread, check the permissions again. I know you just checked them. Yes, I know you don't really understand what chmod does. Just check them again.
Cheers!
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Traceback Error, Mylar can't find completed downloads

Post by evilhero »

In all honesty, permissions probably account for a vast majority of the problems when it comes to these types of things (was going to be my next suggestion, but you beat me to it). You 'might' want to check your transmission client to make sure it's moving the files with the proper permissions into the Completed directory (just in case it happens again or repeatedly , that would probably be the item that's causing the wrong permissions to propagate).

Glad you got it working regardless - now go read you some comics !! :)
tibbles
Posts: 4
Joined: Sat Jun 06, 2015 6:27 pm

Re: Traceback Error, Mylar can't find completed downloads

Post by tibbles »

Ah, you're absolutely right. Transmission was setting permissions as 755 instead of 777. Many, many thanks! Keep up the great work!
Post Reply