Pull issue returns?

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
KiLeAk
Posts: 3
Joined: Sun Feb 17, 2019 8:06 am

Pull issue returns?

Post by KiLeAk »

Hey! As always, awesome work on keeping this project going!

I've started getting the pull list error, as mentioned in the sticky post today;

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

Traceback (most recent call last):
File "C:\Program Files\mylar\lib\cherrypy\_cprequest.py", line 670, in respond
response.body = self.handler()
File "C:\Program Files\mylar\lib\cherrypy\lib\encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "C:\Program Files\mylar\lib\cherrypy\_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "C:\Program Files\mylar\mylar\webserve.py", line 1656, in pullist
repoll = self.manualpull()
File "C:\Program Files\mylar\mylar\webserve.py", line 1939, in manualpull
weeklypull.pullit()
File "C:\Program Files\mylar\mylar\weeklypull.py", line 84, in pullit
elif chk_log['status'] == 'update_required':
NameError: global name 'chk_log' is not defined

Running the latest development build, I also check the latest master too - just in case!
barbequesauce
Posts: 95
Joined: Fri Feb 03, 2017 3:59 pm

Re: Pull issue returns?

Post by barbequesauce »

Are you sure you’re current? That error is generated when you’re older than a certain build with some security fixes...
What commit are you running?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Pull issue returns?

Post by evilhero »

This should be fixed in the latest development commit - was a typo on my part it looks like.
puqui
Posts: 3
Joined: Thu Feb 21, 2019 7:50 am

Re: Pull issue returns?

Post by puqui »

Hi, I'm having trouble with the pull list on both of my devices, my Mac laptop and my QNAP NAS Server. They appear different errors, but funny both just stopped working.

MY QNAP NAS Error is :500 Internal Server Error

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

Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/lib/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/lib/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/lib/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/mylar/webserve.py", line 1649, in pullist
repoll = self.manualpull(weeknumber=weekinfo['weeknumber'],year=weekinfo['year'])
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/mylar/webserve.py", line 1939, in manualpull
weeklypull.pullit()
File "/share/CACHEDEV1_DATA/.qpkg/Mylar/mylar-master/mylar/weeklypull.py", line 361, in pullit
comicnm = issname[1]
IndexError: list index out of range

And my Mac Laptop error:500 Internal Server Error

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

Traceback (most recent call last):
File "/Applications/Mylar/lib/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/Applications/Mylar/lib/cherrypy/lib/encoding.py", line 217, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/Applications/Mylar/lib/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Applications/Mylar/mylar/webserve.py", line 1610, in pullist
repoll = self.manualpull(weeknumber=weekinfo['weeknumber'],year=weekinfo['year'])
File "/Applications/Mylar/mylar/webserve.py", line 1894, in manualpull
return mylar.locg.locg(weeknumber=weeknumber,year=year)
File "/Applications/Mylar/mylar/locg.py", line 68, in locg
data = r.json()
File "/Applications/Mylar/lib/requests/models.py", line 819, in json
return json.loads(self.text, **kwargs)
File "/Applications/Mylar/lib/simplejson/__init__.py", line 428, in loads
return _default_decoder.decode(s)
File "/Applications/Mylar/lib/simplejson/decoder.py", line 402, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Applications/Mylar/lib/simplejson/decoder.py", line 418, in raw_decode
obj, end = self.scan_once(s, idx)
File "/Applications/Mylar/lib/simplejson/scanner.py", line 71, in scan_once
return _scan_once(string, idx)
File "/Applications/Mylar/lib/simplejson/scanner.py", line 44, in _scan_once
return parse_array((string, idx + 1), _scan_once)
File "/Applications/Mylar/lib/simplejson/decoder.py", line 286, in JSONArray
raise JSONDecodeError("Expecting object", s, end)
JSONDecodeError: Expecting object: line 1 column 1 (char 1)

Any help or suggestions?
Thanks in advance
Mark
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Pull issue returns?

Post by evilhero »

@puqui,

1st error - set your alt_pull = 2 in the config.ini (with mylar not running) and/or update your version of mylar.
2nd error - update your version of mylar.
KiLeAk
Posts: 3
Joined: Sun Feb 17, 2019 8:06 am

Re: Pull issue returns?

Post by KiLeAk »

evilhero wrote: Sun Feb 17, 2019 5:35 pm This should be fixed in the latest development commit - was a typo on my part it looks like.
It is! Thanks :D

However, now I don't see anything in the pull list for Week 6 or 7.....from the log.

2019-02-23 00:35:11 WARNING [PULL-LIST] Your version of Mylar is not up-to-date. You MUST update before this works
2019-02-23 00:35:11 WARNING [666] The error returned is: {'date': 'Fri, 22 Feb 2019 13:35:11 GMT', 'content-length': '25', 'content-type': 'text/html; charset=UTF-8', 'connection': 'close', 'server': 'Apache/2.4.10 (Ubuntu)'}
2019-02-23 00:35:10 INFO pulldate is : 00000000
2019-02-23 00:35:10 INFO [PULL-LIST] Populating & Loading pull-list data directly from alternate website
2019-02-23 00:35:10 INFO Weekly pull list present - checking if it's up-to-date..
2019-02-23 00:35:10 INFO ALT_PULL: 2 PULLBYFILE: False week: None year: None
2019-02-23 00:35:10 WARNING Attempting to repoll against legacy pullist in order to have some kind of updated listing for the week.
2019-02-23 00:35:10 WARNING Problem repopulating the pullist for week 07, 2019
2019-02-23 00:35:10 WARNING [666] The error returned is: {'date': 'Fri, 22 Feb 2019 13:35:09 GMT', 'content-length': '25', 'content-type': 'text/html; charset=UTF-8', 'connection': 'close', 'server': 'Apache/2.4.10 (Ubuntu)'}

Running the developer build / Latest commit 59ae202
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Pull issue returns?

Post by evilhero »

Weird, it's saying you're not-up-to-date with your Mylar version - have you tried to restart Mylar since the error ?

Due to a security fix, all version of Mylar were required to be of a certain version (for everyone's sake) - so we enforce it using the pull-list method. Can you confirm that the commit/branch you're running is identical on both the bottom of any page and in the 1st tab of the configuration?

Is it a docker install / git install / source install ?
KiLeAk
Posts: 3
Joined: Sun Feb 17, 2019 8:06 am

Re: Pull issue returns?

Post by KiLeAk »

evilhero wrote: Sat Feb 23, 2019 6:37 pm Weird, it's saying you're not-up-to-date with your Mylar version - have you tried to restart Mylar since the error ?

Due to a security fix, all version of Mylar were required to be of a certain version (for everyone's sake) - so we enforce it using the pull-list method. Can you confirm that the commit/branch you're running is identical on both the bottom of any page and in the 1st tab of the configuration?

Is it a docker install / git install / source install ?
Source install, simply running the .py at startup on a Win10 box.

Yes, the version error in the log was an obvious issue - but I copied the new source (and again, just to make sure!). Oddly enough, the version on every page is;

Version: None (development)

Which I assumed was by design?

Other version details for completeness;

Mylar Version: development
-- source build None.
Python Version : 2.7.15
Language : en_AU.cp1252
Post Reply