Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Same problem i am facing
My server is https://PP-18102412130W.devportal.ptc.io/Thingworx
and i am able to connect my EMS to this.
My config.json file is:
{
"ws_servers": [{
"host": "pp-18102412130w.devportal.ptc.io",
"port": 443
}],
"appKey": "5d6d4f8c-320b-4c1e-8bbc-5747c0742379",
"certificates": {
"validate": false,
"cert_chain": ["certificate.cer"]
},
"logger": {
"level":"INFO",
"publish_directory":"logs",
"publish_level":"INFO",
"max_file_storage":2000000,
"auto_flush":true,
"flush_chunk_size": 16384,
"buffer_size" : 4096
},
"file": {
"virtual_dirs": [
{"logs": "logs"},
{"instruction":"instruction"}
],
"staging_dir": "C:\\Projects\\PTCDocs\\PTC_Work\\EMS\\microserver\\staging"
}
}
and i am getting the following error:
C:\Projects\PTCDocs\PTC_Work\EMS\microserver>wsems
[INFO ] 2018-10-26 12:12:35,468 wsems: Using config file: C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[FORCE] 2018-10-26 12:12:35,468 wsems: Starting up ....
[FORCE] 2018-10-26 12:12:35,480 wsems: Initializing EMS ....
pp-18102412130w.devportal.ptc.io:443-->[FORCE] 2018-10-26 12:12:35,480 main: Using config file C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[INFO ] 2018-10-26 12:12:35,480 wsems: Creating the WsEms proxy.
[INFO ] 2018-10-26 12:12:35,480 wsems: Starting HTTP Server.
[INFO ] 2018-10-26 12:12:35,480 wsems: Initializing the ThingWorx REST interface.
[FORCE] 2018-10-26 12:12:35,481 httpServer: starting http server port=8000
[INFO ] 2018-10-26 12:12:35,498 wsEmsProxy::initialize: Initialization complete!
[INFO ] 2018-10-26 12:12:35,499 wsems: Starting the connection.
[ERROR] 2018-10-26 12:12:35,811 SDK: Error intializing SSL connection
[ERROR] 2018-10-26 12:12:35,811 SDK: twWs_Connect: Error restarting socket. Error 126
Please help...!!!
Hello.
I am reaching out to the server team to restart this server and we'll see if that clears the problem.
Thank you,
-- Craig A.
Hi,
Could you go to the below URL and post a screen shot of this page when logged into your account:
https://developer.thingworx.com/profile/hosting
Thank you,
-- Craig A.
Hello.
I have received confirmation that the server has been restarted, and I was able to get to the login prompt. Go ahead and give it a try.
Should this recur, take a look at the below page when looked in to your account and see if the server is shown in a 'stopped' condition, and try to start it from there first. The servers do shut down after a period of inactivity, and this is the place to try to get them back up from that.
https://developer.thingworx.com/profile/hosting
Thank you,
-- Craig A.
Hi,
After logging in I started the server again and it is showing running but still getting the same error when starting the EMS.
C:\Projects\PTCDocs\PTC_Work\EMS\microserver>wsems
[INFO ] 2018-10-29 13:52:20,821 wsems: Using config file: C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[FORCE] 2018-10-29 13:52:20,821 wsems: Starting up ....
[FORCE] 2018-10-29 13:52:20,831 wsems: Initializing EMS ....
[FORCE] 2018-10-29 13:52:20,831 main: Using config file C:\Projects\PTCDocs\PTC_Work\EMS\microserver\etc\config.json
[INFO ] 2018-10-29 13:52:20,831 wsems: Creating the WsEms proxy.
[INFO ] 2018-10-29 13:52:20,831 wsems: Starting HTTP Server.
[INFO ] 2018-10-29 13:52:20,831 wsems: Initializing the ThingWorx REST interface.
[FORCE] 2018-10-29 13:52:20,832 httpServer: starting http server port=8084
[INFO ] 2018-10-29 13:52:20,849 wsEmsProxy::initialize: Initialization complete!
[INFO ] 2018-10-29 13:52:20,850 wsems: Starting the connection.
pp-18102412130w.devportal.ptc.io:443-->[ERROR] 2018-10-29 13:52:21,201 SDK: Error intializing SSL connection
[ERROR] 2018-10-29 13:52:21,201 SDK: twWs_Connect: Error restarting socket. Error 126
[ERROR] 2018-10-29 13:52:26,516 SDK: Error intializing SSL connection
[ERROR] 2018-10-29 13:52:26,516 SDK: twWs_Connect: Error restarting socket. Error 126
[ERROR] 2018-10-29 13:52:31,834 SDK: Error intializing SSL connection
[ERROR] 2018-10-29 13:52:31,835 SDK: twWs_Connect: Error restarting socket. Error 126
Thanks and regards
Saurabh kr singh.
Hello.
Have you tried disabling SSL and just connecting over HTTP? Was that successful? Then we'll know if it's perhaps a problem with the certificates.
Thanks!
-- Craig A.