Hi,
We have a node application that runs on multiple MTCAP-LEU1 (firmware v1.7.4) as a custom app. But now we’re having problems when installing it on a MTCAP-L4E1 (firmware v5.0.1-AEP) using deviceHQ.
I can see that the app files were downloaded in /var/config/app/app-name but the application is not running automatically after restarting the gateway. It works as expected on MTCAP-LEU1 (v1.7.4) and we didn’t change the code.
I can run the app manually with the following commands:
./Start start
sudo ./Start start
sudo app-manager --command start --appid <APPID>
Output of sudo app-manager --command status:
{
"Apps" :
[
{
"AppDescription" : "...",
"AppId" : "<APPID>",
"AppInfo" : "Installed by -",
"AppName" : "app-name",
"AppType" : "CUSTOM",
"AppVersion" : "8.3",
"AppVersionNotes" : "...",
"Enabled" : true,
"status" : null
}
]
}
Output of sudo app-manager --command list-installed:
{
"Apps" : []
}
Logs in /var/logs/messages:
annexcd: [INFO] delivery_agent.cc:RunnableCore:3437: sending active apps
annexcd: [INFO] mts_device_interface.cc:getActiveApps:541: Node-red disabled so skipping node-red apps
after-switch-inet: restarting annex client
APPMANAGER: AppCommand::executeStatus: Getting app statuses
APPMANAGER: AppCommand::getBasePathFor: unknown app type. Defaulting to custom
APPMANAGER: AppCommand::executeStatus: can't read pid as a string, trying as number:#012 in Json::Value::asCString(): requires stringV
APPMANAGER: Exiting with success status
annexcd: [ERR] delivery_agent.cc:FillActiveApps:1042: field [status] missing from ActiveApp - skipping
annexcd: [INFO] delivery_agent.cc:SendActiveApps:987: Sending Active Apps data
Permissions of the custom app files:
-rwxrwxrwx 1 root root
Permissions of the config file:
-rw-r--r-- 1 root root
And I can see our application in the list of custom apps in the gateway UI (custom apps are enabled).
Any ideas on how to solve this problem?
Thanks,
Rafael