uwsgitop exception
manasg opened this issue · comments
Hi,
I have uwsgi running a stats server as follows -
stats = /tmp/uwsgi-statsock
uwsgitop is started as - uwsgitop /tmp/uwsgi-statsock
It loads up just fine and I see the 4 uwsgi processes.
However when I access the app via the browser, uwsgitop exists with the following message.
easilydo_executor@ip-10-112-249-191:~$ uwsgitop /tmp/uwsgi-statsock
Traceback (most recent call last):
File "/usr/local/bin/uwsgitop", line 95, in
dd = json.loads(js)
File "/usr/local/lib/python2.7/dist-packages/simplejson/init.py", line 451, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 406, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 424, in raw_decode
obj, end = self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Invalid control character at: line 12 column 46 (char 722)
Platform/Environment
- OS: Ubuntu 12 (Precise)
- uwsgi, uwsgi-plugin-python installed via apt-get
ii uwsgi 1.0.3+dfsg-1ubuntu0.1 fast, self-healing application container server
ii uwsgi-core 1.0.3+dfsg-1ubuntu0.1 fast, self-healing application container server (core)
ii uwsgi-plugin-python 1.0.3+dfsg-1ubuntu0.1 Python WSGI plugin for uWSGI - uwsgitop installed via pip
- Running a Django app. Nginx is the frontend to uWSGI.
I re-ran uwsgi with stats on a network socket. Same problem - but slightly different error message
easilydo_executor@ip-10-112-249-191:~$ uwsgitop 127.0.0.1:9091
Traceback (most recent call last):
File "/usr/local/bin/uwsgitop", line 95, in
dd = json.loads(js)
File "/usr/local/lib/python2.7/dist-packages/simplejson/init.py", line 451, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 406, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py", line 424, in raw_decode
obj, end = self.scan_once(s, idx=_w(s, idx).end())
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte