Uncaught exception with torrents

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
narbeleg
Posts: 3
Joined: Wed May 27, 2015 8:46 pm

Uncaught exception with torrents

Post by narbeleg »

Hi!

First of all, thank a lot for your efforts regarding Mylar. I stumbled upon it today while searching for some packages for my new Synology NAS (which has been somewhat of a disappointment).
At first I was stuck on "retrieving comic info" but I found out that I had entered the download directory wrong. With that fixed, I now get an Uncaught exception error when mylar tries to add the .torrent file to my listening folder.
Details:
  • Mylar build 83dc652b96feb14356f7a2f48be93dc0de7db0c9
  • Synology NAS with Python 2.7.9-13
  • No files added when downloading (Uncaught exception)
  • Downloading with torrents only
  • No errors on the browser, only on the log

Code: Select all

2015-05-27 21:42:48	ERROR	Uncaught exception: Traceback (most recent call last):
File "/volume1/@appstore/mylar/share/mylar/mylar/logger.py", line 159, in new_run
old_run(*args, **kwargs)
File "/usr/local/python/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 1446, in searchforissue
foundNZB, prov = search_init(comic['ComicName'], result['Issue_Number'], str(ComicYear), comic['ComicYear'], Publisher, IssueDate, StoreDate, result['IssueID'], AlternateSearch, UseFuzzy, ComicVersion, SARC=None, IssueArcID=None, mode=mode, rsscheck=rsscheck, ComicID=result['ComicID'], filesafe=comic['ComicName_Filesafe'])
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 230, in search_init
findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDate, StoreDate, searchprov, prov_count, IssDateFix, IssueID, UseFuzzy, newznab_host, ComicVersion=ComicVersion, SARC=SARC, IssueArcID=IssueArcID, ComicID=ComicID, issuetitle=issuetitle, unaltered_ComicName=unaltered_ComicName)
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 1323, in NZB_SEARCH
searchresult = searcher(nzbprov, nzbname, comicinfo, entry['link'], IssueID, ComicID, tmpprov, newznab=newznab_host)
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 1875, in searcher
rcheck = rsscheck.torsend2client(ComicName, IssueNumber, comyear, link, nzbprov)
File "/volume1/@appstore/mylar/share/mylar/mylar/rsscheck.py", line 793, in torsend2client
with open(filepath, 'wb') as f:
IOError: [Errno 2] No such file or directory: u'volume1/downloads/torrents/Iron_Fist_The_Living_Weapon_1_2014.torrent'
2015-05-27 21:42:47	INFO	matched on Iron Fist: The Living Weapon
2015-05-27 21:42:47	INFO	Found Iron Fist: The Living Weapon (2014) issue: 1 using KAT
2015-05-27 21:42:47	INFO	[KAT] there were 0 results..
2015-05-27 21:42:46	INFO	[KAT] there were 1 results..
2015-05-27 21:42:45	INFO	Shhh be very quiet...I'm looking for Iron Fist: The Living Weapon issue: 1 (2014) using KAT
2015-05-27 21:42:45	INFO	Finished searching via :rss. Issue not found - status kept as Wanted.
2015-05-27 21:42:45	INFO	Could not find Issue 1 of Iron Fist: The Living Weapon(2014) using experimental
2015-05-27 21:42:45	INFO	Shhh be very quiet...I'm looking for Iron Fist The Living Weapon issue: 1 (2014) using experimental [RSS]
2015-05-27 21:42:45	INFO	Alternate Search pattern detected...re-adjusting to : Iron Fist The Living Weapon 2014
2015-05-27 21:42:44	INFO	Shhh be very quiet...I'm looking for Iron Fist: The Living Weapon issue: 1 (2014) using experimental [RSS]
2015-05-27 21:42:44	INFO	Could not find Issue 1 of Iron Fist: The Living Weapon(2014) using KAT
2015-05-27 21:42:44	INFO	Shhh be very quiet...I'm looking for Iron Fist The Living Weapon issue: 1 (2014) using KAT [RSS]
2015-05-27 21:42:44	INFO	Alternate Search pattern detected...re-adjusting to : Iron Fist The Living Weapon 2014
2015-05-27 21:42:44	INFO	Shhh be very quiet...I'm looking for Iron Fist: The Living Weapon issue: 1 (2014) using KAT [RSS]
2015-05-27 21:42:44	INFO	search provider order is ['kat', 'Experimental']
2015-05-27 21:42:44	INFO	Issue Title given as : rage: part one
2015-05-27 21:42:44	INFO	[SEARCH] Special Characters exist within Series Title. Enabling search-safe Name : Iron Fist The Living Weapon
and yes, directory volume1/downloads/torrents/ exists and users have full permissions.

Thanks a lot for your time
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Uncaught exception with torrents

Post by evilhero »

I believe you might have to put the path as /volume1/downloads/torrents/ (or /volume1/downloads/torrents - I can't remember if the trailing slash is a requirement), as the leading slash denoted starting at the top-most directory level, without the leading slash, mylar will look for the path within the mylar directory).

It could be permissions issue as well, a lot of users have been having problems with the synopackage release and almost every one has had permissions problems (user was in group but wouldn't work). They all ended up installing git and then using git to install mylar (as it was intended) and everything worked - which might very well be the case with your situation.
narbeleg
Posts: 3
Joined: Wed May 27, 2015 8:46 pm

Re: Uncaught exception with torrents

Post by narbeleg »

I think you're right. Adding the leading slash does give a different exception, in this case Permission denied. I'll uninstall and install through GIT to see if it's solved.

Thanks for your help!
narbeleg
Posts: 3
Joined: Wed May 27, 2015 8:46 pm

Re: Uncaught exception with torrents

Post by narbeleg »

It's working fine now! :D
Post Reply