Unable to add comics, just stuck on searching.

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Unable to add comics, just stuck on searching.

Post by Warborg »

This week I find I'm unable to add any comics, I'll hit add and then when I go into the comic listing it's stuck on (Comic information is currently being loaded) and will just endlessly cycle that screen. It was also having difficulty importing from my imports folder, had to copy them into the respective folders and then I could go into the comics in Mylar and refresh files and it would find them.

Version: 0c9ed00a13d37a9d83db49b7cc1669f26d5ec80c (development)
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: Unable to add comics, just stuck on searching.

Post by barbequesauce »

Hi - I assume this is an existing and previously working installation?

What os is this on? What branch and commit? Can you post some debug logs please?

Can’t recreate it, so we need to dig into what’s happening on your install...
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

Ok, well I just updated Mylar and tried to add the new Superior Spider-Man again, same thing is happening. I did actually post my version number in the initial post, but I'll give all specs below. Here is a clip from the debug log when I try to add it:

2019-01-01 03:02:40 WARNING Connection error trying to retrieve data from newznab: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
2019-01-01 03:02:21 ERROR Uncaught exception: Traceback (most recent call last):
File "C:\Mylar\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar\importer.py", line 218, in addComictoDB
comlocation = dothedew.folder_create()
File "C:\Mylar\mylar\filers.py", line 130, in folder_create
comlocation = re.sub('/', '\\', comlocation)
File "C:\Python27\lib\re.py", line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "C:\Python27\lib\re.py", line 286, in _subx
template = _compile_repl(template, pattern)
File "C:\Python27\lib\re.py", line 273, in _compile_repl
raise error, v # invalid expression
error: bogus escape (end of line)
2019-01-01 03:02:21 INFO Updated version to :v2
2019-01-01 03:02:21 INFO Previous version detected as None - seeing if update required
2019-01-01 03:02:21 INFO Sucessfully retrieved details for Superior Spider-Man
2019-01-01 03:02:21 INFO Now adding/updating: Superior Spider-Man


Running on Windows Home Server 2011, has been running properly for a very long time up until last week. Stats:

Mylar Version: development
-- git build 9579a39c36d0165c74b95b44063d3692eb04943a.
Python Version : 2.7.11
Language : en_US.cp1252
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

Also, if I try to delete the comic while it's trying to download the data I'll get this:

500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "C:\Mylar\cherrypy\_cprequest.py", line 645, in respond
response.body = self.handler()
File "C:\Mylar\cherrypy\lib\encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "C:\Mylar\cherrypy\_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "C:\Mylar\mylar\webserve.py", line 934, in deleteSeries
if os.path.exists(seriesdir):
File "C:\Python27\lib\genericpath.py", line 26, in exists
os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

And just to make sure, I tried to add the new X-Force as well to get the debug from it, got this:

2019-01-01 03:20:56 WARNING Connection error trying to retrieve data from newznab: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
2019-01-01 03:20:50 ERROR Uncaught exception: Traceback (most recent call last):
File "C:\Mylar\mylar\logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "C:\Python27\lib\threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Mylar\mylar\importer.py", line 218, in addComictoDB
comlocation = dothedew.folder_create()
File "C:\Mylar\mylar\filers.py", line 130, in folder_create
comlocation = re.sub('/', '\\', comlocation)
File "C:\Python27\lib\re.py", line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "C:\Python27\lib\re.py", line 286, in _subx
template = _compile_repl(template, pattern)
File "C:\Python27\lib\re.py", line 273, in _compile_repl
raise error, v # invalid expression
error: bogus escape (end of line)
2019-01-01 03:20:50 INFO Updated version to :v5
2019-01-01 03:20:50 INFO Previous version detected as None - seeing if update required
2019-01-01 03:20:50 INFO Sucessfully retrieved details for X-Force
2019-01-01 03:20:50 INFO Now adding/updating: X-Force
2019-01-01 03:20:50 DEBUG Volume information found! Adding to series record : volume 5
2019-01-01 03:20:50 DEBUG volume X format - 0: Volume 5.
2019-01-01 03:20:50 DEBUG vari is set to: no
2019-01-01 03:20:50 DEBUG number of issues CV says it has: 1
2019-01-01 03:20:50 DEBUG number of issues I counted: 1
2019-01-01 03:20:48 INFO Attempting to add directly by ComicVineID: 116161
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Unable to add comics, just stuck on searching.

Post by evilhero »

2 different things from the logs:

- something is wrong in your Folder Format field (last tab in configuration settings). My guess is that because you're using Windows, you probably have a slash going the incorrect way for your OS (ie. Should be / for Linux, \ for Windows). With Windows the wrong slash will be interpreted as an escape character, not a directory seperator.
- one of your newznab entries is down / not responsive. Disable it.
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

Ok, I'll check the configuration... My big ask on this is why has it been working just fine until last week and this became a problem? I haven't changed anything on my end... Is it possible one of the updates may have flipped this character?
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

Ok, I found the flipped / (\) in the advanced config under folder renaming and corrected it, seems to be working normally. So my question stands though, it's been working just fine until last week, so is it possible one of the updates flipped that character?

As to the provider, it's just cause I haven't re-upped VIP so it hit it's API limit I believe...
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Unable to add comics, just stuck on searching.

Post by evilhero »

It got modified within the last few commits to try and correct incorrect slashes. So it's not that it flipped the character, but the fact that the slashes on some users folder format string were the wrong slashes for the system they run on.

Users were using the example Folder Format string as the basis for theirs, and not adjusting the slash to their corresponding OS. Any slashes in the Folder Format string are considered directory structures, and the example string is $Publisher/$Series ($Year) which is fine for Linux, but for Windows users it can cause problems depending on the series.

If the subsequent character after one of the incorrect slashes was an actual escape character (and the / on windows denotes the start of an escape character sequence), then it would throw off pretty much everything related to the directory.

So basically, yeah it got switched - but it was a necessity due to circumstances.
Warborg
Posts: 45
Joined: Sat Apr 16, 2016 7:01 pm

Re: Unable to add comics, just stuck on searching.

Post by Warborg »

Ok, makes sense... Thanks for the help. It works once again, so I'm happy. :)
Post Reply