Photon 2 - unable to onboard to the cloud

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

Hi Steve-
Oh no, that sounds very frustrating! You've tried a lot of the things I'd usually suggest, can you please try the Device Doctor and share the logs?

Thanks!

Hi Colleen,

Thanks for the message.
Using Device Doctor I seem to get less information than the CLI serial monitor. Unsure if it helps, the status led is flashing rapidly light blue. After approx a couple of minutes the led flashes red and resets and starts again - looping the process.
I'm presuming until the Particle cloud acknowledges the device I won't be able to claim it. I did also try using the CLI tool to configure but told its not supported and had to use on web method.

From the CLI tool.

I have detected a Photon 2 / P2 connected via USB.

! This device cannot be setup via the CLI.
! Please visit https://setup.particle.io to setup your Photon 2 / P2 .

Log from Device Doctor.
Device ID: 0a10aced202194944a04XXXX
0000002034 [system.nm] INFO: State changed: DISABLED -> IFACE_DOWN
0000002172 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:04:XX:XX
0000002511 [hal] INFO: WiFi on
0000002729 [ncp.rltk.client] INFO: rltkOff
0000002977 [net.lwip_rltk] INFO: promisc_deinit TODO
0000003031 [hal] INFO: WiFi off
0000003063 [ncp.rltk.client] INFO: rltkOff done
0000003310 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:04:XX:XX
0000003582 [hal] INFO: WiFi on
0000007615 [app] INFO: Auto-connect disabled
0000009210 [app] INFO: wifiSelectAntenna 0
0000009399 [app] INFO: doing wifiScan
0000009439 [app] INFO: Doing Wi-fi scan
0000009696 [net.lwip_rltk] INFO: netif_post_sleep_processing TODO
0000013664 [app] INFO: wiFiScan resultCount=16
0000040275 [system.nm] INFO: State changed: IFACE_DOWN -> IFACE_REQUEST_UP
0000040353 [net.ifapi] INFO: Netif wl3 state UP
0000040402 [system.nm] INFO: State changed: IFACE_REQUEST_UP -> IFACE_UP
0000040479 [ncp.rltk.client] INFO: Try to connect to ssid: XXXXXXXXXXXX
0000040553 [net.lwip_rltk] INFO: is_promisc_enabled
0000040607 [net.lwip_rltk] INFO: get_eap_phase
0000040856 [net.lwip_rltk] INFO: netif_post_sleep_processing TODO
0000045413 [net.lwip_rltk] INFO: get_eap_phase
0000045715 [net.lwip_rltk] INFO: get_eap_phase
0000045951 [net.ifapi] INFO: Netif wl3 link UP, profile=XXXXXXXXX
0000046030 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0048260 [system] INFO: Starting handshake: presense_announce=0
0000048327 [comm.protocol.handshake] INFO: Establish secure connection
0000048401 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000051134 [comm.protocol.handshake] INFO: Sending HELLO message
0000120947 [comm.coap] ERROR: CoAP message timeout; ID: 1
0000121005 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0000121073 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0000121281 [system] WARN: Internet3.118#5684
0000123025 [system] INFO: Cloud socket connected
0000123075 [system] INFO: Starting handshake: presense_announce=0
0000123142 [comm.protocol.handshake] INFO: Establish secure connection
0000123217 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000125949 [comm.protocol.handshake] INFO: Sending HELLO message
0000207757 [comm.coap] ERROR: CoAP message timeout; ID: 2
0000207815 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0

What method were you using for setup?

I'm wondering if Device Restore followed by Web Based Setup might do the trick.

Hey! In the Device Doctor Advanced Options there is now an option to select the Wi-Fi antenna (internal, external, or leave unchanged). This option is only present on the P2 and Photon 2. Swap it to internal and report back!

Hi both, thanks for the feedback.

Firstly, I tried Device Doctor again and selected the "Advanced" option and set the WiFi antenna to internal and tried again. Sadly same results.

