cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

twSocket_Create: getaddrinfo() failed: [Name or service not known]

KC_9903026
2-Guest

twSocket_Create: getaddrinfo() failed: [Name or service not known]

Hello Everyone,

 

 

How's everyone doing here!  I am new to wsems and I am having some issue with starting it.  It seems the problem is "SDK: twSocket_Create: getaddrinfo() failed: [Name or service not known]".   I am not sure what name or service is this warning message referring to.   Any help would be great.  Thanks.   

P.S I am on Ubuntu 18.04 and firewall is disabled.  Internet connection to outside is fine.   

 

axiomtek@axiomtek:~/microserver$ ./wsems
[FORCE] 2021-04-14 17:24:11,967 ./wsems: Initializing EMS ....
[FORCE] 2021-04-14 17:24:11,967 main: Using config file /home/axiomtek/microserver/etc/config.json
[WARN ] 2021-04-14 17:24:11,967 Main: Encryption is disabled on HTTP Server.
[WARN ] 2021-04-14 17:24:11,968 Main: Authentication is disabled on the HTTP Server.
[FORCE] 2021-04-14 17:24:11,968 httpServer: starting http server port=8000
[WARN ] 2021-04-14 10:24:11,968 SDK: SDK Version: 2.2.11
[WARN ] 2021-04-14 10:24:11,968 SDK: TLS Library: OpenSSL
[WARN ] 2021-04-14 10:24:11,968 SDK: TLS Library Version: 1.1.1c
[WARN ] 2021-04-14 10:24:11,969 SDK: twSocket_Create: getaddrinfo() failed: [Name or service not known]
[ERROR] 2021-04-14 10:24:11,969 SDK: twWs_Create: Error creating BSD socket to be used for the websocket
[ERROR] 2021-04-14 10:24:11,969 SDK: twApi_Initialize: Error creating websocket structure, retrying

My config.json

{
"ws_servers": [{
"host": "https://pp-2104141617f2.devportal.ptc.io",
"port": 8080
}],
"appkey": "DP:AQABAEKZzUS7bzJkOzz1n3nIejbi31QvE/WHOesDxa4ctgDxgpVucHEOtMJXdWFa7rROATCpU+T+lRKCFsPqiPFvAEiOlVoviSZWT649T9o",
"ws_connection": {
"encryption": "none",
"verbose": true
},
"auto_bind": [{
"name": "127.0.0.1",
"gateway": false,
"port": 8001
}],
"http_server": {
"host": "127.0.0.1",
"port": 8000,
"ssl": false,
"authenticate": false
},
"certificates": {
"validate": true,
"allow_self_signed": true
},
"data_security": {
"key_hash": "MdbtkSJ+iV4VzJh2/1gK/VSbllV85BCqEZdN/9emaZQ"

1 REPLY 1
tdixit
13-Aquamarine
(To:KC_9903026)

have you tried changing the port from 8080 to 8443 in ws_servers

Announcements

Top Tags