Error launching EMS on Raspberry Pi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Error launching EMS on Raspberry Pi
Using the example config.json from https://developer.thingworx.com/resources/guides/thingworx-raspberry-pi-quickstart/configure-ems with my hosted instance and generated appKey I get the following error when executing "sudo ./wsems"
[FORCE] 2018-03-26 14:34:17,302 ./wsems: Initializing EMS ....
[FORCE] 2018-03-26 14:34:17,302 main: Using config file /home/pi/thingworx/microserver/etc/config.json
[INFO ] 2018-03-26 14:34:17,302 ./wsems: Creating the WsEms proxy.
[INFO ] 2018-03-26 14:34:17,302 ./wsems: Starting HTTP Server.
[INFO ] 2018-03-26 14:34:17,302 Main: Using custom certificate and private key for HTTP Server
[ERROR] 2018-03-26 14:34:17,303 Main: Failed to get HTTP Server ssl configuration.
[FORCE] 2018-03-26 14:34:17,303 Main: Exiting....
[DEBUG] 2018-03-26 14:34:17,303 jsonConfigurator::~jsonConfigurator: Deleting JSON object
Solved! Go to Solution.
- Labels:
-
Connectivity
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try with this:
"ws_servers": [{
"host": "pp-1802071422as.devportal.ptc.io",
"port": 443
}],
"http_server": {
"host": "127.0.0.1",
"port": 8080,
"ssl": false,
"authenticate": false
},
"appKey": "990d0f05-c17f-4416-aa07-beefd1e61b50",
"logger": {
"level": "DEBUG"
},
"auto_bind": [{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed":true
},
"ws_connection": {
"encryption": "ssl",
"verbose": true,
"msg_timeout": 1000
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Seems to be issue with HTTP Server Configuration in config.json file.
Could you please provide me the config.json file so that i can review at my end and see if there is something incorrect in the file?
Thanks,
Himesh Rajpal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
as I said it's the sample config:
{
"ws_servers": [{
"host": "pp-1802071422as.devportal.ptc.io",
"port": 443
}],
"http_server": {
"host": "127.0.0.1",
"port": 8080
},
"appKey": "990d0f05-c17f-4416-aa07-beefd1e61b50",
"logger": {
"level": "DEBUG"
},
"auto_bind": [{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed":true
},
"ws_connection": {
"encryption": "ssl",
"verbose": true,
"msg_timeout": 1000
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try with this:
"ws_servers": [{
"host": "pp-1802071422as.devportal.ptc.io",
"port": 443
}],
"http_server": {
"host": "127.0.0.1",
"port": 8080,
"ssl": false,
"authenticate": false
},
"appKey": "990d0f05-c17f-4416-aa07-beefd1e61b50",
"logger": {
"level": "DEBUG"
},
"auto_bind": [{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed":true
},
"ws_connection": {
"encryption": "ssl",
"verbose": true,
"msg_timeout": 1000
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It is working for me, Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
i tried it but its not working in my case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Could you please share your config.json file?
Regards
Gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @eifinger
Just wanted to follow up to see if your question has been answered. If so, please indicate Accepted Solution for the benefit of all of our Community users. If not, please let us know your current status.
Thanks!
Leigh