# Safe mode updater aborted. What causes this?

**URL:** <https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461>\
**Category:** Firmware\
**Created:** [November 15, 2017, 7:42pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461 "2017-11-15T19:42:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 15, 2017, 7:42pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/1 "2017-11-15T19:42:08Z")

</div>

Hello,  
One of the P1 was stuck in this mode while updating firmware. I want to understand what causes this behavior. The logs are below:

event: spark/safe-mode-updater/aborted  
data: {“data”:“Too many tries”,“ttl”:60,“published\_at”:“2017-11-15T04:00:01.841Z”,“coreid”:“particle-internal”}

When I try to update it, here’s the sequence:  
event: spark/flash/status  
data: {“data”:"started ",“ttl”:60,“published\_at”:“2017-11-15T19:46:58.651Z”,“coreid”:“3b0045001851363034353731”}

## –

event: spark/flash/status  
data: {“data”:"success ",“ttl”:60,“published\_at”:“2017-11-15T19:47:11.275Z”,“coreid”:“3b0045001851363034353731”}

## –

event: spark/status  
data: {“data”:“online”,“ttl”:60,“published\_at”:“2017-11-15T19:47:17.477Z”,“coreid”:“3b0045001851363034353731”}

## –

event: spark/device/last\_reset  
data: {“data”:“user”,“ttl”:60,“published\_at”:“2017-11-15T19:47:17.673Z”,“coreid”:“3b0045001851363034353731”}

## –

event: spark/status/safe-mode  
data: {“data”:"{“f”:[],“v”:{},“p”:8,“m”:[{“s”:16384,“l”:“m”,“vc”:30,“vv”:30,“f”:“b”,“n”:“0”,“v”:11,“d”:[]},{“s”:262144,“l”:“m”,“vc”:30,“vv”:30,“f”:“s”,“n”:“1”,“v”:108,“d”:[]},{“s”:262144,“l”:“m”,“vc”:30,“vv”:30,“f”:“s”,“n”:“2”,“v”:108,“d”:[{“f”:“s”,“n”:“1”,“v”:108,"_":""}]},{“s”:131072,“l”:“m”,“vc”:30,“vv”:26,“u”:“EDABB18CC251C402F982FB41118BF0D6AABEABF03B6EE5995544CA7B52A21604”,“f”:“u”,“n”:“1”,“v”:4,“d”:[{“f”:“s”,“n”:“2”,“v”:109,"_":""}]},{“s”:131072,“l”:“f”,“vc”:30,“vv”:0,“d”:[]}]}",“ttl”:60,“published\_at”:“2017-11-15T19:47:18.957Z”,“coreid”:“3b0045001851363034353731”}

## –

event: spark/device/app-hash  
data: {“data”:“EDABB18CC251C402F982FB41118BF0D6AABEABF03B6EE5995544CA7B52A21604”,“ttl”:60,“published\_at”:“2017-11-15T19:47:18.958Z”,“coreid”:“3b0045001851363034353731”}

Thanks  
Dheeraj

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [November 17, 2017, 2:49pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/2 "2017-11-17T14:49:20Z")

</div>

Does it eventually return to breathing cyan?

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 17, 2017, 9:10pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/3 "2017-11-17T21:10:34Z")

</div>

No. It stays in safe mode.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [November 18, 2017, 1:34pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/4 "2017-11-18T13:34:06Z")

</div>

Is the electron physically accessible?

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 22, 2017, 11:14pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/5 "2017-11-22T23:14:34Z")

</div>

No. It’s not. It’s a P1.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [November 22, 2017, 11:27pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/6 "2017-11-22T23:27:47Z")

</div>

Can you place the P1 in safe mode and flash your code?

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 22, 2017, 11:33pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/7 "2017-11-22T23:33:08Z")

</div>

I don’t have access to the setup and reset buttons. It’s already in safe mode.

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 22, 2017, 11:33pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/8 "2017-11-22T23:33:43Z")

</div>

Update on this:

After reboot and update I get the following:

event: spark/flash/status  
data: {“data”:"started ",“ttl”:60,“published\_at”:“2017-11-22T23:32:51.138Z”,“coreid”:“56003a000351353532373238”}

## –

event: spark/flash/status  
data: {“data”:"success ",“ttl”:60,“published\_at”:“2017-11-22T23:32:54.147Z”,“coreid”:“56003a000351353532373238”}

## –

event: spark/status  
data: {“data”:“online”,“ttl”:60,“published\_at”:“2017-11-22T23:32:58.555Z”,“coreid”:“56003a000351353532373238”}

## –

event: spark/device/last\_reset  
data: {“data”:“user”,“ttl”:60,“published\_at”:“2017-11-22T23:32:58.717Z”,“coreid”:“56003a000351353532373238”}

## –

event: spark/device/diagnostics/update  
data: {“data”:"{“service”:{“device”:{“status”:“unsupported”},“coap”:{“round\_trip”:83},“cloud”:{“uptime”:1,“publish”:{“sent”:1}}}}",“ttl”:60,“published\_at”:“2017-11-22T23:32:59.890Z”,“coreid”:“56003a000351353532373238”}

