Raspberry Pi connection with thingworx, Web socket Initialization failed, Response 502
I am trying to follow the guide in the connect section of the thing work. developer to connect the raspberry pi,
while setting up the EMS and executing it, I get the following error
pi@raspberrypi:~/Desktop/microserver $ ./wsems
[FORCE] 2020-04-17 09:20:04,121 ./wsems: Initializing EMS ....
[FORCE] 2020-04-17 09:20:04,121 main: Using config file /home/pi/Desktop/microserver/etc/config.json
[INFO ] 2020-04-17 09:20:04,121 ./wsems: Creating the WsEms proxy.
[INFO ] 2020-04-17 09:20:04,122 ./wsems: Starting HTTP Server.
[WARN ] 2020-04-17 09:20:04,122 Main: Encryption is disabled on HTTP Server.
[WARN ] 2020-04-17 09:20:04,122 Main: Authentication is disabled on the HTTP Server.
[INFO ] 2020-04-17 09:20:04,122 ./wsems: Initializing the ThingWorx REST interface.
[FORCE] 2020-04-17 09:20:04,122 httpServer: Initializing the ThingWorx8080
[INFO ] 2020-04-17 09:20:04,123 wsEmsProxy::initialize: FIPS is disabled.
[INFO ] 2020-04-17 09:20:04,123 wsEmsProxy::initialize: Encryption is enabled on Web Socket connection.
[WARN ] 2020-04-17 14:50:04,124 SDK: SDK Version: 2.2.0
[WARN ] 2020-04-17 14:50:04,125 SDK: TLS Library: OpenSSL
[WARN ] 2020-04-17 14:50:04,125 SDK: TLS Library Version: 1.0.2l-fips
[WARN ] 2020-04-17 14:50:04,125 SDK: FIPS Capable
[ERROR] 2020-04-17 14:50:04,244 SDK: twStream_CreateFromFile: error opening file: /opt/thingworx/subscribed_properties.bin
[ERROR] 2020-04-17 14:50:04,244 SDK: subscribedPropsMgr_Initialize: Error opening: /opt/thingworx/subscribed_properties.bin
[INFO ] 2020-04-17 09:20:04,244 WsProxy::initialize: EMS Version 5.4.5.512
[INFO ] 2020-04-17 09:20:04,244 WsProxy::initialize: twApi singleton initialized
[WARN ] 2020-04-17 09:20:04,244 WsProxy::initialize: Certificate validation is disabled.
[INFO ] 2020-04-17 09:20:04,245 wsEmsProxy::initialize: Initialization complete!
[INFO ] 2020-04-17 09:20:04,247 ./wsems: Starting the connection.
pp-19022819274p.portal.ptc.io:443-->[ERROR] 2020-04-17 14:50:15,118 SDK: twWs_Connect: Timed out trying to connect
[ERROR] 2020-04-17 14:50:24,363 SDK: twWs_Connect: Error initializing web socket. Response code: 502
I am using this config.json
{
"ws_servers": [{
"host": "pp-19022819274p.portal.ptc.io",
"port": 443
}],
"appKey": "4e84018a-03e2-49ff-884d-e65d7067d80f",
"http_server" : {
"host": "127.0.0.1",
"port": 8080,
"use_default_certificate" : true,
"ssl" : false,
"authenticate" : false
},
"logger":{
"level":"INFO"
},
"certificates":{
"validate": false
}
}

