# Failed to launch app after AF update

**URL:** <https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070>\
**Category:** mangOH Red\
**Created:** [January 10, 2018, 9:21am UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070 "2018-01-10T09:21:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeset](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@Xeset](https://mangoh.discourse.group/u/Xeset)\
**Post date:** [January 10, 2018, 9:21am UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/1 "2018-01-10T09:21:13Z")

</div>

Hello

My app worked before updating to 17.11. Now I keep getting this error when I launch the app.

```
Jan 6 02:33:18 | supervisor[13570]/supervisor T=main | app.c CreateFileLink() 1485 | Could not stat file at '/sys/devices/i2c-0/0-0068/iio:device0/in_accel_scale'. No such file or directory
Jan 6 02:33:18 | supervisor[13570]/supervisor T=main | app.c CreateFileLink() 1588 | Failed to create link at '/sys/devices/i2c-0/0-0068/iio:device0/in_accel_scale' in app 'httpGet2'.

```

I believe these errors come from the sensorsComponent that I am reusing from the RedSensorToCloud app in [https://github.com/mangOH/mangOH](https://github.com/mangOH/mangOH).

Any idea how I can fix it and still be able to access the sensors? Thank you!

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [January 11, 2018, 9:27pm UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/2 "2018-01-11T21:27:23Z")

</div>

Are you using a WP85 module in your mangOH Red? If you run `lsmod`, do you see the `3-bmi160` and `4-bmi160-i2c` modules?

---

<div class="post-metadata">

**Author:** ![Xeset](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@Xeset](https://mangoh.discourse.group/u/Xeset)\
**Post date:** [January 13, 2018, 8:37am UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/3 "2018-01-13T08:37:40Z")

</div>

I am using a WP7502 and this is the output, doesn’t seem to have a 3-bmi160 or 4-bmi160-i2c

```
root@swi-mdm9x15:~# lsmod
Not tainted
softdog 2127 1 - Live 0xbf133000
xt_hl 1246 4 - Live 0xbf12f000
nf_conntrack_ipv6 9233 1 - Live 0xbf128000
nf_defrag_ipv6 13110 1 nf_conntrack_ipv6, Live 0xbf120000
ip6table_filter 1192 1 - Live 0xbf11c000
ip6_tables 10446 1 ip6table_filter, Live 0xbf115000
nf_conntrack_ipv4 14153 1 - Live 0xbf10d000
nf_defrag_ipv4 1405 1 nf_conntrack_ipv4, Live 0xbf109000
xt_tcpudp 2873 6 - Live 0xbf105000
ipv6 290588 16 nf_conntrack_ipv6,nf_defrag_ipv6,[permanent], Live 0xbf0a9000
xt_conntrack 2895 2 - Live 0xbf0a5000
nf_conntrack 67603 3 nf_conntrack_ipv6,nf_conntrack_ipv4,xt_conntrack, Live 0xbf08a000
iptable_filter 1248 1 - Live 0xbf086000
ip_tables 11230 1 iptable_filter, Live 0xbf07f000
x_tables 13448 7 xt_hl,ip6table_filter,ip6_tables,xt_tcpudp,xt_conntrack,iptable_filter,ip_tables, Live 0xbf076000
msm_sdcc 62586 0 - Live 0xbf060000
usb_storage 41365 0 - Live 0xbf04c000
sd_mod 29567 0 - Live 0xbf03f000
scsi_mod 133355 2 usb_storage,sd_mod, Live 0xbf00d000
unix 29432 929 - Live 0xbf000000
```

---

<div class="post-metadata">

**Author:** ![Xeset](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@Xeset](https://mangoh.discourse.group/u/Xeset)\
**Post date:** [January 13, 2018, 9:57am UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/4 "2018-01-13T09:57:21Z")

</div>

I tried again with my WP7607-1 and got the same errors. Running lsmod only gives me not tainted.

Perhaps the sensors directory has moved?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [January 13, 2018, 9:49pm UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/5 "2018-01-13T21:49:59Z")

</div>

You need to build and install the system based on the mangOH SDEF so that the bmi160 drivers are installed. See the mangOH getting started document.

---

<div class="post-metadata">

**Author:** ![Xeset](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@Xeset](https://mangoh.discourse.group/u/Xeset)\
**Post date:** [January 14, 2018, 1:32pm UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/6 "2018-01-14T13:32:08Z")

</div>

Thank you! That worked and solved my problem.

EDIT: It worked only with my 7502. I tried the 7607-1 and I got the same errors. lsmod shows

```
root@swi-mdm9x28:~# lsmod
    Tainted: G  
9_mangoh_red_dv5 8906 0 - Live 0xbf0bd000 (O)
4_bmi160_i2c 1427 0 - Live 0xbf0b9000 (O)
3_bmp280_i2c 2631 0 - Live 0xbf0b5000 (O)
3_bmi160 5516 1 4_bmi160_i2c, Live 0xbf0b0000 (O)
2_bmp280 9576 1 3_bmp280_i2c, Live 0xbf08f000 (O)
1_mt7697serial 8018 0 - Live 0xbf089000 (O)
1_mt7697q 20073 0 - Live 0xbf07f000 (O)
0_ltc294x 5690 0 - Live 0xbf07a000 (O)
0_iot_slot 14750 0 - Live 0xbf072000 (O)
0_cp2130 20447 1 1_mt7697q, Live 0xbf069000 (O)
0_bq24296 10900 0 - Live 0xbf062000 (O)

```

I’m using the toolchain here [https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-6,-d-,1-components](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-6,-d-,1-components)

---

<div class="post-metadata">

**Author:** ![Xeset](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@Xeset](https://mangoh.discourse.group/u/Xeset)\
**Post date:** [January 29, 2018, 4:38pm UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/7 "2018-01-29T16:38:27Z")

</div>

Anybody has any ideas? I am using the latest Release 7 toolchain and firmware and still encountering the same errors on my 7607-1. On the 7502 it’s working

---

<div class="post-metadata">

**Author:** ![Francis.duhaut](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/francis.duhaut/32/350_2.png) [@Francis.duhaut](https://mangoh.discourse.group/u/Francis.duhaut)\
**Post date:** [January 29, 2018, 6:25pm UTC](https://mangoh.discourse.group/t/failed-to-launch-app-after-af-update/1070/8 "2018-01-29T18:25:32Z")

</div>

Hello

Remove the toolchain :  
sudo rm -R /opt/swi/\*

Reinstall the toolchain for wp76 R7

Rebuild the legato

It’s ok for me.

Francis
