Error displayed with multiple redis instance
kumarnitin opened this issue · 1 comments
I tried that and am getting the following error when starting redis-live.conf:
RedisLive]# ./redis-live.py
Traceback (most recent call last):
File "./redis-live.py", line 10, in
from api.controller.ServerListController import ServerListController
File "/etc/RedisLive/api/controller/ServerListController.py", line 1, in
from BaseController import BaseController
File "/etc/RedisLive/api/controller/BaseController.py", line 7, in
class BaseController(tornado.web.RequestHandler):
File "/etc/RedisLive/api/controller/BaseController.py", line 9, in BaseController
stats_provider = RedisLiveDataProvider.get_provider()
File "/etc/RedisLive/dataprovider/dataprovider.py", line 16, in get_provider
data_store_type = settings.get_data_store_type()
File "/etc/RedisLive/api/util/settings.py", line 18, in get_data_store_type
config = get_settings()
File "/etc/RedisLive/api/util/settings.py", line 7, in get_settings
return json.load(open("redis-live.conf"))
File "/usr/lib64/python2.6/json/init.py", line 267, in load
parse_constant=parse_constant, **kw)
File "/usr/lib64/python2.6/json/init.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/json/decoder.py", line 336, in raw_decode
obj, end = self._scanner.iterscan(s, **kw).next()
File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib64/python2.6/json/decoder.py", line 183, in JSONObject
value, end = iterscan(s, idx=end, context=context).next()
File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib64/python2.6/json/decoder.py", line 219, in JSONArray
raise ValueError(errmsg("Expecting object", s, end))
ValueError: Expecting object: line 28 column 2 (char 692)
The settings file had incorrect config, not an issue.