# How is the legato application roll back triggered ? How to prevent it?

**URL:** <https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891>\
**Category:** WP Series\
**Tags:** legato\
**Created:** [September 14, 2022, 5:20pm UTC](https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891 "2022-09-14T17:20:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adithyakalyan.bh](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@adithyakalyan.bh](https://forum.sierrawireless.com/u/adithyakalyan.bh)\
**Post date:** [September 14, 2022, 5:20pm UTC](https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891/1 "2022-09-14T17:20:03Z")

</div>

HI

We are observing that the application developed and installed into the sierra wireless module with the developer studio is prone to rollback to its golden backup when there is any error with the current application. We are aware that it is by design it has been incorporated to prevent device being bricked due to random application error. But is there a way to avoid this roll back, is this roll back triggered externally or by the legato itself.

1.Is there possibility to initiate this rollback as a request via uart from an external controller?

2.This roll back is initiated when a certain error in the application where AT commands are processed ,when these errors are repeated for 3 times in our case, the roll back happens, is it something defined by the legato frame work ?

1. So this roll back if controlled only by legato frame work, how is it triggered by the number of time a error is repeated (3time in our case) or any predefined timeout period before which the legato expects some acknowledgement from the application ?

thanks  
adithya

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 15, 2022, 1:23am UTC](https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891/2 "2022-09-15T01:23:32Z")

</div>

" is there a way to avoid this roll back?" \>\>\> You can mark the system to be good, or build your applications to the legato.cwe

1. have you tried to mark to system to be bad or reboot during the probation period (30 mins)?

> **[update - Legato Docs](https://docs.legato.io/latest/toolsTarget_update.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

> **[Updates - Legato Docs](https://docs.legato.io/latest/conceptsUpdates.html#conceptsUpdates_Process)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

1. “This roll back is initiated when a certain error in the application where AT commands are processed”, what AT command did you enter actually?

2. you can see here:  
[Updates - Legato Docs](https://docs.legato.io/latest/conceptsUpdates.html#conceptsUpdates_Rollback)

---

<div class="post-metadata">

**Author:** ![adithyakalyan.bh](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@adithyakalyan.bh](https://forum.sierrawireless.com/u/adithyakalyan.bh)\
**Post date:** [September 15, 2022, 5:05pm UTC](https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891/3 "2022-09-15T17:05:09Z")

</div>

thanks for your reponse.

1. Could you please share documentation for building the application to legato.cwe  
and How to mark the application as good or bad ?

2. AT+GMM , and other Network related commands whereafter three tries the application rolls back. (We are incorporating errors in these commands purposely to experiment on this behaviour)

thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [September 15, 2022, 11:02pm UTC](https://forum.sierrawireless.com/t/how-is-the-legato-application-roll-back-triggered-how-to-prevent-it/27891/4 "2022-09-15T23:02:26Z")

</div>

to build application to legato.cwe, you can see here:

> **[Flash size wp7607](https://forum.legato.io/t/flash-size-wp7607/3805/34)**
>
> hi @jyijyi, Thanks for your help earlier. I was able to build and file using make wp76xx command. Also I was to add myCustom.adef file and build separately with command: mkapp -t wp76xx apps/sample/myApp/myCustom.adef Now, I am trying to add...

to mark system good or bad, you can see here:

> **[update - Legato Docs](https://docs.legato.io/latest/toolsTarget_update.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development
