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

./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

EMS is stable running and not disconnecting anymore when using the LRS.

 

Still a problem in the LRS for connecting to the Thingworx server. The Thingworx server cannot connect with the LRS for creating a new handler.

 

DEBUG: The Thingworx server invokes AddEdgeThing on the server.

DEBUG: HTTPCLient: Error initiatizing a TLS stream

ERROR: The HTTPClient initialized an exception while opening a connection request to local.host.on 8080.

ERROR: LuaBindings: httppost: Error postng to httpserver

 

 

 

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Hi,

I am also facing the same problem whenever I try to start the LSR the EMS becomes unstable and LSR is stuck at that point. Did you find a way to fix this?

 

Thanks,

Kartik

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Hi,

I am also facing the same problem whenever I try to start the LSR the EMS becomes unstable and LSR is stuck at that point.

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Did you try the reverse DNS solution given in this thread?

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Yes, I have tried reversing the IP address but it didnt work. Attached are my Lua and EMS files 

EMS 

{
"ws_servers": [{
"host": "pp-1802081344qn.portal.ptc.io",
"port": 80
}],
"http_server": {
"host": "97.99.88.10",
"port": 8080,
"ssl": false,
"authenticate": false
},
"appKey": "4f9470b2-8522-4438-919b-96935e924e82",
"logger": {
"level": "DEBUG"
},
"auto_bind":[{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed": true
},
"ws_connection": {
"encryption": "none",
"verbose": true,
"msg_timeout": 1000
}
}

 

LSR

scripts.log_level = "INFO"
scripts.script_resource_ssl = false
scripts.script_resource_authenticate = false
scripts.PiThing = {
file = "thing.lua",
template = "PiTemplate",
scanRate = 1000,
taskRate = 30000
}

scripts.rap_host = "97.99.88.10"
scripts.rap_port = 8080

 

Could you tell me is there any error in the code 

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

they have changed the documentation and the new docs are in place.. i will try doing this in 3-4 hrs time and let you know.

 

Meanwhile my suggestion to you is to have a quick hands on Java or C SDK. that is much easy to use and gives you complete control over the remote thing.

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Thanks for the reply could I get any documentation for the Java and C SDK so that I can get handson experience.

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

Hey,

 

Did you try and resolve the problem of running LSR? I'm still hanging at :Creating a new handler. Please let me know if you find the solution.

 

Thank you!

Re: ./luaScriptResource hangs on thingworx.handler: Creating a new handler.

I gave this a try, changing the config files to localhost gives me the same behavior as before unfortunately. The difference I see though with your output in your first reply was the line HTTP Server: 127.0.0.1 - SeqId 6 - "" 400 375 "-" Mine says nearly the same thing, but gives me HTTP Server: 0.0.0.0 - SeqId 6 ...  I am not sure why I am getting 0.0.0.0 in that line. Do you see something I might be missing in my above config files?