Support Questions

Find answers, ask questions, and share your expertise

Why The Below Error is coming in All Agent

avatar
Contributor

Hi All,

My services are not starting and it failed after sometimes.

 

CDH : 6.2.0
Error:

AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:31:20 +0000] 6528 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
1 ACCEPTED SOLUTION

avatar
Master Guru

Hi @Nick ,

 

From the stack, it appears that process_info is null which indicates an unexpected condition leading up to this event.  In order to learn more about what is happening leading up to the stack trace, would you be able to include the entire agent file or at least 100 lines preceeding the first stack trace you see with "AttributeError: 'NoneType' object has no attribute 'get'"

 

That should help give us some clues.

View solution in original post

5 REPLIES 5

avatar
Master Guru

Hi @Nick ,

 

From the stack, it appears that process_info is null which indicates an unexpected condition leading up to this event.  In order to learn more about what is happening leading up to the stack trace, would you be able to include the entire agent file or at least 100 lines preceeding the first stack trace you see with "AttributeError: 'NoneType' object has no attribute 'get'"

 

That should help give us some clues.

avatar
Contributor
[16/Jul/2019 10:19:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:19:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:19:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:19:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:19:55 +0000] 6528 Monitor-HostMonitor throttling_logger ERROR Failed to collect NTP metrics
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/monitor/host/ntp_monitor.py", line 49, in collect
self.collect_ntpd()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/monitor/host/ntp_monitor.py", line 67, in collect_ntpd
result, stdout, stderr = self._subprocess_with_timeout(args, self._timeout)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/monitor/host/ntp_monitor.py", line 39, in _subprocess_with_timeout
return subprocess_with_timeout(args, timeout)
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/subprocess_timeout.py", line 50, in subprocess_with_timeout
p = subprocess.Popen(**kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[16/Jul/2019 10:19:55 +0000] 6528 MonitorDaemon-Reporter firehoses INFO Creating a connection to the ACTIVITYMONITOR.
[16/Jul/2019 10:19:55 +0000] 6528 MonitorDaemon-Reporter firehoses INFO Creating a connection to the SERVICEMONITOR.
[16/Jul/2019 10:19:55 +0000] 6528 MonitorDaemon-Reporter firehoses INFO Creating a connection to the HOSTMONITOR.
[16/Jul/2019 10:20:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:20:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:20:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:20:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:21:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:21:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:21:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:21:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:22:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:22:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:22:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:22:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:23:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:23:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:23:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:23:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:24:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:24:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:24:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:24:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:25:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:25:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:25:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:25:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:26:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:26:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:26:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:26:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:27:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:27:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:27:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:27:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:28:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:28:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:28:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:28:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:29:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:29:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:29:35 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:29:50 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:30:05 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.
Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
heartbeat = self.prepare_heartbeat()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
process.update_supervisor_data(supervisor_data.get(process.name, None))
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
self.deactivate_complete()
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 10:30:20 +0000] 6528 MainThread agent ERROR Caught unexpected exception in main loop.

avatar
Contributor

@bgooley 

[16/Jul/2019 09:18:54 +0000] 1885 Audit-Plugin navigator_plugin INFO     Pipelines updated for Audit Plugin: []
[16/Jul/2019 09:18:54 +0000] 1885 Audit-Plugin throttling_logger INFO     Refreshing Audit Plugin for zookeeper-init with count 0 pipelines names [].
[16/Jul/2019 09:18:54 +0000] 1885 Metadata-Plugin navigator_plugin INFO     Pipelines updated for Metadata Plugin: []
[16/Jul/2019 09:19:03 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:19:19 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:19:33 +0000] 1885 MonitorDaemon-Reporter firehoses    INFO     Creating a connection to the ACTIVITYMONITOR.
[16/Jul/2019 09:19:33 +0000] 1885 MonitorDaemon-Reporter firehoses    INFO     Creating a connection to the SERVICEMONITOR.
[16/Jul/2019 09:19:33 +0000] 1885 MonitorDaemon-Reporter firehoses    INFO     Creating a connection to the HOSTMONITOR.
[16/Jul/2019 09:19:34 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:19:49 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:20:04 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:20:19 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.
Traceback (most recent call last):
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 752, in __issue_heartbeat
    heartbeat = self.prepare_heartbeat()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/agent.py", line 1295, in prepare_heartbeat
    process.update_supervisor_data(supervisor_data.get(process.name, None))
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1282, in update_supervisor_data
    self.deactivate_complete()
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 974, in deactivate_complete
    LOG.info("[%s] Unregistered supervisor process %s", self, self.fixed_supervisor_state())
  File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/process.py", line 1333, in fixed_supervisor_state
    state_name = self.process_info.get("statename", "STOPPED")
AttributeError: 'NoneType' object has no attribute 'get'
[16/Jul/2019 09:20:34 +0000] 1885 MainThread agent        ERROR    Caught unexpected exception in main loop.

avatar
Master Guru

@Nick,

 

Thanks for the log.  Unfortunately, it does not contain information regarding the stop or start activity that might have led to this condition.

 

Currently, the supervisor and agent seem to be in an "invalid" state that is not handled by the agent code.

 

I would recommend restarting the agent on one host and see if that helps prevent the error from occurring.

Run:

 

systemctl restart cloudera-scm-agent

 

Monitor the agent logs on the host where you restarted the agent to see if there are any errors.

 

If that doesn't help, we may need to restart the supervisor as well...  Let us know.

avatar
Explorer

Hi Team,

 

We are also facing similar issues.

 

Traceback (most recent call last):
File "/opt/cloudera/cm-agent/lib/python2.6/site-packages/cmf/agent.py", line 1525, in handle_heartbeat_response
self._handle_heartbeat_response(response)
File "/opt/cloudera/cm-agent/lib/python2.6/site-packages/cmf/agent.py", line 1658, in _handle_heartbeat_response
self._update_parcel_activation_state(response)
File "/opt/cloudera/cm-agent/lib/python2.6/site-packages/cmf/agent.py", line 1569, in _update_parcel_activation_state
manage_old_parcels = old_response.get("create_parcel_symlinks")
AttributeError: 'NoneType' object has no attribute 'get'

 

Tried to hard restart the agent, but no luck. Could anyone help?