Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi,
I followed the instructions on https://developer.thingworx.com/en/resources/guides/thingworx-raspberry-pi-quickstart/configure-ems
I got a error after ./wsem: Starting the connection which is:
Main: Unable to connect to server. Trying .booted config file
followed by other errors eg 110 as shown.
Solved! Go to Solution.
Hi @hujingrui.
The config.json you provided appears to be incomplete. For example, since you're running SSL, there needs to be a valid certificate. That is not indicated in your config. Note that the example in the documentation you are following is not complete.
If you have a support account, you might consider opening a case to review your configuration for correcting the issue. You may also want to check the Help Center for more information.
Regards.
--Sharon
Can you upload more of the log file along with your config.json file
I am starting to think it might be a subsystem issue. I cannot access or http://123.123.123.31:443/Thingworx/WS even http://123.123.123.31:443/Thingworx/WS on browser.
Is there a place in thingworx composer where i can find this information?
Previously i have similiar issue for anomaly detection: http://123.123.123.31:8091/training but that issue is solved but seems to be down again now. Are the microservices running together backend? ie all services either run or stops together. if so, it might be the issue.
Hi @hujingru.
Are you sure there isn't a port issue? In the url you provided: http://123.123.123.31:443/Thingworx/WS, the protocol (http) is unsecured but the port of 443 is the default port for SSL. So I would expect your url to be this: https://123.123.123.31/Thingworx/WS (443 is the default, therefore it's not necessary to include it). However, in your config, you indicated SSL was "false" so perhaps the correct url would be something like this:
http://123.123.123.31/Thingworx/WS
http://123.123.123.31:8080/Thingworx/WS
Regards.
--Sharon
oh yes. that was just an example that i could not access.
I could access e.g https://123.123.123.31/Thingworx
but not
https://123.123.123.31/Thingworx/WS
as it shows
404 Page Not Found
Am i suppose to see something on https://123.123.123.31/Thingworx/WS??
I am not sure what i am suppose to see.
In this case, is the port for my thingworx server set up properly for ems to connect to?
Hi @hujingru.
Can you provide the full config.json for our review? You can mask any sensitive information before sending.
Regards.
--Sharon
Here is my full config.json file. The log files are as shown in the comments above.
I am suspecting it might be server side problem. any recommandations?
Hi @hujingrui.
The config.json you provided appears to be incomplete. For example, since you're running SSL, there needs to be a valid certificate. That is not indicated in your config. Note that the example in the documentation you are following is not complete.
If you have a support account, you might consider opening a case to review your configuration for correcting the issue. You may also want to check the Help Center for more information.
Regards.
--Sharon
Hi @hujingrui.
If the previous response helped to resolve your issue, please mark it as the Accepted Solution for the benefit of others on the community. If you are still having issues, please provide your updated config.json so we can take another look.
Regards.
--Sharon
log file is as follows.
error is as attached
{
"ws_servers": [{
"host": "123.123.123.31",
"port": 443
}],
"appKey": "xxxxxxxxxx......",
"http_server" : {
"host": "127.0.0.1",
"port": 8080,
"use_default_certificate" : true,
"ssl" : false,
"authenticate" : false
},
"logger":{
"level":"INFO"
},
"certificates":{
"validate": false
}
}