-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.5.2
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Occasionally, the MMS Monitoring agent encounters the error below. The error occurs on the following line in the agent:
entries = logConn.admin.command( { 'getLog' : 'global' } )
File "/mms/mms-agent/getLogs.py", line 87, in _processLogs logs = self._collectLogs( logConn ) File "/mms/mms-agent/getLogs.py", line 107, in _collectLogs entries = logConn.admin.command( { 'getLog' : 'global' } ) File "/usr/local/lib/python2.7/dist-packages/pymongo/database.py", line 388, in command result = self["$cmd"].find_one(command, **extra_opts) File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 596, in find_one for result in self.find(spec_or_id, *args, **kwargs).limit(-1): File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 814, in next if len(self.__data) or self._refresh(): File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 763, in _refresh self.__uuid_subtype)) File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 720, in __send_message self.__uuid_subtype) File "/usr/local/lib/python2.7/dist-packages/pymongo/helpers.py", line 107, in _unpack_response as_class, tz_aware, uuid_subtype) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 509-510: unexpected end of data
Untested theory: if there is a slow query that makes it to the logs and the slow query contains non-ascii characters, there is an encoding problem of some sort in returning the log data?
Unfortunately, this error is always sporadic, so I do not have any example data to share.