RedisLive监控实时数据报错?报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

RedisLive监控实时数据报错?报错

爱吃鱼的程序员 2020-06-12 15:28:27 197

@China_OS 你好,想跟你请教个问题:

先说下系统环境:

CentOS release 6.6 (Final)

Python 2.6.6(Python 2.7.10 之前以为是python问题.又在另外一台机器装了2.7.10 重新搭建发现错误一样)

redis-2.8.19

下面截图是安装的依赖版本和redisLive

安装完成后出现的问题是这样的.

1).选择实时监控后界面显示

后台报错:

[E 150731 18:00:48 web:1728] 500 GET /api/topcommands?from=Fri+Jul+24+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&to=Fri+Jul+31+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&server=127.0.0.1%3A6379 (192.168.9.185) 1.39ms
[E 150731 18:00:48 web:1305] Uncaught exception GET /api/topkeys?from=Fri+Jul+24+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&to=Fri+Jul+31+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&server=127.0.0.1%3A6379 (192.168.9.185)
(帮各位转好码了:/api/topcommands?from=Fri Jul 24 2015 17:59:44 GMT+0800 (中国标准时间)&to=Fri Jul 31 2015 17:59:44 GMT+0800 (中国标准时间)&server=127.0.0.1:6379 (xx.xx.xx.xx)
HTTPRequest(protocol='http', host='xx.xx.xx.xx:8888', method='GET', uri='/api/topkeys?from=Fri Jul 24 2015 17:59:44 GMT+0800 (中国标准时间)&to=Fri Jul 31 2015 17:59:44 GMT+0800 (中国标准时间)&server=127.0.0.1:6379', version='HTTP/1.1', remote_ip='192.168.9.185', headers={'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'xx.xx.xx.xx:8888', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36', 'Connection': 'keep-alive', 'Referer': 'http://xx.xx.xx.xx:8888/index.html', 'X-Requested-With': 'XMLHttpRequest'})
    Traceback (most recent call last):
      File "/usr/lib64/python2.6/site-packages/tornado-3.2-py2.6-linux-x86_64.egg/tornado/web.py", line 1218, in _when_complete
        callback()
      File "/usr/lib64/python2.6/site-packages/tornado-3.2-py2.6-linux-x86_64.egg/tornado/web.py", line 1239, in _execute_method
        self._when_complete(method(*self.path_args, **self.path_kwargs),
      File "/usr/local/product/redisLive/RedisLive/src/api/controller/TopKeysController.py", line 22, in get
        start = dateutil.parser.parse(from_date)
      File "/usr/lib/python2.6/site-packages/dateutil/parser.py", line 1008, in parse
        return DEFAULTPARSER.parse(timestr, **kwargs)
      File "/usr/lib/python2.6/site-packages/dateutil/parser.py", line 395, in parse
        raise ValueError("Unknown string format")
    ValueError: Unknown string format


2).当点击一段时间的时候,程序没报错.并且还很给力的显示除了曲线图

后台请求正常


[I 150731 18:00:53 web:1728] 200 GET /api/info?from=Fri+Jul+24+2015+17%3A59%3A50+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&to=Fri+Jul+31+2015+17%3A59%3A50+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&server=127.0.0.1%3A6379 (xx.xx.xx.xx) 7.02ms 
我转:/api/info?from=Fri Jul 24 2015 17:59:50 GMT+0800 (中国标准时间)&to=Fri Jul 31 2015 17:59:50 GMT+0800 (中国标准时间)&server=127.0.0.1:6379 (xx.xx.xx.xx) 7.02ms
[I 150731 18:07:39 web:1728] 200 GET /api/memory?from=2015-07-31+17%3A51%3A35&to=2015-07-31+18%3A06%3A35&server=127.0.0.1%3A6379 (xx.xx.xx.xx) 30.80ms
我转:/api/memory?from=2015-07-31 17:51:35&to=2015-07-31 18:06:35&server=127.0.0.1:6379 (xx.xx.xx.xx) 30.80ms
[I 150731 18:07:42 web:1728] 200 GET /api/commands?from=2015-07-31+17%3A51%3A39&to=2015-07-31+18%3A06%3A39&server=127.0.0.1%3A6379 (xx.xx.xx.xx) 14.92ms 
我转:/api/commands?from=2015-07-31 17:51:39&to=2015-07-31 18:06:39&server=127.0.0.1:6379 (xx.xx.xx.xx) 14.92ms

[I 150731 18:07:45 web:1728] 200 GET /api/topkeys?from=2015-07-31+17%3A51%3A41&to=2015-07-31+18%3A06%3A41&server=127.0.0.1%3A6379 (xx.xx.xx.xx) 12.88ms
我转:/api/topkeys?from=2015-07-31 17:51:41&to=2015-07-31 18:06:41&server=127.0.0.1:6379 (xx.xx.xx.xx) 12.88ms

顺便说下上边的xx.xx.xx.xx都是真实ip,虽然是内网的.不过还是觉得匿了比较好.

对了,还有浏览器第一次进来的时候的请求:

[I 150731 18:00:32 web:1728] 304 GET /index.html (192.168.9.185) 0.72ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/bootstrap/bootstrap.css (192.168.9.185) 0.62ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/jquery/jquery-1.7.2.min.js (192.168.9.185) 0.55ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/less/less-1.3.0.min.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/bootstrap/js/bootstrap-button.js (192.168.9.185) 0.53ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/bootstrap/js/bootstrap-tooltip.js (192.168.9.185) 0.50ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/bootstrap/js/bootstrap-popover.js (192.168.9.185) 0.50ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/bootstrap/js/bootstrap-dropdown.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/underscore/underscore-min.js (192.168.9.185) 0.51ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/backbone/backbone-min.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/libs/handlebars/handlebars-1.0.0.beta.6.js (192.168.9.185) 0.54ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/base-widget-view.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/serverlist-model.js (192.168.9.185) 0.53ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/serverlist-view.js (192.168.9.185) 0.51ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/info-widget-model.js (192.168.9.185) 0.54ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/info-widget-view.js (192.168.9.185) 0.54ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/memory-widget-model.js (192.168.9.185) 0.55ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/memory-widget-view.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/commands-widget-model.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/commands-widget-view.js (192.168.9.185) 0.52ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/top-commands-widget-model.js (192.168.9.185) 0.53ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/top-commands-widget-view.js (192.168.9.185) 0.51ms
[I 150731 18:00:32 web:1728] 304 GET /js/models/top-keys-widget-model.js (192.168.9.185) 0.51ms
[I 150731 18:00:32 web:1728] 304 GET /js/views/top-keys-widget-view.js (192.168.9.185) 0.49ms
[I 150731 18:00:32 web:1728] 304 GET /js/app.js (192.168.9.185) 0.52ms
[I 150731 18:00:43 web:1728] 304 GET /js/libs/handlebars/handlebars-1.0.0.beta.6.js (192.168.9.185) 0.73ms
[I 150731 18:00:43 web:1728] 304 GET /js/models/top-commands-widget-model.js (192.168.9.185) 0.63ms
[I 150731 18:00:43 web:1728] 304 GET /js/views/top-commands-widget-view.js (192.168.9.185) 0.52ms
[I 150731 18:00:43 web:1728] 304 GET /js/views/top-keys-widget-view.js (192.168.9.185) 0.83ms
[I 150731 18:00:43 web:1728] 304 GET /js/app.js (192.168.9.185) 0.61ms
[I 150731 18:00:43 web:1728] 304 GET /api/servers (192.168.9.185) 0.95ms
[I 150731 18:00:48 web:1728] 200 GET /api/info?from=Fri+Jul+24+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&to=Fri+Jul+31+2015+17%3A59%3A44+GMT%2B0800+(%E4%B8%AD%E5%9B%BD%E6%A0%87%E5%87%86%E6%97%B6%E9%97%B4)&server=127.0.0.1%3A6379 (192.168.9.185) 8.15ms
我转:/api/info?from=Fri Jul 24 2015 17:59:44 GMT+0800 (中国标准时间)&to=Fri Jul 31 2015 17:59:44 GMT+0800 (中国标准时间)&server=127.0.0.1:6379 (xx.xx.xx.xx) 8.15ms








实时数据报错 div报错 监控hive 监控报错 live实时
分享到
取消 提交回答
全部回答(1)
  • 爱吃鱼的程序员
    2020-06-12 15:28:45

    看你提供的日志,ValueError:Unknownstringformat,是格式问题,或者由于中文导致编码问题感谢。我这边会做验证。有结果了会告知加油

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

相似问题
最新问题
推荐课程