Hello,
My Hass.io installation on Rasperry Pi crashes once a week after the 0.97.x updates. I need to pull the power to get it back up. It answers ping, but I cannot login with ssh etc.
The Log has these repeated:
AttributeError: ‘NoneType’ object has no attribute ‘ports’
2019-08-18 09:28:54 INFO (MainThread) [homeassistant.helpers.script] Script Start HomeKit: Executing step call service
2019-08-18 09:28:54 INFO (SyncWorker_4) [pyhap.accessory_driver] Loading Accessory state from /config/.homekit.state
2019-08-18 09:28:54 INFO (SyncWorker_14) [pyhap.accessory_driver] Starting the event loop
2019-08-18 09:28:54 INFO (SyncWorker_0) [pyhap.accessory_driver] Starting accessory Home Assistant Bridge on address 192.168.1.134, port 51827.
2019-08-18 09:28:54 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.139’, 50770).
2019-08-18 09:28:54 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.132’, 49238).
2019-08-18 09:28:54 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.145’, 57635).
2019-08-18 09:28:54 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.144’, 50622).
2019-08-18 09:28:54 INFO (Thread-5) [pyhap.hap_server] 192.168.1.139 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:54 INFO (Thread-8) [pyhap.hap_server] 192.168.1.144 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:54 INFO (Thread-7) [pyhap.hap_server] 192.168.1.145 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:54 INFO (Thread-6) [pyhap.hap_server] 192.168.1.132 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:54 INFO (Thread-7) [pyhap.hap_server] 192.168.1.145 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-8) [pyhap.hap_server] 192.168.1.144 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-6) [pyhap.hap_server] 192.168.1.132 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-5) [pyhap.hap_server] 192.168.1.139 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-7) [pyhap.hap_server] 192.168.1.145 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-6) [pyhap.hap_server] 192.168.1.132 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-8) [pyhap.hap_server] 192.168.1.144 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.104’, 54338).
2019-08-18 09:28:55 INFO (Thread-5) [pyhap.hap_server] 192.168.1.139 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:28:55 INFO (Thread-9) [pyhap.hap_server] 192.168.1.104 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:56 INFO (Thread-9) [pyhap.hap_server] 192.168.1.104 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:56 INFO (Thread-9) [pyhap.hap_server] 192.168.1.104 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:28:58 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.6’, 56262).
2019-08-18 09:28:58 INFO (Thread-4) [pyhap.hap_server] Got connection with (‘192.168.1.6’, 56261).
2019-08-18 09:28:59 INFO (Thread-10) [pyhap.hap_server] 192.168.1.6 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:59 INFO (Thread-10) [pyhap.hap_server] 192.168.1.6 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:59 INFO (Thread-11) [pyhap.hap_server] 192.168.1.6 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:28:59 INFO (Thread-11) [pyhap.hap_server] 192.168.1.6 - “POST /pair-verify HTTP/1.1” 200 -
2019-08-18 09:29:00 INFO (Thread-10) [pyhap.hap_server] 192.168.1.6 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:29:00 INFO (Thread-11) [pyhap.hap_server] 192.168.1.6 - “GET /accessories HTTP/1.1” 200 -
2019-08-18 09:29:08 ERROR (MainThread) [aiounifi.api] Couldn’t find key: ‘None’
2019-08-18 09:29:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 254, in async_update_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 278, in _async_write_ha_state
state = self.state
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 528, in state
return STATE_ON if self.is_on else STATE_OFF
File “/usr/src/homeassistant/homeassistant/components/unifi/switch.py”, line 209, in is_on
return self.port.poe_mode != “off”
File “/usr/src/homeassistant/homeassistant/components/unifi/switch.py”, line 256, in port
return self.device.ports[self.client.sw_port]
And This:
AttributeError: ‘NoneType’ object has no attribute ‘ports’
2019-08-18 09:31:29 ERROR (MainThread) [aiounifi.api] Couldn’t find key: ‘None’
2019-08-18 09:31:29 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 254, in async_update_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 278, in _async_write_ha_state
state = self.state
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 528, in state
return STATE_ON if self.is_on else STATE_OFF
File “/usr/src/homeassistant/homeassistant/components/unifi/switch.py”, line 209, in is_on
return self.port.poe_mode != “off”
File “/usr/src/homeassistant/homeassistant/components/unifi/switch.py”, line 256, in port
return self.device.ports[self.client.sw_port]