# Error starting redSensorToCloud \[Solved\]

**URL:** <https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849>\
**Category:** mangOH Red\
**Created:** [August 21, 2018, 8:19pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849 "2018-08-21T20:19:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@drew](https://mangoh.discourse.group/u/drew)\
**Post date:** [August 21, 2018, 8:19pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/1 "2018-08-21T20:19:44Z")

</div>

I’m working with a brand new mangOH Red with WP7702 and using the Getting Started Guide. Everything goes smoothly until I get to starting app redSensorToCloud. Here is the message and log output:

```
root@swi-mdm9x28-wp:~# app start redSensorToCloud
There was an error. Application 'redSensorToCloud' could not be started.
Check the system log for error messages.

```

and

```
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c app_Create() 2735 | Creating app 'redSensorToCloud'
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process 'redSensorToCloud'. Assuming 'ignore'.
Aug 21 16:37:40 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[800]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Aug 21 16:37:40 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[800]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c app_Start() 2926 | Starting app 'redSensorToCloud'
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/log'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/null' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/null'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/dev/zero' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6'.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so' to '/legato/systems/current/appsWriteabl
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so' to '/legato/systems/current/appsWrit
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud' to '/legato/systems/current/appsWriteable/redSensorToClo
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at '/sys/devices/platform/led.0/led'. No such file or directory
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.
Aug 21 16:37:40 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[800]/supervisor T=main | app.c app_Start() 2954 | Failed to set Smack rules or set up app area.
Aug 21 16:37:40 swi-mdm9x28-wp user.info Legato: INFO | supervisor[800]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 2417.

```

Module legato version:

```
root@swi-mdm9x28-wp:~# cat /legato/systems/current/version
18.07.0-1-g08a6111d_24ede1e68c9c00f9d3e26ebb9d7d44eb

```

Dev env legato version:

```
mangoh@mangoh-vm:~/legato_framework$ cat legato/version
18.07.0-1-g08a6111d

```

Dev env mangOH version:

```
mangoh@mangoh-vm:~/mangOH$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
mangoh@mangoh-vm:~/mangOH$ git branch
* master
mangoh@mangoh-vm:~/mangOH$ git rev-parse HEAD
36e8895afd79bb5cb9853d4b4f1a7667bf6a2492

```

mangOH.sdef:

```
mangoh@mangoh-vm:~/mangOH$ cat mangOH.sdef | grep kernel | grep led
    $CURDIR/linux_kernel_modules/led/led
mangoh@mangoh-vm:~/mangOH$ cat mangOH.sdef | grep apps | grep led
    $MANGOH_ROOT/apps/LedService/ledService

```

This seems to be the same issue that 4 or 5 others had in this [unresolved post](https://mangoh.discourse.group/t/redsensortocloud-wont-start/1501) from May.

Is there a solution or work-around yet?

I’ve tried various forms of rebuilding without the ledService or without the led kernel module, however, the build always fails due to dependency issues.

Thanks,

---

<div class="post-metadata">

**Author:** ![drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@drew](https://mangoh.discourse.group/u/drew)\
**Post date:** [August 24, 2018, 5:34pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/2 "2018-08-24T17:34:32Z")

</div>

Are any WP77xx users able to get past this issue? At the very least, it would be helpful to know if the mangOH/legato tools are broken or if this is simply an isolated issue with me and the other users from the linked post.

---

<div class="post-metadata">

**Author:** ![hposhtiw](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@hposhtiw](https://mangoh.discourse.group/u/hposhtiw)\
**Post date:** [September 4, 2018, 3:39pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/3 "2018-09-04T15:39:24Z")

</div>

I am running into the same issue as reported by Drew. Any help to resolve this would be appreciated.  
…  
[stopped] tools  
[stopped] voiceCallService  
[stopped] wifi  
[stopped] wifiApTest  
[stopped] wifiClientTest  
[running] wifiService  
[stopped] wifiWebAp  
[stopped] LapiliMqttClient  
[running] LapiliMqttService  
[running] redSensorToCloud  
root@swi-mdm9x28-wp:/sys/devices/platform# app restart redSensorToCloud  
There was an error. Application ‘redSensorToCloud’ could not be started.  
Check the system log for error messages.  
root@swi-mdm9x28-wp:/sys/devices/platform# app stop redSensorToCloud  
root@swi-mdm9x28-wp:/sys/devices/platform# app start redSensorToCloud  
There was an error. Application ‘redSensorToCloud’ could not be started.  
Check the system log for error messages.  
root@swi-mdm9x28-wp:/sys/devices/platform#

Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c app\_Start() 2926 | Starting app ‘redSensorToCloud’  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so’: Already exist  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libgcc\_s.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc\_s.so.1’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6’: Already exists  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent\_sensorsComponent.so’ to '/legato/systems/current/appsWriteab  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent\_avPublisherComponent.so’ to '/legato/systems/current/appsWri  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1549 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToCl  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c app\_Start() 2954 | Failed to set Smack rules or set up app area.  
Sep 4 15:20:31 | supervisor[779]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 31082.

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [September 4, 2018, 5:30pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/4 "2018-09-04T17:30:24Z")

</div>

> [@hposhtiw](#):
>
> Sep 4 15:20:31 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory

can you show us what you have in /opt/swi and lsmod output on target?  
Also, what is the module, firmware revision (cm info) on the target?

---

<div class="post-metadata">

**Author:** ![dmocci](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dmocci](https://mangoh.discourse.group/u/dmocci)\
**Post date:** [September 6, 2018, 2:46am UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/5 "2018-09-06T02:46:56Z")

</div>

Hi! I’m facing the same issue…

I’m using the MangOH RED with WP7702 module:

Device: WP7702  
IMEI: 352653090005265  
IMEISV: 2  
FSN: VU749185080102  
Firmware Version: SWI9X06Y\_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12  
Bootloader Version: SWI9X06Y\_02.16.06.00 7605a6 jenkins 2018/06/20 17:56:12  
MCU Version: 002.009  
PRI Part Number (PN): 9907365  
PRI Revision: 001.004  
Carrier PRI Name: GENERIC  
Carrier PRI Revision: 001.028\_001  
SKU: 1103530  
Last Reset Cause: Power Down  
Resets Count: Expected: 16 Unexpected: 4

LOG :  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c app\_Create() 2716 | Creating app ‘redSensorToCloud’  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process ‘redSensorToCloud’. Assuming ‘ignore’.  
Sep 6 02:41:55 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[793]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section  
Sep 6 02:41:55 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[793]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction ‘’ in proc section  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/log’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/log’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/null’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/null’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/dev/zero’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/lib/liblegato.so’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so’: Already exist  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/ld-linux.so.3’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libc.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libpthread.so.0’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/librt.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libdl.so.2’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libgcc\_s.so.1’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc\_s.so.1’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/lib/libm.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/usr/lib/libstdc++.so.6’ to ‘/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6’: Already exists  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent\_sensorsComponent.so’ to '/legato/systems/current/appsWriteab  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent\_avPublisherComponent.so’ to '/legato/systems/current/appsWri  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1535 | Skipping file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToCl  
Sep 6 02:41:55 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory  
Sep 6 02:41:55 swi-mdm9x28-wp user.err Legato: =ERR= | supervisor[793]/supervisor T=main | app.c CreateFileLink() 1610 | Failed to create link at ‘/sys/devices/platform/led.0/led’ in app ‘redSensorToCloud’.  
Sep 6 02:41:55 swi-mdm9x28-wp user.info Legato: INFO | supervisor[793]/supervisor T=main | supervisor.c SigChildHandler() 783 | Reaping unconfigured child process 8058.

Please can you tell me how to proceed?  
Thanks!  
Diego.

---

<div class="post-metadata">

**Author:** ![MelvinWiegman](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@MelvinWiegman](https://mangoh.discourse.group/u/MelvinWiegman)\
**Post date:** [September 6, 2018, 8:08am UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/6 "2018-09-06T08:08:49Z")

</div>

I’m also having the same issue with the MangOH RED and WP7702 module and firmware version 9.1.

Followed the getting started online documentation from step 7.1.2.  
The start of redSensorToCloud service where the same log message shows up

Sep 5 16:10:49 | supervisor[779]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/devices/platform/led.0/led’. No such file or directory

If i use the 9.0 version and refollow the build proces this problem does not occur.

Any possible cause?

Thanks in advice!

Melvin

---

<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:** [September 6, 2018, 4:07pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/7 "2018-09-06T16:07:07Z")

</div>

Thanks @MelvinWiegman! I think you have figured it out. The latest WP77 release is 9.1, but the latest version of the mangOH VM includes the WP77 toolchain for WP77 release 9.0.

I’m working on updating the VM now. If you want to avoid having to download the VM again, you can do the following:

1. download the 64-bit toolchain from here: [https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-latest-release-components/](https://source.sierrawireless.com/resources/airprime/software/wp77xx/wp77xx-firmware-latest-release-components/)
2. Run `chmod a+x ~/Downloads/poky-swi-ext-glibc-x86_64-meta-toolchain-swi-armv7a-neon-toolchain-swi-SWI9X06Y_02.18.05.00.sh`
3. Run `sudo ./Downloadspoky-swi-ext-glibc-x86_64-meta-toolchain-swi-armv7a-neon-toolchain-swi-SWI9X06Y_02.18.05.00.sh`
4. Type `/opt/swi/y22-ext-SWI9X06Y_02.18.05.00` as the destination directory
5. Update the wp77xx symlink by running: `cd /opt/swi && sudo ln -f -s -T y22-ext-SWI9X06Y_02.18.05.00 y22-ext-wp77xx`
6. Close your terminal and open a new one to make sure that any environment variables (set by running `cfglegato`) are eliminated

---

<div class="post-metadata">

**Author:** ![drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@drew](https://mangoh.discourse.group/u/drew)\
**Post date:** [September 6, 2018, 8:35pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/8 "2018-09-06T20:35:56Z")

</div>

Thank you @MelvinWiegman and @dfrey! I just finished updating my toolchain and MangOH Red WP7702 with the instructions above. Errors are gone and data is being sent to AirAdvantage dashboard - very cool!

Thanks again.

---

<div class="post-metadata">

**Author:** ![mallets](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mallets](https://mangoh.discourse.group/u/mallets)\
**Post date:** [September 8, 2018, 12:37pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/9 "2018-09-08T12:37:07Z")

</div>

Well, I downloaded the VM linked in the getting started page today (new devkit), and I am getting the same led file error. This is on a **WP7608** , which doesn’t have a Version 9.1 (latest is 9). So is this error due to the VM being updated?

`Jan 6 00:29:27 swi-mdm9x28 user.err Legato: =ERR= | supervisor[2942]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.`

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [September 8, 2018, 1:53pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/10 "2018-09-08T13:53:43Z")

</div>

Use v9.0 firmware for now if you don’t want to update your VM. We will provide an updated VM for 9.1 or you can update based on the steps provided above

---

<div class="post-metadata">

**Author:** ![sinugi](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sinugi](https://mangoh.discourse.group/u/sinugi)\
**Post date:** [September 9, 2018, 2:11pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/11 "2018-09-09T14:11:15Z")

</div>

got my mangOH Red with WP7702 yesterday, and facing same error with redSensorToCloud app.  
After updated the toolchain the sensor data can publish to AirVantage.

Thanks Dfrey and all, this forum really help.

Next is to play with GPIO, any suggest where to start?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [September 9, 2018, 2:32pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/12 "2018-09-09T14:32:02Z")

</div>

Browse through [github.com/mangoh](http://github.com/mangoh)

---

<div class="post-metadata">

**Author:** ![hposhtiw](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@hposhtiw](https://mangoh.discourse.group/u/hposhtiw)\
**Post date:** [September 16, 2018, 4:36pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/13 "2018-09-16T16:36:40Z")

</div>

Hi All,

I am using WP7702 which came wih mangOH red,  
I updated the VM with the latest tool chain as described by dfrey

I still get the errors below

Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1619 | Created file link ‘/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud’ to '/legato/systems/current/appsWriteable/redSensorToClo  
**Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1507 | Could not stat file at ‘/sys/bus/i2c/devices/4-0068/iio:device0/in\_accel\_scale’. No such file or directory**  
**Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c CreateFileLink() 1624 | Failed to create link at ‘/sys/devices/i2c-0/0-0068/iio:device0/in\_accel\_scale’ in app ‘redSensorToCloud’.**  
Sep 14 17:42:20 | supervisor[786]/supervisor T=main | app.c app\_Start() 2954 | Failed to set Smack rules or set up app area.

Here is the output of the cfglegato command

## ``` **mangoh@mangoh-vm** : **~** $ cfglegato Configuring shell for Legato development ```

**[wp85]** Toolchain dir = /opt/swi/y17-ext-wp85/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
 prefix = arm-poky-linux-gnueabi-  
 sysroot = /opt/swi/y17-ext-SWI9X15Y\_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi  
 kernelroot = /opt/swi/y17-ext-SWI9X15Y\_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel  
**[wp750x]** Toolchain dir = /opt/swi/y17-ext-wp750x/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
 prefix = arm-poky-linux-gnueabi-  
 sysroot = /opt/swi/y17-ext-SWI9X15Y\_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi  
 kernelroot = /opt/swi/y17-ext-SWI9X15Y\_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel  
**[wp76xx]** Toolchain dir = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
 prefix = arm-poky-linux-gnueabi-  
 sysroot = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi  
 kernelroot = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
**[wp77xx]** Toolchain dir = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
 prefix = arm-poky-linux-gnueabi-  
 sysroot = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi  
 kernelroot = /opt/swi/SWI9X06Y\_02.18.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel

Did I miss anything ?  
I would appreciate your response.

---

<div class="post-metadata">

**Author:** ![drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@drew](https://mangoh.discourse.group/u/drew)\
**Post date:** [September 18, 2018, 5:59pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/14 "2018-09-18T17:59:55Z")

</div>

@hposhtiw

I’m out of town and don’t have access to my mangoh setup, but I’ll take a look when I get back and compare it to my setup and response here to see if I have any differences.

---

<div class="post-metadata">

**Author:** ![iotenginyers](https://avatars.discourse-cdn.com/v4/letter/i/73ab20/32.png) [@iotenginyers](https://mangoh.discourse.group/u/iotenginyers)\
**Post date:** [April 19, 2019, 6:55pm UTC](https://mangoh.discourse.group/t/error-starting-redsensortocloud-solved/1849/16 "2019-04-19T18:55:24Z")

</div>

I tried again with the solution and now works. Thanks.
