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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

LuaScriptResource error

AkshayKumar
10-Marble

LuaScriptResource error

Hi,

i have followed each step in Raspberrypi quickstart guide.,

after running "sudo ./luaScriptResource" ,, that message shown as

pi@raspberrypi:~/microserver $ sudo chmod 775 luaScriptResource

pi@raspberrypi:~/microserver $ sudo ./luaScriptResource

[INFO ] 2017-09-12 06:17:39,6 ./luaScriptResource: Using config file: /home/pi/microserver/etc/config.lua

[FORCE] 2017-09-12 06:17:39,7 ./luaScriptResource: Starting up ....

[INFO ] 2017-09-12 06:17:39,13 ./luaScriptResource: New path is /home/pi/microserver/etc/thingworx/clibs:/home/pi/microserver/etc/custom/clibs:/home/pi/microserver/etc/community/clibs:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

[INFO ] 2017-09-12 06:17:39,92 thingworx.shape: Creating a new shape.

[INFO ] 2017-09-12 06:17:39,93 PiThing: -- Configuration -------------------------------

[INFO ] 2017-09-12 06:17:39,94 PiThing: scanRate: 1000

[INFO ] 2017-09-12 06:17:39,96 PiThing: scanRateResolution: 500

[INFO ] 2017-09-12 06:17:39,96 PiThing: taskRate: 30000

[INFO ] 2017-09-12 06:17:39,96 PiThing: keepAliveRate: 60000

[INFO ] 2017-09-12 06:17:39,97 PiThing: requestTimeout: 15000

[INFO ] 2017-09-12 06:17:39,97 PiThing: registerRate: 43200000

[INFO ] 2017-09-12 06:17:39,97 PiThing: register: true

[INFO ] 2017-09-12 06:17:39,97 PiThing: getPropertySubscriptionOnReconnect: false

[INFO ] 2017-09-12 06:17:39,97 PiThing: maxConcurrentPropertyUpdates: 100

[INFO ] 2017-09-12 06:17:39,97 PiThing: defaultPushType: VALUE

[INFO ] 2017-09-12 06:17:39,98 PiThing: useShapes: true

[INFO ] 2017-09-12 06:17:39,98 PiThing: identifier: Not Specififed

[INFO ] 2017-09-12 06:17:39,98 PiThing: ------------------------------------------------

[FORCE] 2017-09-12 06:17:39,99 httpServer: starting http server port=8001

[INFO ] 2017-09-12 06:17:39,103 thingworx.template: Adding shape 'shapes.metadata' to template 'thingworx.template'

[INFO ] 2017-09-12 06:17:39,115 thingworx.template: Adding shape 'shapes.propsubscribe' to template 'thingworx.template'

[INFO ] 2017-09-12 06:17:39,116 thingworx.template: Creating new templates.PiTemplate named 'PiThing'

[INFO ] 2017-09-12 06:17:39,116 PiThing: -- Initializing properties ---------------------

[INFO ] 2017-09-12 06:17:39,116 PiThing: Initialized property upToDate [baseType: BOOLEAN, pushType: NEVER, handler: nil, value: true]

[INFO ] 2017-09-12 06:17:39,117 PiThing: Initialized property cpu_volt [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]

[INFO ] 2017-09-12 06:17:39,117 PiThing: Initialized property cpu_temperature [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]

[INFO ] 2017-09-12 06:17:39,117 PiThing: Initialized property cpu_freq [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]

[INFO ] 2017-09-12 06:17:39,117 PiThing: ------------------------------------------------

[INFO ] 2017-09-12 06:17:41,88 PiThing: -- Starting script --------------------------

[INFO ] 2017-09-12 06:17:41,88 PiThing: Registering core callback handler

[INFO ] 2017-09-12 06:17:41,88 PiThing: Starting main loop

[INFO ] 2017-09-12 06:17:41,88 PiThing: Calling lifecycle start listeners.

[INFO ] 2017-09-12 06:17:41,88 shapes.propsubscribe: Initialized

[INFO ] 2017-09-12 06:17:41,89 thingworx.handler: Creating a new handler.

[INFO ] 2017-09-12 06:17:41,98 PiThing: MicroServer is now available.

[INFO ] 2017-09-12 06:17:41,98 PiThing: MicroServer is online.

[INFO ] 2017-09-12 06:17:41,98 PiThing: Successfully registered PiThing with MicroServer.

[INFO ] 2017-09-12 06:17:41,338 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:41,343 PiThing: EMS is available: true, online: true

[INFO ] 2017-09-12 06:17:41,343 PiThing: Attempting to GetPropertySubscriptions from server failed. code: 500, result:

[INFO ] 2017-09-12 06:17:41,659 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:41,663 PiThing: EMS is available: true, online: true

[INFO ] 2017-09-12 06:17:41,663 PiThing: Attempting to GetPropertySubscriptions from server failed. code: 500, result:

[INFO ] 2017-09-12 06:17:43,446 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:43,450 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:43,450 thingworx.server: Could not set properties on server. code: 500, resp:

[INFO ] 2017-09-12 06:17:45,847 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:45,851 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:45,851 thingworx.server: Could not set properties on server. code: 500, resp:

[INFO ] 2017-09-12 06:17:47,635 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:47,639 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:47,639 thingworx.server: Could not set properties on server. code: 500, resp:

