d" : NumberLong(0),"requests" : NumberLong(0),"scanned" : NumberLong(0)}}},"ttl" : {"deletedDocuments" : NumberLong(13410125),"passes" : NumberLong(418684)}},"ok" : 1,"operationTime" : Timestamp(1624252586, 18),"$clusterTime" : {"clusterTime" : Timestamp(1624252586, 18),"signature" : {"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),"keyId" : NumberLong(0)}}}
stde : None
[2021-06-21 13:16:26] ERROR
Traceback (most recent call last):
File "./mdb_sstat.py", line 182, in _get_result
resobj = json.loads(stdo_str)
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 185, in JSONObject
raise ValueError(errmsg("Expecting object", s, end))
ValueError: Expecting object: line 1 column 3764 (char 3764)
###应该和版本有关系,不知道这个脚本这里需要的str是什么形式的。我的mongodb版本是4.0。
#需要改成什么样?
d" : NumberLong(0),"requests" : NumberLong(0),"scanned" : NumberLong(0)}}},"ttl" : {"deletedDocuments" : NumberLong(13410125),"passes" : NumberLong(418684)}},"ok" : 1,"operationTime" : Timestamp(1624252586, 18),"$clusterTime" : {"clusterTime" : Timestamp(1624252586, 18),"signature" : {"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),"keyId" : NumberLong(0)}}}
stde : None
[2021-06-21 13:16:26] ERROR
Traceback (most recent call last):
File "./mdb_sstat.py", line 182, in _get_result
resobj = json.loads(stdo_str)
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 185, in JSONObject
raise ValueError(errmsg("Expecting object", s, end))
ValueError: Expecting object: line 1 column 3764 (char 3764)
###应该和版本有关系,不知道这个脚本这里需要的str是什么形式的。我的mongodb版本是4.0。
#需要改成什么样?