I've also tried the Device Restore / Web Based Setup and still no further forward.

Using the Web Based Setup - i've captured the logs.

Device is going in DFU: 0a10aced202194xxxxxxxxxx
The device is connected: 0a10aced202194xxxxxxxxxx
Reconnecting device: 0a10aced202194xxxxxxxxxx
The device is in DFU MODE: 0a10aced202194xxxxxxxxxx
Getting device: 0a10aced202194xxxxxxxxxx
Getting Device OS information for p2
Downloading binary: p2-bootloader@5.5.0.bin
Downloading binary: p2-prebootloader-part1@5.5.0.bin
Downloading binary: p2-system-part1@5.5.0.bin
Downloading binary: p2-tinker@5.5.0.bin
Updating modules over DFU
Updating module: p2-system-part1@5.5.0.bin
Updating module: p2-tinker@5.5.0.bin
Updating over DFU succeeded
Reconnecting device: 0a10aced202194xxxxxxxxxx
reconnected
Update device over control request
Reconnecting device: 0a10aced202194xxxxxxxxxx
Put the device in listening mode: 0a10aced202194xxxxxxxxxx
Updating module p2-prebootloader-part1@5.5.0.bin
Reconnecting device: 0a10aced202194xxxxxxxxxx
Put the device in listening mode: 0a10aced202194xxxxxxxxxx
Warn: Cannot put the device in listening mode: IN control transfer failed
Updating module p2-bootloader@5.5.0.bin

The process seems to get stuck at the p2-bootloader@5.5.0.bin - eventually the device stops responding and then resets and trys again.

Any more ideas?

BTW, i noticed on the forum another person is getting same problem?
Photon 2 - unable to setup - Cloud - Particle

Hi all,

The web set-up got a little further, which I was getting the other day. However it's telling me again I don't have permissions which is a little odd because I'm the admin for the account. I've attached a image.

Hi @Support - can you jump in here? I think it might be ideal to just send over a new PHN2.

@steve_c Please DM @Support and we'll get you a new device.

Im having exactly the same problem

When going through setup.particle.io

We weren't able to assign your device to the product, the problem occurred on our end. Please try again.

The browser console contains errors:

Failed to load resource: the server responded with a status of 403 () https://api.particle.io/v1/devices/[device id]

and in the network tab the response of the requests are:

{
    "error": "Permission Denied",
    "info": "I didn't recognize that device name or ID, try opening https://api.particle.io/v1/devices?access_token=undefined"
}

I then tried the device doctor and the device connects to a network but not to the cloud

