error in log. Unable to find why

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

error in log. Unable to find why

Post by mcmikev »

Hello,

I run dzvents 1.1.2 and that is working fine.

However i get an error in the log now and then.

Code: Select all

2017-03-28 11:30:01.646 LUA: error loading module 'devices' from file '/home/pi/domoticz/scripts/lua/devices.lua':
/home/pi/domoticz/scripts/lua/devices.lua:527: unfinished string near
2017-03-28 11:30:01.651 LUA: devices.lua cannot be loaded
2017-03-28 11:30:01.651 LUA: error loading module 'devices' from file '/home/pi/domoticz/scripts/lua/devices.lua':
/home/pi/domoticz/scripts/lua/devices.lua:927: '}' expected (to close '{' at line 922) near
2017-03-28 11:30:01.657 LUA: devices.lua cannot be loaded
2017-03-28 11:30:01.657 LUA: error loading module 'devices' from file '/home/pi/domoticz/scripts/lua/devices.lua':
/home/pi/domoticz/scripts/lua/devices.lua:1061: unfinished string near
Any hints where to look for the issue?
BakSeeDaa
Posts: 485
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version:

Re: error in log. Unable to find why

Post by BakSeeDaa »

I guess it has to do with one of your scripts. Can You isolate the problem to a single script, for example by turning them off, one by one temporary. Can You remember what script you were working with at the time that these errors started to show?
User avatar
Siewert308SW
Posts: 294
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: error in log. Unable to find why

Post by Siewert308SW »

The error log already tell you what is going wrong:

Code: Select all

2017-03-28 11:30:01.651 LUA: error loading module 'devices' from file '/home/pi/domoticz/scripts/lua/devices.lua':
/home/pi/domoticz/scripts/lua/devices.lua:927: '}' expected (to close '{' at line 922) near
Line 922 is written wrong and there not working.
Setup:
- DS923+ Docker
Domoticz Latest Stable
Mosquitto / ZwaveJSUI @ Aeotec Z-Stick Gen5+ / PiHole Unbound
P1 USB Gas/Power, HW watermeter
- A lot of Zwave switches, contacts, plugs, smoke/Co2 ect
- DiY 7.5kWh Solar Storage @ GitHuB
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: error in log. Unable to find why

Post by mcmikev »

Yes but the file is generated automatic after deletion the file get rebuild/made again and then the error returns after a while.
I only run a heating script and also keeps turning the switch for heating constantly with every run off or on. Like the script cannot figure out the device state
User avatar
Siewert308SW
Posts: 294
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: error in log. Unable to find why

Post by Siewert308SW »

Yep...
But without knowing what script and such you are running is like trying to find your way in the dark.
As such errors (non domoticz standard scripts) we need more info and can't blind guess what is going on.

Then take a look at you script at the part where the devices.lua is created and debug what is wrong and why it writes a false line.
And if it's dzvent related, maybe asking the dedicated dzvent thread could solve your issue ;-)
Setup:
- DS923+ Docker
Domoticz Latest Stable
Mosquitto / ZwaveJSUI @ Aeotec Z-Stick Gen5+ / PiHole Unbound
P1 USB Gas/Power, HW watermeter
- A lot of Zwave switches, contacts, plugs, smoke/Co2 ect
- DiY 7.5kWh Solar Storage @ GitHuB
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: error in log. Unable to find why

Post by mcmikev »

That is where I ask this question
User avatar
Siewert308SW
Posts: 294
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: error in log. Unable to find why

Post by Siewert308SW »

mcmikev wrote:That is where I ask this question Image

oops...
My bad, never looked at the forum title.
Setup:
- DS923+ Docker
Domoticz Latest Stable
Mosquitto / ZwaveJSUI @ Aeotec Z-Stick Gen5+ / PiHole Unbound
P1 USB Gas/Power, HW watermeter
- A lot of Zwave switches, contacts, plugs, smoke/Co2 ect
- DiY 7.5kWh Solar Storage @ GitHuB
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: error in log. Unable to find why

Post by dannybloe »

mcmikev wrote:Yes but the file is generated automatic after deletion the file get rebuild/made again and then the error returns after a while.
I only run a heating script and also keeps turning the switch for heating constantly with every run off or on. Like the script cannot figure out the device state
Mmm, this is really a problem. I'm not sure how to fix this exactly. I'm doing an http request and turn the json into a Lua module that can be required by the dzVents code. Somehow, along the way, this conversion goes wrong. Maybe you can send me the devices.lua file when this happens.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest