# App uninstalled after rebooting WP module

**URL:** <https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658>\
**Category:** Legato Application Framework\
**Created:** [September 6, 2017, 11:35am UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658 "2017-09-06T11:35:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 6, 2017, 11:35am UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/1 "2017-09-06T11:35:03Z")

</div>

Hi all,

My app is removed from target device every time I reboot the device. If I install it on device, it’s up and running properly. But it’s missing if I reboot the device.

This app uses a service provided by another user app. But if I modify the helloWorld sample app to use the same service, the helloWorld app remains installed even after rebooting. I am confused. The misbehaving app uses merely the functions from le\_gpio.api. Cannot come up with any cause.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [September 6, 2017, 4:11pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/2 "2017-09-06T16:11:14Z")

</div>

Try running `legato status` at various times to see the number of your system. If the number increments without you installing a new system then your system has probably rolled back.

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [September 6, 2017, 5:44pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/3 "2017-09-06T17:44:35Z")

</div>

Note that you can install the `devMode` app to almost disable the rollback feature, cf [Developer Mode - Legato Docs](http://legato.io/legato-docs/latest/basicTargetDevMode.html)

---

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 7, 2017, 12:12pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/4 "2017-09-07T12:12:56Z")

</div>

Solved.

I tried to reboot the board to see whether the number increments. It did increment even though I did not reinstall the system @dfrey. And I already installed **devMode** , but the rollback seems not to be disabled @CoRfr. I found the _gdbserver_ was not packed with **devMode** when **devMode** starts. This is solved by including the **devMode** tool in _default.adef_ and rebuilt the framework.

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [September 7, 2017, 5:50pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/5 "2017-09-07T17:50:33Z")

</div>

The fact that devMode is not shipped with the default.sdef is normal, but what I’m concerned is that it seems that your devMode app is not starting properly, which could cause the rollback.

Could you eventually provide some logs (like `logread | grep devMode` or something like that)?  
Also, the fact that `gdbserver` is not packaged with `devMode` wouldn’t be solved by adding that to the `default.sdef`.  
What’s more likely is that your toolchain is outdated/not matching your firmware version and does not ship `gdbserver`.

---

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 8, 2017, 8:18am UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/6 "2017-09-08T08:18:27Z")

</div>

Hi @CoRfr, You are right the `gdbserver` problem is not solved, here are logs when I restart the `devMode` app.

> Jan 6 00:21:06 | supervisor[470]/supervisor T=main | app.c app\_Stop() 2865 | Stopping app ‘devMode’  
> Jan 6 00:21:06 | devMode[798]/framework T=main | LE\_FILENAME TermSignalHandler() 561 | Terminated  
> Jan 6 00:21:07 | supervisor[470]/supervisor T=main | app.c HardKillApp() 1015 | Hard killing app ‘devMode’  
> Jan 6 00:21:08 | powerManagerService[838]/powerMgr T=main | le\_pm.c OnClientDisconnect() 210 | Releasing wakeup source ‘legato\_devModeApp\_798’ on behalf of pid 798.  
> Jan 6 00:21:08 | powerManagerService[838]/powerMgr T=main | le\_pm.c OnClientDisconnect() 218 | Deleting wakeup source ‘legato\_devModeApp\_798’ on behalf of pid 798.  
> Jan 6 00:21:08 | supervisor[470]/supervisor T=main | apps.c DeactivateAppContainer() 348 | Application ‘devMode’ has stopped.  
> Jan 6 00:21:08 | supervisor[470]/supervisor T=main | proc.c proc\_Start() 1234 | Starting process ‘devMode’ with pid 1199  
> Jan 6 00:21:08 | supervisor[1199]/supervisor T=main | proc.c proc\_Start() 1199 | Execing ‘devMode’  
> Jan 6 00:21:08 | powerManagerService[838]/powerMgr T=main | le\_pm.c le\_pm\_NewWakeupSource() 344 | Created new wakeup source ‘legato\_devModeApp\_1199’ for pid 1199.  
> Jan 6 00:21:08 | devMode[1199]/devMode T=main | devMode.c \_devMode\_COMPONENT\_INIT() 113 | ‘/bin/gdbserver’ has not been packaged with this app, usage of gdbCfg is not possible

The reason that I did not notice this is after reinstall the system including `devMode` in default.sdef, the rollback problem disappears. So I did not check if `devMode` starts properly again.

Regarding the toolchain, I installed the firmware by the combined image from [wpfirmwarerelease](https://source.sierrawireless.com/resources/legato/wpfirmwarerelease/) in the first place. Later I installed Legato 17.7.01 framework downloaded from [Legato Downloads](https://source.sierrawireless.com/resources/legato/downloads/) onto the board. It said on this site that

> Release 17.05, 17.06 & 17.07 Note: The Linux OS Source and Toolchains remain unchanged. Download the previous version (SWI9X15Y\_07.12.09.00, 32-bit Toolchain or 64-bit Toolchain) to get started with the 17.05, 17.06 & 17.07 Release of the Legato Platform.

So the toolchain should be up-to-date in my perspective.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [September 8, 2017, 3:23pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/7 "2017-09-08T15:23:24Z")

</div>

The first line of the logs you posted is “Stopping app ‘devMode’”. Was there something that happened in the logs previously that gives any indication why devMode is stopping? It seems like the supervisor is killing it.

---

<div class="post-metadata">

**Author:** ![lichen](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lichen](https://forum.legato.io/u/lichen)\
**Post date:** [September 8, 2017, 3:44pm UTC](https://forum.legato.io/t/app-uninstalled-after-rebooting-wp-module/2658/8 "2017-09-08T15:44:20Z")

</div>

I don’t think so. I restarted the devMode app so maybe that’s why this log  
is diaplayed.
