Error starting redSensorToCloud on mangOH red

#1

Hi,

Today I tried to run the redSensorToCloud example on my mangOH red. I followed all the directions and was able to succesfully compile and load the app on the target: my mangOH red board + WP7607-1.

Unfortunately when I try to start the app I receive the following error:

Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Create() 3167 | Creating app 'redSensorToCloud'
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetFaultAction() 323 | No fault action specified for process 'redSensorToCloud'. Assuming 'ignore'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | proc.c GetWatchdogAction() 359 | redSensorToCloud watchdogAction '' in proc section
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Start() 3380 | Starting app 'redSensorToCloud'
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/log'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/null' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/null'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/dev/zero' to '/legato/systems/current/appsWriteable/redSensorToCloud/dev/zero'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/liblegato.so'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/ld-linux.so.3'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libc.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libpthread.so.0'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/librt.so.1'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libdl.so.2'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libgcc_s.so.1'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libm.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/redSensorToCloud/lib/libstdc++.so.6'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_sensorsComponent.so' to '/legato/systems/current/appsWriteabl
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/lib/libComponent_avPublisherComponent.so' to '/legato/systems/current/appsWrit
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2064 | Created file link '/legato/systems/current/apps/redSensorToCloud/read-only/bin/redSensorToCloud' to '/legato/systems/current/appsWriteable/redSensorToClo
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 1952 | Could not stat file at '/sys/devices/platform/led.0/led'. No such file or directory
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c CreateFileLink() 2069 | Failed to create link at '/sys/devices/platform/led.0/led' in app 'redSensorToCloud'.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | app.c app_Start() 3412 | Failed to set Smack rules or set up app area.
Jan  6 00:02:46 | supervisor[836]/supervisor T=main | supervisor.c SigChildHandler() 784 | Reaping unconfigured child process 2086.

I have seen the same problem raised here: Error starting redSensorToCloud [Solved]
I tried the solution proposed by dfrey. Unfortunately, this did not seem to solve my problem. Since I’m out of ideas at this point I would appreciate it if someone could help me, since it is blocking me from continuing development.

For your convenience, I have added some more information:

My /opt/swi folder:

mangoh@mangoh-vm:/opt/swi$ ls
SWI9X07Y_02.25.02.01          y22-ext-wp76xx
y22-ext-SWI9X06Y_02.18.05.00  y22-ext-wp76xx-Release_10.1
y22-ext-SWI9X07Y_02.18.06.00  y22-ext-wp77xx
y22-ext-SWI9X07Y_02.25.02.01  y22-ext-wp77xx-Release_9.1
y22-ext-SWI9X15Y_07.13.05.00  y22-ext-wp85
y22-ext-wp750x                y22-ext-wp85-wp750x-Release_16.1
mangoh@mangoh-vm:/opt/swi$ 

Legato AF version:

mangoh@mangoh-vm:~/legato_framework$ cat legato/version
18.10.3

Legato target version:

root@swi-mdm9x28-wp:~# legato version
18.10.3_0b50331a9f4d0ecc0fd816c2a1300436_modified
root@swi-mdm9x28-wp:~# 

Any help is appreciated. Greetings, Stefan

0 Likes

#2

Output for ls /opt/swi/y22-ext-wp76xx -lha:

mangoh@mangoh-vm:~/legato_framework$ ls /opt/swi/y22-ext-wp76xx -lha
lrwxrwxrwx 1 root root 28 Mar 18 15:32 /opt/swi/y22-ext-wp76xx -> y22-ext-SWI9X07Y_02.25.02.01
0 Likes

#3

Nobody has a solution? I will unfortunately have to cancel the project if this is not solved :confused:

0 Likes

#4

A painful process I know - but perhaps it’s worth re-running through the build process (effectively a full rebuild) with a careful eye on current/correct/matching versions and on any faults thrown during any of the intermediary steps. (I have personally not encountered this issue).

Best of luck.

0 Likes

#5

Hi, thank you for your answer.

By a full rebuild, do you mean a rebuild of the MangOH VM or a rebuild of the redSensorToCloud application?

0 Likes

#6

I would recommend a full rebuild - ensuring you have the most recent versions/releases.
While I did not encounter your issue I had others and this process resolved them for me.

I rebuilt using the latest, Legato Distro 18.10.3 and for me the WP77xx and double-checking all matching versions. Carefully eyeballing the output of every build/make/compile step to ensure no errors were thrown that I had missed before moving on to the next step.

0 Likes

#7

I will try that, thanks for the suggestion. Any advice on how to make sure I have the most recent versions / releases of everything? I am new to linux and legato has been quite the learningcurve to say the least.

Other thing to notice, it has only been this specific app that has been causing issues. All the other examples seem to run fine. I am just really worried that if I can not fix this error it will become a problem in a later stage of development.

0 Likes