Unexpected server response: -6 (LE_FAULT) and crash on redServerToCloud


#1

Attempting to run redServerToCloud after downloading from github and recompiling. It crashes, and the log entries that are in red are below. The root cause seems to be this log entry:

DispatchToServer() 713 | Client (uid 1029 ‘appredSensorToCloud’, pid 9014) disagrees with server (uid 0 ‘root’, pid 939) on protocol ID of service 'redS

Is there a re-registration or re-load step that is needed after changing the code for an app?
Or is there a chmod or chown step needed on some files after grabbing code from the github repo?

Some background:
In the past I was able to connect to airVantage, start redSensorToCloud, and see data at the airVantage dashboard. I wanted to modify the code for my own purpose, and so downloaded the master branch from the github /Mangoh/redSensorToCloud repo. To make it compile I had to temporarily remove references to ma_led.api which did not resolve, but I did get a clean build. However on trying to “app start redSensorToCloud” I see the crash and logs below.

Jul 5 11:05:57 | serviceDirectory[678]/serviceDirectory T=main | serviceDirectory.c DispatchToServer() 713 | Client (uid 1029 ‘appredSensorToCloud’, pid 9014) disagrees with server (uid 0 ‘root’, pid 939) on protocol ID of service 'redS
Jul 5 11:05:57 | UNKNOWN[9014]/framework T=main | LE_FILENAME ReceiveSessionOpenResponse() 684 | Unexpected server response: -6 (LE_FAULT).
Jul 5 11:05:57 | posDaemon[939]/posDaemon T=main | le_pos.c PosCtrlCloseSessionEventHandler() 1071 | SessionRef (0x7f581244) has been closed
Jul 5 11:05:57 | supervisor[665]/supervisor T=main | proc.c proc_SigChildHandler() 2035 | Process ‘redSensorToCloud’ (PID: 9014) has exited with exit code 1.
Jul 5 11:05:57 | supervisor[665]/supervisor T=main | app.c app_SigChildHandler() 3378 | Process ‘redSensorToCloud’ in app ‘redSensorToCloud’ faulted: Ignored.
Jul 5 11:05:57 | _appStopClient[9015]/framework T=main | LE_FILENAME CreateSocket() 550 | Socket opened as standard i/o file descriptor 2!
Jul 5 11:05:57 | supervisor[665]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘redSensorToCloud’ has stopped.