Particle Agent Keeps restarting (Pi Zero W)

I keep getting the bellow error over and over again. Not sure whats causing it, but it keeps restarting the agent and the GPIO values that were set by the firmware keep reseting as well (this is bad because its currently controlling a relay, so power keeps getting cut off every 15 or so minutes).

Not sure if this is a bug in the firmware, or if its a connection issue (if it is a connection issue the agent should not be shutting itself off, just keep trying to connect. I want the GPIO values to stay on the firmware initialized state whether or not it can connect to the cloud).

0000000007 system: INFO: Device xxxx started
0000000007 hal: INFO: Virtual WLAN init
0000000008 system: INFO: ready():false,connecting():false,listening():false
0000000008 hal: INFO: Virtual WLAN on
0000000008 hal: INFO: Virtual WLAN connecting
0000000008 hal: INFO: Virtual WLAN connected
0000000008 hal: INFO: device key:xxxx
0000000009 hal: INFO: server key:xxxx
0000000009 system: INFO: Cloud: connecting
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >'
what(): resolve: Host not found (authoritative)
Firmware exited with status pid 9432 SIGABRT (signal 6)
Quitting firmware gracefully
0000000019 system: INFO: Device xxxx started
0000000019 hal: INFO: Virtual WLAN init
0000000019 system: INFO: ready():false,connecting():false,listening():false
0000000019 hal: INFO: Virtual WLAN on
0000000019 hal: INFO: Virtual WLAN connecting
0000000020 hal: INFO: Virtual WLAN connected
0000000020 hal: INFO: device key:xxxx
0000000020 hal: INFO: server key:xxxx
0000000020 system: INFO: Cloud: connecting
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >'
what(): resolve: Host not found (authoritative)
Firmware exited with status pid 9447 SIGABRT (signal 6)
Quitting firmware gracefully
0000000015 system: INFO: Device xxxx started
0000000015 hal: INFO: Virtual WLAN init
0000000015 system: INFO: ready():false,connecting():false,listening():false
0000000015 hal: INFO: Virtual WLAN on
0000000016 hal: INFO: Virtual WLAN connecting
0000000016 hal: INFO: Virtual WLAN connected
0000000016 hal: INFO: device key: xxxx
0000000016 hal: INFO: server key: xxxx
0000000016 system: INFO: Cloud: connecting
0000000099 system: INFO: Resolved host xxxx.agent.particle.io to 107.22.28.43
0000000171 system: INFO: connected to cloud 107.22.28.43:5683
0000000171 system: INFO: Cloud socket connected
0000000509 comm: INFO: Handshake: completed
0000000512 system: INFO: Cloud connected

Hmm... Might if worth having this issue logged at: GitHub - particle-iot/particle-agent: Agent supervising the Particle firmware on the Raspberry Pi

This makes it look like a DNS issue finding the cloud host. Can you try looking up other hosts from the Pi via a shell?

1 Like