Tutorial - Connect Raspberry Pi to ThingWorx: Error connection lua to EMS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Tutorial - Connect Raspberry Pi to ThingWorx: Error connection lua to EMS
Hi together,
despite some issues with the Tutorial for guides/thingworx-raspberry-pi-quickstart (full configuration examples of config.json, config.lua are incomplete regarding ssl settings) I got my EMS up and running and connecting successfully to my Thingworx Development Trial environment. Also the LUA part is initializing everything fine up to the point when it's trying to "registerEdgeThing":
... exempt from luaScriptResource.log
[TRACE] 2018-07-20 08:11:40,927 PiThing: Calling registerEdgeThing. currently registered: false
[DEBUG] 2018-07-20 08:11:40,928 thingworx.server: Invoking /Thingworx/Things/LocalEms/Services/AddEdgeThing on server. content: {"keepalive":60000,"port":"8001","timeout":15000,"host":"localhost","proto":"http","name":"*PiThing","path":"/scripts/Thingworx"}
[TRACE] 2018-07-20 08:11:40,928 luaBindings:newRapClient: Found RAP at localhost:8080
[TRACE] 2018-07-20 08:11:40,928 luaBindings: Got RAP timeout: 5000
[TRACE] 2018-07-20 08:11:40,928 luaRapBindings: Self Signed certificates are enabled for the RAP conneciton.
[TRACE] 2018-07-20 08:11:40,928 luaRapBindings: Certificate validation is disabled for the RAP conneciton.
[DEBUG] 2018-07-20 10:11:40,929 SDK: twTlsClient_Create: Initializing TLS Client
where its getting stuck. For me this looks like the error descriped in Unable to bind Remote properties using Lua Script Resource even when the Remote Things is connected in EMS 5.4.0 .
Does anyone know where I can download an older version of EMS for RaspberryPi to check if this solves the problem ?
For further reference please find attached my relevant configuration and log files.
Solved! Go to Solution.
- Labels:
-
Connectivity
-
Troubleshooting
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I fixed the connection issue by applying the minimal Security connection settings between LSR und EMS according to ems_wsems_security_minimal (thanks mneumann for the link to the insecure connection example which lead me to the solution).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The newer versions of the EMS / LSR have security tightened, so SSL connectivity is enabled by default.
Older versions can be downloaded via the download portal: https://support.ptc.com/appserver/cs/software_update/swupdate.jsp
You can also try to configure the "Insecure Configuration" example for the EMS / LSR as in the Help Center:
However, if I remember correctly insecure connections do also not work with the 5.4.0 release - so either go with 5.3 or a newer 5.4 release.
I hope this helps...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I fixed the connection issue by applying the minimal Security connection settings between LSR und EMS according to ems_wsems_security_minimal (thanks mneumann for the link to the insecure connection example which lead me to the solution).
