Solved
Unable to start EMS using wsems
I have a Thingworx foundation server and am trying to get the EMS started on the same machine, but am having some trouble. These are the steps I have followed:
1. I installed MED-61060-CD-053_SP5_Microserver-5-3-4-2383-Win32
2. I configured the config.json file with this (the app key is from my ThingWorx application key😞
{
"ws_servers": [{
"host": "localhost",
"port": 8080
}],
"appKey": "c03fa7e6-ab2f-47bd-9b0b-3d93e2bd03c9"
"ws_servers": [{
"host": "localhost",
"port": 8080
}],
"appKey": "c03fa7e6-ab2f-47bd-9b0b-3d93e2bd03c9"
}
3. When I try to start ems using wsems, I get this output:
[INFO ] 2020-04-17 03:44:43,187 wsems: Using config file: C:\ems\microserver\etc\config.json
[FORCE] 2020-04-17 03:44:43,187 wsems: Starting up ....
[FORCE] 2020-04-17 03:44:43,187 wsems: Initializing EMS ....
[FORCE] 2020-04-17 03:44:43,187 main: Using config file C:\ems\microserver\etc\config.json
[FORCE] 2020-04-17 03:44:43,192 httpServer: starting http server port=8000
[FORCE] 2020-04-17 03:44:43,187 wsems: Starting up ....
[FORCE] 2020-04-17 03:44:43,187 wsems: Initializing EMS ....
[FORCE] 2020-04-17 03:44:43,187 main: Using config file C:\ems\microserver\etc\config.json
[FORCE] 2020-04-17 03:44:43,192 httpServer: starting http server port=8000
localhost:8080-->[ERROR] 2020-04-17 03:44:43,202 httpserver: Server socket error
: Couldn't bind address [*:8000]
[ERROR] 2020-04-17 03:44:44,242 SDK: Error intializing socket connection. Err = -1
[ERROR] 2020-04-17 03:44:44,242 SDK: twWs_Connect: Error restarting socket. Error 0
: Couldn't bind address [*:8000]
[ERROR] 2020-04-17 03:44:44,242 SDK: Error intializing socket connection. Err = -1
[ERROR] 2020-04-17 03:44:44,242 SDK: twWs_Connect: Error restarting socket. Error 0
What do I do to fix this?
Adrian

