evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
976 stars 172 forks source link

cannot recreate pull-list #791

Closed hermy65 closed 9 years ago

hermy65 commented 10 years ago

When i attempt to recreate my pull-list i get the following error

2014-08-12 18:40:08 ERROR Uncaught exception: Traceback (most recent call last): File "/usr/local/mylar/mylar/logger.py", line 141, in new_run old_run(_args, _kwargs) File "/usr/lib/python2.6/threading.py", line 484, in run self.__target(_self.__args, _self.__kwargs) File "/usr/local/mylar/mylar/weeklypull.py", line 167, in pullit pullitcheck() File "/usr/local/mylar/mylar/weeklypull.py", line 735, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/usr/local/mylar/mylar/updater.py", line 267, in upcoming_update else: mylar.importer.updateissuedata(ComicID, ComicName, calledfrom='weeklycheck')#mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/usr/local/mylar/mylar/importer.py", line 1052, in updateissuedata comic = cv.getComic(comicid,'comic') File "/usr/local/mylar/mylar/cv.py", line 110, in getComic return GetComicInfo(comicid,dom) File "/usr/local/mylar/mylar/cv.py", line 170, in GetComicInfo comic['ComicURL'] = dom.getElementsByTagName('site_detail_url')[trackcnt].firstChild.wholeText IndexError: list index out of range

evilhero commented 10 years ago

Looks like that's possibly an api error - are you using your own comicvine api key?

hermy65 commented 10 years ago

Yep, even created a new account to get a new key just in case somethign was messed up.

hermy65 commented 10 years ago

