Solved
ERROR Connecting WS EMS on Raspberry Pi
Hi,
i want to install the WS EMS on my Raspberry Pi.
When I execute wsems, following error occurs:
~/microserver % sudo ./wsems [FORCE] 2018-09-05 08:51:01,119 ./wsems: Initializing EMS .... [FORCE] 2018-09-05 08:51:01,119 main: Using config file /home/nexiles/microserver/etc/config.json [WARN ] 2018-09-05 08:51:01,120 Main: Authentication is disabled on the HTTP Server. [FORCE] 2018-09-05 08:51:01,120 httpServer: starting http server port=8000 [WARN ] 2018-09-05 08:51:01,123 SDK: SDK Version: 2.1.2 [WARN ] 2018-09-05 08:51:01,123 SDK: TLS Library: OpenSSL [WARN ] 2018-09-05 08:51:01,123 SDK: TLS Library Version: 1.0.2l-fips [WARN ] 2018-09-05 08:51:01,123 SDK: FIPS Capable [WARN ] 2018-09-05 08:51:01,143 WsProxy::initialize: Certificate validation is disabled. [WARN ] 2018-09-05 08:51:01,143 WsProxy::initialize: Self signed certificates are enabled. [ERROR] 2018-09-05 08:51:01,146 SDK: twMap_Add: parse function returned null. 192.168.100.164:443-->[ERROR] 2018-09-05 08:51:01,150 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:11,152 SDK: twWs_Connect: Error trying to connect [ERROR] 2018-09-05 08:51:11,152 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:16,154 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:26,155 SDK: twWs_Connect: Error trying to connect [ERROR] 2018-09-05 08:51:26,155 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:31,156 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:41,158 SDK: twWs_Connect: Error trying to connect [ERROR] 2018-09-05 08:51:41,158 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:46,160 SDK: twStream_Delete: NULL Pointer passed in [ERROR] 2018-09-05 08:51:56,162 SDK: twWs_Connect: Error trying to connect [ERROR] 2018-09-05 08:51:56,163 SDK: twStream_Delete: NULL Pointer passed in [WARN ] 2018-09-05 08:52:01,166 Main: Unable to connect to server. Trying .booted config file [WARN ] 2018-09-05 08:52:01,167 WsEmsProxy::execute() : Server connection failed. Error Code: 201 [FORCE] 2018-09-05 08:52:06,180 Main: Shutdown signal received. Restarting .... [WARN ] 2018-09-05 08:52:16,209 SDK: sendCtlFrame: Not connected [WARN ] 2018-09-05 08:52:16,210 SDK: msgHandlerOnClose: WEBSOCKET CLOSED [WARN ] 2018-09-05 08:52:16,211 SDK: sendCtlFrame: Not connected [FORCE] 2018-09-05 08:52:16,213 ./wsems: Initializing EMS .... [FORCE] 2018-09-05 08:52:16,214 main: Using config file /home/nexiles/microserver/etc/config.json.booted [WARN ] 2018-09-05 08:52:16,215 Main: Authentication is disabled on the HTTP Server. [FORCE] 2018-09-05 08:52:16,216 httpServer: starting http server port=8000 [WARN ] 2018-09-05 08:52:16,219: SDK Version: 2.1.2 [WARN ] 2018-09-05 08:52:16,219: TLS Library: OpenSSL [WARN ] 2018-09-05 08:52:16,219: TLS Library Version: 1.0.2l-fips [WARN ] 2018-09-05 08:52:16,219: FIPS Capable [WARN ] 2018-09-05 08:52:16,223 WsProxy::initialize: Certificate validation is disabled. [WARN ] 2018-09-05 08:52:16,223 WsProxy::initialize: Self signed certificates are enabled. [ERROR] 2018-09-05 08:52:16,225: twMap_Add: parse function returned null. 192.168.100.164:443-->[ERROR] 2018-09-05 08:52:16,228: twStream_Delete: NULL Pointer passed in
This is my config file:
{
"ws_servers": [{
"host": "192.168.100.164",
"port": 443
}],
"appKey": "********-****-****-****-************",
"http_server": {
"use_default_certificate" : true,
"ssl" : true,
"authenticate" : false
},
"certificates": {
"validate": false,
"allow_self_signed": true
},
"ws_connection": {
"encryption": "none",
"verbose": false
}
}
Does anyone know how i could fix this problem?
Thanks!