[INFO ] 2017-09-12 06:17:49,483 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:49,486 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:49,487 thingworx.server: Could not set properties on server. code: 500, resp:

[INFO ] 2017-09-12 06:17:51,794 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:51,797 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:51,798 thingworx.server: Could not set properties on server. code: 500, resp:

[INFO ] 2017-09-12 06:17:53,574 PiThing: Error occured while accessing EMS. Checking isConnected.

[INFO ] 2017-09-12 06:17:53,579 PiThing: EMS is available: true, online: true

[WARN ] 2017-09-12 06:17:53,579 thingworx.server: Could not set properties on server. code: 500, resp:

[ERROR] 2017-09-12 06:17:55,85 TlsStream::doopen: Error opening socket.  Error: 111

[ERROR] 2017-09-12 06:17:55,85 HttpClient::initialize: Exception while opening connection request to 127.0.0.1. Error: Error opening non-TLS socket [127.0.0.1:80]

[ERROR] 2017-09-12 06:17:55,86 luaBindings::httpPost: Error POSTing to HTTP Server at 127.0.0.1/Thingworx/Things/PiThing/Services/UpdateSubscribedPropertyValues

[INFO ] 2017-09-12 06:17:55,86 PiThing: Error occured while accessing EMS. Checking isConnected.

[ERROR] 2017-09-12 06:17:55,86 TlsStream::doopen: Error opening socket.  Error: 111

[ERROR] 2017-09-12 06:17:55,87 HttpClient::initialize: Exception while opening connection request to 127.0.0.1. Error: Error opening non-TLS socket [127.0.0.1:80]

[ERROR] 2017-09-12 06:17:55,87 luaBindings::httpGet: Error GETing from HTTP server at 127.0.0.1/Thingworx/Things/LocalEms/Properties/isConnected

[WARN ] 2017-09-12 06:17:55,87 PiThing: MicroServer is not online

[WARN ] 2017-09-12 06:17:55,87 PiThing: Cannot connect to MicroServer. Setting to unavailable.

[INFO ] 2017-09-12 06:17:55,87 PiThing: EMS is available: false, online: false

[WARN ] 2017-09-12 06:17:55,88 thingworx.server: Could not set properties on server. code: 503, resp: Error attempting HTTP POST

[ERROR] 2017-09-12 06:17:57,95 TlsStream::doopen: Error opening socket.  Error: 111

[ERROR] 2017-09-12 06:17:57,95 HttpClient::initialize: Exception while opening connection request to 127.0.0.1. Error: Error opening non-TLS socket [127.0.0.1:80]

[ERROR] 2017-09-12 06:17:57,96 luaBindings::httpPost: Error POSTing to HTTP Server at 127.0.0.1/Thingworx/Things/PiThing/Services/UpdateSubscribedPropertyValues

[INFO ] 2017-09-12 06:17:57,96 PiThing: Error occured while accessing EMS. Checking isConnected.

[ERROR] 2017-09-12 06:17:57,96 TlsStream::doopen: Error opening socket.  Error: 111

[ERROR] 2017-09-12 06:17:57,97 HttpClient::initialize: Exception while opening connection request to 127.0.0.1. Error: Error opening non-TLS socket [127.0.0.1:80]

[ERROR] 2017-09-12 06:17:57,97 luaBindings::httpGet: Error GETing from HTTP server at 127.0.0.1/Thingworx/Things/LocalEms/Properties/isConnected

[INFO ] 2017-09-12 06:17:57,97 PiThing: EMS is available: false, online: false

[WARN ] 2017-09-12 06:17:57,97 thingworx.server: Could not set properties on server. code: 503, resp: Error attempting HTTP POST,,

here its "[WARN ] 2017-09-12 06:17:43,450 thingworx.server: Could not set properties on server. code: 500, resp: ",, i couldnt resolve it,,please help me..,,

I have attatched my Config.json, config.lua and my PiTemplate file.,,

Thank you!!


1 ACCEPTED SOLUTION

Accepted Solutions

Hi sir,

Thank you sir, i forgot to bind properties,,

now working properly ,able to update values in properties.

View solution in original post

7 REPLIES 7
supandey
19-Tanzanite
(To:AkshayKumar)

Hi Akshaya, just would like to confirm if you are actually able to reach the machine running ThingWorx from your RaspberryPi? Are you able to ping that machine and vice versa?

Hi Sushant sir,

yes i am able to ping the from Raspberry pi to my pc which running Thingworx and Vice versa!!

supandey
19-Tanzanite
(To:AkshayKumar)

Thank you for confirming that Akshaya, could you also share the screenshot of the RemoteThing's property that you have created in the ThingWorx?

Hi sir,

Thank you sir, i forgot to bind properties,,

now working properly ,able to update values in properties.

supandey
19-Tanzanite
(To:AkshayKumar)

You're welcome. Has happened to me as well in the past

Glad it helped.

Hi,

 

I am having the same error messages as above.

I have tried to manage bindings but when I go to the remote tab it says "Error browsing properties. Be sure the remote device/server is connected and configured properly".

The isConnected property is currently true.

 

Any advice is greatly appreciated,

Charlotte

supandey
19-Tanzanite
(To:csummers1)

Hi Charlotte, could you please open a new thread with the logs and config files attached to it. You can reference this thread in yours with its URL.
Top Tags