Hi all,
I've recently purchased a new Photon 2 and struggling to onboard to the cloud. I have several other Particle devices Photon1, Argons and Xenons - however I can't seem to add this one. I've followed the on-boarding process but no joy. I've used device doctor to reflash, tried other Wifi hotspots and firmware levels. The Photon2 is currently connected via USB to my Windows 11 laptop and using Particle CLI serial monitor. From here I can see it's attempting to connect to the cloud, but fails with no real reason. Logs below.
Thoughts?
0001102046 [system] INFO: Cloud: connecting
0001102056 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0001102070 [system] WARN: Failed to load session data from persistent storage
0001102082 [system] INFO: Discarding session data
0001102122 [system] TRACE: Resolving XXXXXXXXXXXXXXXXXXXX.v5.udp.particle.io#5684
0001102206 [system] TRACE: Address type: 3
0001102215 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0001102230 [system] INFO: Cloud socket=0, connecting to 3.222.143.118#5684
0001102248 [system] TRACE: Cloud socket=0, connected to 3.222.143.118#5684
0001102262 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0001102277 [system] TRACE: Applying new keepalive interval now
0001102291 [system] INFO: Cloud socket connected
0001102298 [system] INFO: Starting handshake: presense_announce=0
0001102310 [comm.protocol.handshake] INFO: Establish secure connection
0001102324 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0001104986 [comm.protocol.handshake] INFO: Sending HELLO message
0001105003 [comm.coap] TRACE: Sending CoAP message
0001105013 [comm.coap] TRACE: CON POST /h size=39 token= id=13
0001110823 [comm.coap] TRACE: Retransmitting CoAP message; ID: 13; attempt 1 of 3
0001110836 [comm.coap] TRACE: Sending CoAP message
0001110845 [comm.coap] TRACE: CON POST /h size=39 token= id=13
0001121010 [comm.coap] TRACE: Retransmitting CoAP message; ID: 13; attempt 2 of 3
0001121022 [comm.coap] TRACE: Sending CoAP message
0001121033 [comm.coap] TRACE: CON POST /h size=39 token= id=13
0001142947 [comm.coap] TRACE: Retransmitting CoAP message; ID: 13; attempt 3 of 3
0001142960 [comm.coap] TRACE: Sending CoAP message
0001142967 [comm.coap] TRACE: CON POST /h size=39 token= id=13
0001178822 [comm.coap] ERROR: CoAP message timeout; ID: 13
0001178833 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0001178846 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0001178916 [service.ntp] TRACE: NTP time: 2023-11-28T22:01:38.45206Z
0001178931 [system] WARN: Internet available, cloud not reachable
0001178941 [system] WARN: Cloud handshake failed, code=-160
0001179200 [system] INFO: Cloud: disconnecting
0001179208 [system] INFO: Cloud: disconnected
0001179920 [system] INFO: Cloud: connecting
0001179929 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0001179941 [system] WARN: Failed to load session data from persistent storage
0001179951 [system] INFO: Discarding session data
0001179992 [system] TRACE: Resolving XXXXXXXXXXXXXXXXXXXX.v5.udp.particle.io#5684
0001180077 [system] TRACE: Address type: 3
0001180084 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0001180098 [system] INFO: Cloud socket=0, connecting to 3.215.122.234#5684
0001180111 [system] TRACE: Cloud socket=0, connected to 3.215.122.234#5684
0001180125 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0001180141 [system] TRACE: Applying new keepalive interval now
0001180150 [system] INFO: Cloud socket connected
0001180159 [system] INFO: Starting handshake: presense_announce=0
0001180170 [comm.protocol.handshake] INFO: Establish secure connection
0001180186 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0001182863 [comm.protocol.handshake] INFO: Sending HELLO message
0001182876 [comm.coap] TRACE: Sending CoAP message
0001182884 [comm.coap] TRACE: CON POST /h size=39 token= id=14
0001187243 [comm.coap] TRACE: Retransmitting CoAP message; ID: 14; attempt 1 of 3
0001187256 [comm.coap] TRACE: Sending CoAP message
0001187266 [comm.coap] TRACE: CON POST /h size=39 token= id=14
0001195680 [comm.coap] TRACE: Retransmitting CoAP message; ID: 14; attempt 2 of 3
0001195694 [comm.coap] TRACE: Sending CoAP message
0001195702 [comm.coap] TRACE: CON POST /h size=39 token= id=14
0001216742 [comm.coap] TRACE: Retransmitting CoAP message; ID: 14; attempt 3 of 3
0001216754 [comm.coap] TRACE: Sending CoAP message
0001216765 [comm.coap] TRACE: CON POST /h size=39 token= id=14
0001259492 [comm.coap] ERROR: CoAP message timeout; ID: 14
0001259502 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0001259513 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0001259578 [service.ntp] TRACE: NTP time: 2023-11-28T22:02:58.709983Z
0001259590 [system] WARN: Internet available, cloud not reachable
0001259602 [system] WARN: Cloud handshake failed, code=-160
0001259869 [system] INFO: Cloud: disconnecting
0001259877 [system] INFO: Cloud: disconnected
0001260598 [system] INFO: Cloud: connecting
0001260607 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0001260623 [system] WARN: Failed to load session data from persistent storage
0001260636 [system] INFO: Discarding session data
0001260677 [system] TRACE: Resolving XXXXXXXXXXXXXXXXXXXX.v5.udp.particle.io#5684
0001260762 [system] TRACE: Address type: 3
0001260770 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0001260784 [system] INFO: Cloud socket=0, connecting to 3.222.143.118#5684
0001260800 [system] TRACE: Cloud socket=0, connected to 3.222.143.118#5684
0001260814 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0001260826 [system] TRACE: Applying new keepalive interval now
0001260836 [system] INFO: Cloud socket connected
0001260847 [system] INFO: Starting handshake: presense_announce=0
0001260860 [comm.protocol.handshake] INFO: Establish secure connection
0001260875 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0001263557 [comm.protocol.handshake] INFO: Sending HELLO message
0001263566 [comm.coap] TRACE: Sending CoAP message
0001263573 [comm.coap] TRACE: CON POST /h size=39 token= id=15
0001268136 [comm.coap] TRACE: Retransmitting CoAP message; ID: 15; attempt 1 of 3
0001268149 [comm.coap] TRACE: Sending CoAP message
0001268157 [comm.coap] TRACE: CON POST /h size=39 token= id=15
0001277495 [comm.coap] TRACE: Retransmitting CoAP message; ID: 15; attempt 2 of 3
0001277509 [comm.coap] TRACE: Sending CoAP message
0001277518 [comm.coap] TRACE: CON POST /h size=39 token= id=15
0001293838 [comm.coap] TRACE: Retransmitting CoAP message; ID: 15; attempt 3 of 3
0001293852 [comm.coap] TRACE: Sending CoAP message
0001293860 [comm.coap] TRACE: CON POST /h size=39 token= id=15
0001332275 [comm.coap] ERROR: CoAP message timeout; ID: 15
0001332283 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0001332301 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0001332317 [system] WARN: Resetting network interfaces due to failed connection attempts for 5 minutes
0001332337 [system] WARN: Cloud handshake failed, code=-160
0001332600 [system] INFO: Cloud: disconnecting
0001332608 [system] INFO: Cloud: disconnected
0001332727 [system.nm] INFO: State changed: IP_CONFIGURED -> IFACE_REQUEST_DOWN
0001332741 [net.ifapi] INFO: Netif wl3 state DOWN
0001332752 [hal] INFO: DNS server list changed
0001332760 [hal] INFO: DNS server list changed
0001332774 [system.nm] INFO: State changed: IFACE_REQUEST_DOWN -> IFACE_DOWN
0001332787 [ncp.rltk.client] INFO: disconnected
0001332789 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0001332791 [net.rltkncp] TRACE: NCP event 2
0001332795 [net.ifapi] INFO: Netif wl3 link DOWN, profile=NONE
0001332797 [net.rltkncp] ERROR: linkOutput up=0 link_up=0
0001332800 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0001332804 [hal] INFO: DNS server list changed
0001332806 [hal] INFO: DNS server list changed
0001332809 [system.nm] INFO: State changed: IFACE_DOWN -> DISABLED
0001332825 [system.nm] INFO: State changed: DISABLED -> IFACE_DOWN
0001332838 [system.nm] INFO: State changed: IFACE_DOWN -> IFACE_REQUEST_UP
0001332853 [net.ifapi] INFO: Netif wl3 state UP
0001332862 [system.nm] INFO: State changed: IFACE_REQUEST_UP -> IFACE_UP
0001332875 [ncp.rltk.client] INFO: Try to connect to ssid: XXXXXXXXXX
0001332878 [net.lwip_rltk] INFO: is_promisc_enabled
0001332882 [net.lwip_rltk] INFO: get_eap_phase
0001333597 [net.rltkncp] ERROR: linkOutput up=1 link_up=0
0001334597 [net.rltkncp] ERROR: linkOutput up=1 link_up=0
0001335597 [net.rltkncp] ERROR: linkOutput up=1 link_up=0
0001336597 [net.rltkncp] ERROR: linkOutput up=1 link_up=0
0001337034 [net.lwip_rltk] INFO: get_eap_phase
0001337356 [net.lwip_rltk] INFO: get_eap_phase
0001337385 [ncp.rltk.client] TRACE: NCP connection state changed: 2
0001337387 [net.rltkncp] TRACE: NCP event 2
0001337389 [net.rltkncp] TRACE: State changed event: 2
0001337391 [net.ifapi] INFO: Netif wl3 link UP, profile=XXXXXXXXXX
0001337401 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0001338990 [hal] INFO: DNS server list changed
0001338995 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0001339002 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0001339012 [system] INFO: Cloud: connecting
0001339025 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0001339040 [system] WARN: Failed to load session data from persistent storage
0001339052 [system] INFO: Discarding session data
0001339093 [system] TRACE: Resolving XXXXXXXXXXXXXXXXXXXX.v5.udp.particle.io#5684
0001339188 [system] TRACE: Address type: 3
0001339197 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0001339212 [system] INFO: Cloud socket=0, connecting to 3.215.122.234#5684
0001339225 [system] TRACE: Cloud socket=0, connected to 3.215.122.234#5684
0001339237 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0001339252 [system] TRACE: Applying new keepalive interval now
0001339263 [system] INFO: Cloud socket connected
0001339271 [system] INFO: Starting handshake: presense_announce=0
0001339283 [comm.protocol.handshake] INFO: Establish secure connection
0001339296 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0001341964 [comm.protocol.handshake] INFO: Sending HELLO message
0001341977 [comm.coap] TRACE: Sending CoAP message
0001341985 [comm.coap] TRACE: CON POST /h size=39 token= id=16
0001347508 [comm.coap] TRACE: Retransmitting CoAP message; ID: 16; attempt 1 of 3
0001347522 [comm.coap] TRACE: Sending CoAP message
0001347531 [comm.coap] TRACE: CON POST /h size=39 token= id=16
0001357929 [comm.coap] TRACE: Retransmitting CoAP message; ID: 16; attempt 2 of 3
0001357942 [comm.coap] TRACE: Sending CoAP message
0001357952 [comm.coap] TRACE: CON POST /h size=39 token= id=16
0001376554 [comm.coap] TRACE: Retransmitting CoAP message; ID: 16; attempt 3 of 3
0001376565 [comm.coap] TRACE: Sending CoAP message
0001376573 [comm.coap] TRACE: CON POST /h size=39 token= id=16
0001419866 [comm.coap] ERROR: CoAP message timeout; ID: 16
0001419877 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0001419890 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0001419974 [service.ntp] TRACE: NTP time: 2023-11-28T22:05:39.100657Z
0001419988 [system] WARN: Internet available, cloud not reachable
0001420000 [system] WARN: Cloud handshake failed, code=-160
0001420262 [system] INFO: Cloud: disconnecting
0001420270 [system] INFO: Cloud: disconnected
0001420983 [system] INFO: Cloud: connecting
0001420994 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0001421007 [system] WARN: Failed to load session data from persistent storage
0001421017 [system] INFO: Discarding session data
0001421059 [system] TRACE: Resolving XXXXXXXXXXXXXXXXXXXX.v5.udp.particle.io#5684
0001421133 [system] TRACE: Address type: 3
0001421142 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0001421156 [system] INFO: Cloud socket=0, connecting to 3.215.122.234#5684
0001421170 [system] TRACE: Cloud socket=0, connected to 3.215.122.234#5684
0001421182 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0001421192 [system] TRACE: Applying new keepalive interval now
0001421202 [system] INFO: Cloud socket connected
0001421213 [system] INFO: Starting handshake: presense_announce=0
0001421226 [comm.protocol.handshake] INFO: Establish secure connection
0001421246 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0001423918 [comm.protocol.handshake] INFO: Sending HELLO message
0001423932 [comm.coap] TRACE: Sending CoAP message
0001423942 [comm.coap] TRACE: CON POST /h size=39 token= id=17
0001428939 [comm.coap] TRACE: Retransmitting CoAP message; ID: 17; attempt 1 of 3
0001428951 [comm.coap] TRACE: Sending CoAP message
0001428959 [comm.coap] TRACE: CON POST /h size=39 token= id=17
0001440517 [comm.coap] TRACE: Retransmitting CoAP message; ID: 17; attempt 2 of 3
0001440528 [comm.coap] TRACE: Sending CoAP message
0001440539 [comm.coap] TRACE: CON POST /h size=39 token= id=17
0001460360 [comm.coap] TRACE: Retransmitting CoAP message; ID: 17; attempt 3 of 3
0001460373 [comm.coap] TRACE: Sending CoAP message
0001460382 [comm.coap] TRACE: CON POST /h size=39 token= id=17