## –

event: spark/status/safe-mode  
data: {“data”:"{“f”:[],“v”:{},“p”:8,“m”:[{“s”:16384,“l”:“m”,“vc”:30,“vv”:30,“f”:“b”,“n”:“0”,“v”:11,“d”:[]},{“s”:262144,“l”:“m”,“vc”:30,“vv”:30,“f”:“s”,“n”:“1”,“v”:108,“d”:[]},{“s”:262144,“l”:“m”,“vc”:30,“vv”:30,“f”:“s”,“n”:“2”,“v”:108,“d”:[{“f”:“s”,“n”:“1”,“v”:108,"_":""}]},{“s”:131072,“l”:“m”,“vc”:30,“vv”:26,“u”:“FE72813D59AC3968E854B9C0C621DCF54BB43B54BEFA3EF6611D8861D656B2FA”,“f”:“u”,“n”:“1”,“v”:4,“d”:[{“f”:“s”,“n”:“2”,“v”:109,"_":""}]},{“s”:131072,“l”:“f”,“vc”:30,“vv”:0,“d”:[]}]}",“ttl”:60,“published\_at”:“2017-11-22T23:32:59.993Z”,“coreid”:“56003a000351353532373238”}

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [November 22, 2017, 11:34pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/9 "2017-11-22T23:34:07Z")

</div>

> [@dheerajdake](#):
>
> event: spark/device/diagnostics/update  
> data: {"data":"{"service":{"device":{"status":"unsupported"},"coap":{"round\_trip":83},"cloud":{"uptime":1,"publish":{"sent":1}}}}","ttl":60,"published\_at":"2017-11-22T23:32:59.890Z","coreid":"56003a000351353532373238"}

This is something I have never seen before.

---

<div class="post-metadata">

**Author:** ![jaza\_tom](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/jaza_tom/32/11323_2.png) [@jaza\_tom](https://community.particle.io/u/jaza_tom)\
**Post date:** [November 23, 2017, 4:47pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/10 "2017-11-23T16:47:36Z")

</div>

There is another thread dealing with same issue:

See here:

> [@Strange new event appearing in my photons](https://community.particle.io/t/strange-new-event-appearing-in-my-photons/37645?source_topic_id=37688):
>
> {"data":"{\"service\":{\"device\":{\"status\":\"unsupported\"},\"coap\":{\"round\_trip\":105},\"cloud\":{\"uptime\":1,\"publish\":{\"sent\":1}}}}","ttl":60,"published\_at":"2017-11-21T18:41:52.760Z","coreid":"24XXXXXXXXXXXXXXXXXXXXXXXXX","name":"spark/device/diagnostics/update"} The photons are both running 0.6.3 firmware. This event started appearing this morning and occurs apparently spontaneously as well as on powerup. The photon appear to be functioning as expected otherwise. Anyone know what…

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [November 23, 2017, 4:49pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/11 "2017-11-23T16:49:10Z")

</div>

Particle is on Thanksgiving break. These strange messages will be explained when they return and my understanding is that they are nothing to panic about. 😉

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [December 4, 2017, 6:17pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/12 "2017-12-04T18:17:54Z")

</div>

Any updates on this?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [December 4, 2017, 11:14pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/13 "2017-12-04T23:14:44Z")

</div>

@rickkas7

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [December 5, 2017, 12:33am UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/14 "2017-12-05T00:33:46Z")

</div>

Your devices tried to safe mode update too many times and failed, and so they hit a safety flag that prevented more retries.

My guess is that your firmware or hardware is preventing the device from maintaining a stable, reliable connection, and is causing the safe mode updates to fail. I can clear this flag for your devices, or you can plug in your devices and update them manually over the wire as well.

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![dheerajdake](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dheerajdake](https://community.particle.io/u/dheerajdake)\
**Post date:** [December 5, 2017, 7:17pm UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/15 "2017-12-05T19:17:34Z")

</div>

Thanks Dave for this. I messaged you the device IDs of the P1 which ended up in this state. Please clear the flags for these devices.

Thanks  
Dheeraj

---

<div class="post-metadata">

**Author:** ![twospoons](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@twospoons](https://community.particle.io/u/twospoons)\
**Post date:** [February 8, 2018, 10:11am UTC](https://community.particle.io/t/safe-mode-updater-aborted-what-causes-this/37461/16 "2018-02-08T10:11:26Z")

</div>

I had an infield photon device doing the same thing: every OTA update attempt dropped back into safe mode.  
This is code that is working just fine on at least 50 identical pieces of hardware, so something must have corrupted the initial OTA update.

However I managed to fix it. Some time back I was having issues with the OTA updates taking too long, so I wrote a tiny program that does nothing but connect to the cloud and wait forever. Loading this in OTA broke out of the safe mode loop, and I was then able to successfully upload the proper firmware.

Lucky - this problem unit is literally on the other side of the planet from me.