0007081272 [system] INFO: Cloud: connecting
0007081283 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0007081298 [system] WARN: Failed to load session data from persistent storage
0007081308 [system] INFO: Discarding session data
0007081350 [system] TRACE: Resolving [device id].v5.udp.particle.io#5684
0007081531 [system] TRACE: Address type: 3
0007081539 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0007081553 [system] INFO: Cloud socket=0, connecting to 3.222.143.118#5684
0007081566 [system] TRACE: Cloud socket=0, connected to 3.222.143.118#5684
0007081578 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0007081592 [system] TRACE: Applying new keepalive interval now
0007081602 [system] INFO: Cloud socket connected
0007081612 [system] INFO: Starting handshake: presense_announce=0
0007081623 [comm.protocol.handshake] INFO: Establish secure connection
0007081640 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0007084436 [comm.protocol.handshake] INFO: Sending HELLO message
0007084448 [comm.coap] TRACE: Sending CoAP message
0007084456 [comm.coap] TRACE: CON POST /h size=39 token= id=87
0007089752 [comm.coap] TRACE: Retransmitting CoAP message; ID: 87; attempt 1 of 3
0007089765 [comm.coap] TRACE: Sending CoAP message
0007089777 [comm.coap] TRACE: CON POST /h size=39 token= id=87
0007099548 [comm.coap] TRACE: Retransmitting CoAP message; ID: 87; attempt 2 of 3
0007099559 [comm.coap] TRACE: Sending CoAP message
0007099566 [comm.coap] TRACE: CON POST /h size=39 token= id=87
0007116924 [comm.coap] TRACE: Retransmitting CoAP message; ID: 87; attempt 3 of 3
0007116937 [comm.coap] TRACE: Sending CoAP message
0007116946 [comm.coap] TRACE: CON POST /h size=39 token= id=87
0007159986 [comm.coap] ERROR: CoAP message timeout; ID: 87
0007159997 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0007160009 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0007162318 [service.ntp] TRACE: NTP time: 2023-12-01T14:27:56.655363Z
0007162329 [system] WARN: Internet available, cloud not reachable
0007162339 [system] WARN: Cloud handshake failed, code=-160
0007162603 [system] INFO: Cloud: disconnecting
0007162614 [system] INFO: Cloud: disconnected
0007162723 [system] INFO: Cloud: connecting
0007162734 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0007162748 [system] WARN: Failed to load session data from persistent storage
0007162764 [system] INFO: Discarding session data
0007162803 [system] TRACE: Resolving [device id].v5.udp.particle.io#5684
0007162962 [system] TRACE: Address type: 3
0007162969 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0007162981 [system] INFO: Cloud socket=0, connecting to 3.222.143.118#5684
0007162992 [system] TRACE: Cloud socket=0, connected to 3.222.143.118#5684
0007163003 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0007163015 [system] TRACE: Applying new keepalive interval now
0007163024 [system] INFO: Cloud socket connected
0007163034 [system] INFO: Starting handshake: presense_announce=0
0007163045 [comm.protocol.handshake] INFO: Establish secure connection
0007163058 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0007165840 [comm.protocol.handshake] INFO: Sending HELLO message
0007165852 [comm.coap] TRACE: Sending CoAP message
0007165859 [comm.coap] TRACE: CON POST /h size=39 token= id=88
0007171742 [comm.coap] TRACE: Retransmitting CoAP message; ID: 88; attempt 1 of 3
0007171755 [comm.coap] TRACE: Sending CoAP message
0007171766 [comm.coap] TRACE: CON POST /h size=39 token= id=88
0007179773 [comm.coap] TRACE: Retransmitting CoAP message; ID: 88; attempt 2 of 3
0007179788 [comm.coap] TRACE: Sending CoAP message
0007179796 [comm.coap] TRACE: CON POST /h size=39 token= id=88
0007203210 [comm.coap] TRACE: Retransmitting CoAP message; ID: 88; attempt 3 of 3
0007203221 [comm.coap] TRACE: Sending CoAP message
0007203227 [comm.coap] TRACE: CON POST /h size=39 token= id=88
0007242335 [comm.coap] ERROR: CoAP message timeout; ID: 88
0007242343 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0007242356 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0007242499 [service.ntp] TRACE: NTP time: 2023-12-01T14:29:18.799336Z
0007242510 [system] WARN: Internet available, cloud not reachable
0007242524 [system] WARN: Cloud handshake failed, code=-160
0007242782 [system] INFO: Cloud: disconnecting
0007242791 [system] INFO: Cloud: disconnected

repeating this forever blinking cyan and while restarting shortly red then green and than cyan again

(I've replaced the device id with [device id] in this post)

I'm having the same issue. Just received 2 new photon2's and I can't add them to my account where I already have one Photon2 setup and working. I've tried using CLI, setup.particle.io and the web console and they won't add to my account.

Web console message
image

Getting this message on the setup.particle.io site

We believe that a portion of a batch of Photon 2 devices was not completely onboarded to the Particle cloud when they were manufactured. Engineering is investigating the scope of the problem, and should be able to fix this from the cloud side, but I don't have an exact timeline for when this will be complete.

2 Likes

The devices belived to be affected should be fixed now, so if you set up again it should work.

1 Like

Hi @rickkas7,

Thanks for the message, I've just tried and its now working. My new Photon2 is now on-boarded to the cloud!

Thanks for everyone's help.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.