Hello,
I’am currently trying to publish some MQTT data with an FX30 CAT M modem but encounter some issue…
I’am using the SDK for FX30-CATM (Release 15.1.0.004 + Legato 21.05.0) and built a very small system:
#include "$LEGATO_ROOT/default.sdef"
apps:
{
mqttClient
}
appSearch:
{
$CURDIR/apps/mqttClient/
}
interfaceSearch:
{
}
The mqttClient API application is a copy from the SDK source : legato-af/apps/platformServices/mqttClient at master · legatoproject/legato-af · GitHub
But any other application using this API seems to not start (no message printed), I guess there is a problem with the API.
If I restart the API manually, i get this:
$ app start mqttClient
root@192.168.2.2's password:
There was an error. Application 'mqttClient' could not be started.
Check the system log for error messages.
And the log:
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c app_Start() 3589 | Starting app 'mqttClient'
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/dev/log' to '/legato/systems/current/appsWriteable/mqttClient/dev/log': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/dev/null' to '/legato/systems/current/appsWriteable/mqttClient/dev/null': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/dev/zero' to '/legato/systems/current/appsWriteable/mqttClient/dev/zero': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/dev/urandom' to '/legato/systems/current/appsWriteable/mqttClient/dev/urandom': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/lib/liblegato.so' to '/legato/systems/current/appsWriteable/mqttClient/lib/liblegato.so': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/ld-linux.so.3' to '/legato/systems/current/appsWriteable/mqttClient/lib/ld-linux.so.3': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libc.so.6' to '/legato/systems/current/appsWriteable/mqttClient/lib/libc.so.6': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libpthread.so.0' to '/legato/systems/current/appsWriteable/mqttClient/lib/libpthread.so.0': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/librt.so.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/librt.so.1': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libdl.so.2' to '/legato/systems/current/appsWriteable/mqttClient/lib/libdl.so.2': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libgcc_s.so.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/libgcc_s.so.1': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libm.so.6' to '/legato/systems/current/appsWriteable/mqttClient/lib/libm.so.6': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/usr/lib/libstdc++.so.6' to '/legato/systems/current/appsWriteable/mqttClient/lib/libstdc++.so.6': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/lib/libresolv.so.2' to '/legato/systems/current/appsWriteable/mqttClient/lib/libresolv.so.2': Already exists
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so.1.0' to '/legato/systems/current/appsWriteable/mqttClient/l
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libcrypto.so.1.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/lib
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libssl.so.1.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/libssl
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libComponent_mqttClientService.so' to '/legato/systems/current/appsWriteable/m
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so.1' to '/legato/systems/current/appsWriteable/mqttClient/lib
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so' to '/legato/systems/current/appsWriteable/mqttClient/lib/l
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/bin/mqttClientService' to '/legato/systems/current/appsWriteable/mqttClient/bin/mq
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libcrypto.so.1.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/lib
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libssl.so.1.1' to '/legato/systems/current/appsWriteable/mqttClient/lib/libssl
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so' to '/legato/systems/current/appsWriteable/mqttClient/lib/l
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so.1' to '/legato/systems/current/appsWriteable/mqttClient/lib
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2202 | Skipping file link '/legato/systems/current/apps/mqttClient/read-only/lib/libpaho-mqtt3cs.so.1.0' to '/legato/systems/current/appsWriteable/mqttClient/l
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | app.c CreateDirLink() 2094 | Skipping directory link '/etc/ssl' to '/legato/systems/current/appsWriteable/mqttClient/etc/ssl': Already exists
Feb 25 09:14:14 fx30 user.err Legato: =ERR= | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2160 | Could not stat file at '/usr/lib/libcrypto.so.1.0.2'. No such file or directory
Feb 25 09:14:14 fx30 user.err Legato: =ERR= | supervisor[9560]/supervisor T=main | app.c CreateFileLink() 2277 | Failed to create link at '/usr/lib/libcrypto.so.1.0.2' in app 'mqttClient'.
Feb 25 09:14:14 fx30 user.err Legato: =ERR= | supervisor[9560]/supervisor T=main | app.c app_Start() 3621 | Failed to set Smack rules or set up app area.
Feb 25 09:14:14 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | supervisor.c SigChildHandler() 885 | Reaping unconfigured child process 9905.
Feb 25 09:14:28 fx30 user.info Legato: INFO | supervisor[9560]/supervisor T=main | supervisor.c HandleRebootExpiry() 633 | Expired reboot timer
Any idea on how to fix theses errors ?