Tried it again, not sure if this is a different error or not but here is what im getting

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last): File "/usr/local/mylar/cherrypy/_cprequest.py", line 645, in respond response.body = self.handler() File "/usr/local/mylar/cherrypy/lib/encoding.py", line 188, in call self.body = self.oldhandler(_args, _kwargs) File "/usr/local/mylar/cherrypy/_cpdispatch.py", line 29, in call return self.callable(_self.args, _self.kwargs) File "/usr/local/mylar/mylar/webserve.py", line 1121, in pullrecreate weeklypull.pullit(forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 394, in pullit pullitcheck(forcecheck=forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 735, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/usr/local/mylar/mylar/updater.py", line 267, in upcoming_update else: mylar.importer.updateissuedata(ComicID, ComicName, calledfrom='weeklycheck')#mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/usr/local/mylar/mylar/importer.py", line 1052, in updateissuedata comic = cv.getComic(comicid,'comic') File "/usr/local/mylar/mylar/cv.py", line 110, in getComic return GetComicInfo(comicid,dom) File "/usr/local/mylar/mylar/cv.py", line 170, in GetComicInfo comic['ComicURL'] = dom.getElementsByTagName('site_detail_url')[trackcnt].firstChild.wholeText IndexError: list index out of range

evilhero commented 10 years ago

Well it looks like it's trying to update a series on your watchlist, but it can't pull down the right information for some reason. You'll have to check your mylar.log file in order to see what the series is and flip the information back here.. It might be something related to the series or to your installation, but need to figure out which is which.

Have you restarted Mylar since the initial or subsequent error? And which build are you on (master or development)

hermy65 commented 10 years ago

I have rebooted multiple times. This has been running fine for like 3 months or so. This is what happens directly after a reboot

2014-08-13 08:21:11 ERROR Uncaught exception: Traceback (most recent call last): File "/usr/local/mylar/mylar/logger.py", line 141, in new_run old_run(_args, _kwargs) File "/usr/lib/python2.6/threading.py", line 484, in run self.__target(_self.__args, _self.__kwargs) File "/usr/local/mylar/mylar/weeklypull.py", line 394, in pullit pullitcheck(forcecheck=forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 735, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/usr/local/mylar/mylar/updater.py", line 267, in upcoming_update else: mylar.importer.updateissuedata(ComicID, ComicName, calledfrom='weeklycheck')#mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/usr/local/mylar/mylar/importer.py", line 1052, in updateissuedata comic = cv.getComic(comicid,'comic') File "/usr/local/mylar/mylar/cv.py", line 110, in getComic return GetComicInfo(comicid,dom) File "/usr/local/mylar/mylar/cv.py", line 170, in GetComicInfo comic['ComicURL'] = dom.getElementsByTagName('site_detail_url')[trackcnt].firstChild.wholeText IndexError: list index out of range 2014-08-13 08:21:09 INFO [ComicVine API] Comicvine API count now at : 0 / 400 in 5.37 minutes. 2014-08-13 08:21:08 INFO Checking the Weekly Releases list for comics I'm watching... 2014-08-13 08:21:08 INFO Weekly Pull List successfully loaded. 2014-08-13 08:20:49 INFO Populating the NEW Weekly Pull list into Mylar. 2014-08-13 08:20:49 INFO Preparing to update to the new listing. 2014-08-13 08:20:48 INFO Weekly pull list present - checking if it's up-to-date..

And this is on a manual recreate pull-list after a reboot

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last): File "/usr/local/mylar/cherrypy/_cprequest.py", line 645, in respond response.body = self.handler() File "/usr/local/mylar/cherrypy/lib/encoding.py", line 188, in call self.body = self.oldhandler(_args, _kwargs) File "/usr/local/mylar/cherrypy/_cpdispatch.py", line 29, in call return self.callable(_self.args, _self.kwargs) File "/usr/local/mylar/mylar/webserve.py", line 1121, in pullrecreate weeklypull.pullit(forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 394, in pullit pullitcheck(forcecheck=forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 735, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/usr/local/mylar/mylar/updater.py", line 267, in upcoming_update else: mylar.importer.updateissuedata(ComicID, ComicName, calledfrom='weeklycheck')#mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/usr/local/mylar/mylar/importer.py", line 1052, in updateissuedata comic = cv.getComic(comicid,'comic') File "/usr/local/mylar/mylar/cv.py", line 110, in getComic return GetComicInfo(comicid,dom) File "/usr/local/mylar/mylar/cv.py", line 170, in GetComicInfo comic['ComicURL'] = dom.getElementsByTagName('site_detail_url')[trackcnt].firstChild.wholeText IndexError: list index out of range

evilhero commented 10 years ago

Will need the mylar.log file showing before the error. It's something to do with a series on your watchlist I think.

hermy65 commented 10 years ago

should i be emailing this to you? i cant attach a log file it says

evilhero commented 10 years ago

You can email the log file to : evilhero@mylarcomics.com

hermy65 commented 10 years ago

sent

evilhero commented 10 years ago

Got it, but believe it or not the error wasn't logged in that file. You'll have to do a manual pullist refresh and then shutdown Mylar right after and then resend that log. Sorry, should have mentioned it might be in one of the additional log files.

hermy65 commented 10 years ago

ok, sent again

evilhero commented 10 years ago

Ok, so I had some time to browse through some of the logs, and it looks like it's something to do with either your Red Sonja series or your Zombillenium series. During a weekly pull, it tries to update the Red Sonja series to ensure that the series is up-to-date with regards to issue data, but it's failing because it's passing an incorrect ComicID (it's not even a volume, it's a writer for the Zombillenium series). It also looks like it's trying to find 3 versions of Zombillenium for some reason - how many times do you have the series added ?

So it has something to do with either of those - I would try to delete the Zombillenium series, and see if the manual pull-list recreate works without any errors. If it does, then try readding back in Zombillenium (I added both series fresh this a.m, without any errors). If it still errors, delete Red Sonja and try the pull-list recreate again.

You should get on the development branch as well, it has a load of fixes and your issue could very well have been addressed in that branch but hasn't been pushed up to Master yet.

hermy65 commented 10 years ago

I moved over to development and removed the two series in question. I believe it was Red Sonja that was causing the issues

evilhero commented 10 years ago

You should be able to add back in Red Sonja, I added it in and it didn't have any problems. Not sure exactly about the other series, but there was some bad linking to it from what I can guess.