attempt to index local 'fileStorage' (a boolean value)  [SOLVED]

Moderator: leecollings

Post Reply
Marque1968
Posts: 60
Joined: Tuesday 03 April 2018 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

attempt to index local 'fileStorage' (a boolean value)

Post by Marque1968 »

2019-05-17 16:20:00.618 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:96: attempt to index local 'fileStorage' (a boolean value)

My log is full of this now. Before my raspberry pi SD card was full, so I now copied all to a disk that is 4 times the size, but this error remains. Any ideas?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

Marque1968 wrote: Friday 17 May 2019 16:26 2019-05-17 16:20:00.618 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:96: attempt to index local 'fileStorage' (a boolean value)

My log is full of this now. Before my raspberry pi SD card was full, so I now copied all to a disk that is 4 times the size, but this error remains. Any ideas?
Which script triggers the error ? Not the dzVents.lua but the user script ?

what do you see when you enter these CLI commands ?

sudo find /home/pi/domoticz/scripts/dz* -type d -ls
sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Marque1968
Posts: 60
Joined: Tuesday 03 April 2018 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by Marque1968 »

pi@raspberrypi:~ $ sudo find /home/pi/domoticz/scripts/dz* -type d -ls
Spoiler: show
525639 4 drwxr-xr-x 6 pi pi 4096 mei 17 17:51 /home/pi/domoticz/scripts/dzVents
525696 4 drwxr-xr-x 2 pi pi 4096 mei 10 13:18 /home/pi/domoticz/scripts/dzVents/scripts
525666 4 drwxr-xr-x 3 pi pi 4096 mei 10 13:18 /home/pi/domoticz/scripts/dzVents/examples
525676 4 drwxr-xr-x 2 pi pi 4096 mei 10 13:18 /home/pi/domoticz/scripts/dzVents/examples/templates
525640 4 drwxr-xr-x 2 pi pi 4096 mei 21 00:00 /home/pi/domoticz/scripts/dzVents/generated_scripts
525698 4 drwxr-xr-x 2 pi pi 4096 mei 10 13:18 /home/pi/domoticz/scripts/dzVents/data
pi@raspberrypi:~ $ sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
Spoiler: show
/home/pi/domoticz/scripts/dzVents/:
totaal 84
drwxr-xr-x 6 pi pi 4096 mei 17 17:51 .
drwxr-xr-x 8 pi pi 4096 mei 10 13:18 ..
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 data
-rw-r----- 1 root root 60381 mei 21 16:32 domoticzData.lua
drwxr-xr-x 3 pi pi 4096 mei 10 13:18 examples
drwxr-xr-x 2 pi pi 4096 mei 21 00:00 generated_scripts
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 scripts

/home/pi/domoticz/scripts/dzVents/data:
totaal 24
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 .
drwxr-xr-x 6 pi pi 4096 mei 17 17:51 ..
-rw-r----- 1 root root 134 mei 21 06:30 __data_SCV Eetkamerlicht.lua
-rw-r----- 1 root root 134 mei 19 12:06 __data_SCV Etalage.lua
-rw-r----- 1 root root 134 mei 21 11:03 __data_SCV Winkellicht.lua
-rw-r----- 1 root root 0 mei 16 01:10 __data_Timer Etalage.lua
-rw-r--r-- 1 pi pi 278 mei 10 13:18 README.md

/home/pi/domoticz/scripts/dzVents/examples:
totaal 84
drwxr-xr-x 3 pi pi 4096 mei 10 13:18 .
drwxr-xr-x 6 pi pi 4096 mei 17 17:51 ..
-rw-r--r-- 1 pi pi 649 mei 10 13:18 calc temp delta.lua
-rw-r--r-- 1 pi pi 821 mei 10 13:18 check battery levels.lua
-rw-r--r-- 1 pi pi 1272 mei 10 13:18 check dead devices by desc.lua
-rw-r--r-- 1 pi pi 868 mei 10 13:18 check dead devices.lua
-rw-r--r-- 1 pi pi 481 mei 10 13:18 external_light.lua
-rw-r--r-- 1 pi pi 533 mei 10 13:18 fake presence.lua
-rw-r--r-- 1 pi pi 541 mei 10 13:18 garage door.lua
-rw-r--r-- 1 pi pi 332 mei 10 13:18 get sensor values.lua
-rw-r--r-- 1 pi pi 448 mei 10 13:18 intruder alert.lua
-rw-r--r-- 1 pi pi 2516 mei 10 13:18 leak_detection.lua
-rw-r--r-- 1 pi pi 1621 mei 10 13:18 notify for dead system-alive check devices.lua
-rw-r--r-- 1 pi pi 558 mei 10 13:18 only run script when button pressed.lua
-rw-r--r-- 1 pi pi 3461 mei 10 13:18 plant watering notification.lua
-rw-r--r-- 1 pi pi 441 mei 10 13:18 random night light.lua
-rw-r--r-- 1 pi pi 224 mei 10 13:18 respond to switch.lua
-rw-r--r-- 1 pi pi 321 mei 10 13:18 schedule fish pond pump.lua
-rw-r--r-- 1 pi pi 3118 mei 10 13:18 simple room heating with hysteresis control.lua
-rw-r--r-- 1 pi pi 4080 mei 10 13:18 sunscreen.lua
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 templates

/home/pi/domoticz/scripts/dzVents/examples/templates:
totaal 48
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 .
drwxr-xr-x 3 pi pi 4096 mei 10 13:18 ..
-rw-r--r-- 1 pi pi 216 mei 10 13:18 bare.lua
-rw-r--r-- 1 pi pi 2491 mei 10 13:18 complete.lua
-rw-r--r-- 1 pi pi 176 mei 10 13:18 device.lua
-rw-r--r-- 1 pi pi 385 mei 10 13:18 global_data.lua
-rw-r--r-- 1 pi pi 170 mei 10 13:18 group.lua
-rw-r--r-- 1 pi pi 839 mei 10 13:18 HTTPRequest.lua
-rw-r--r-- 1 pi pi 170 mei 10 13:18 scene.lua
-rw-r--r-- 1 pi pi 209 mei 10 13:18 security.lua
-rw-r--r-- 1 pi pi 2476 mei 10 13:18 timer.lua
-rw-r--r-- 1 pi pi 200 mei 10 13:18 variable.lua

/home/pi/domoticz/scripts/dzVents/generated_scripts:
totaal 124
drwxr-xr-x 2 pi pi 4096 mei 21 00:00 .
drwxr-xr-x 6 pi pi 4096 mei 17 17:51 ..
-rw-r----- 1 root root 3053 mei 21 00:00 BienHoaWeer.lua
-rw-r----- 1 root root 713 mei 21 00:00 Buitenlicht-2min.lua
-rw-r----- 1 root root 743 mei 21 00:00 CS knop eetkamerlicht.lua
-rw-r----- 1 root root 588 mei 21 00:00 CS knop Notifications.lua
-rw-r----- 1 root root 941 mei 21 00:00 CS knop winkellicht.lua
-rw-r----- 1 root root 5212 mei 21 00:00 DarkSkyNet.lua
-rw-r----- 1 root root 634 mei 21 00:00 eetkamerschakelaar.lua
-rw-r----- 1 root root 9968 mei 21 00:00 global_data.lua
-rw-r----- 1 root root 302 mei 21 00:00 knop2c.lua
-rw-r--r-- 1 pi pi 189 mei 10 13:18 README.md
-rw-r----- 1 root root 1654 mei 21 00:00 SC geur automatisch.lua
-rw-r----- 1 root root 406 mei 21 00:00 SC geur schakelaar.lua
-rw-r----- 1 root root 591 mei 21 00:00 SC Prox Marc.lua
-rw-r----- 1 root root 589 mei 21 00:00 SC Prox Nga.lua
-rw-r----- 1 root root 1551 mei 21 00:00 SC Prox not near.lua
-rw-r----- 1 root root 558 mei 21 00:00 SC Telefoon+computer.lua
-rw-r----- 1 root root 212 mei 21 00:00 SC Telefoon Shinzo.lua
-rw-r----- 1 root root 1796 mei 21 00:00 SCV Eetkamerlicht.lua
-rw-r----- 1 root root 885 mei 21 00:00 SCV Etalage.lua
-rw-r----- 1 root root 2718 mei 21 00:00 SC Voordeur Licht.lua
-rw-r----- 1 root root 829 mei 21 00:00 SCV Winkellicht.lua
-rw-r----- 1 root root 799 mei 21 00:00 Test-CheckSwitchResult.lua
-rw-r----- 1 root root 296 mei 21 00:00 test radiation.lua
-rw-r----- 1 root root 1468 mei 21 00:00 testtelegram.lua
-rw-r----- 1 root root 2743 mei 21 00:00 Timer Etalage.lua
-rw-r----- 1 root root 1067 mei 21 00:00 Welkomslicht Achter.lua

/home/pi/domoticz/scripts/dzVents/scripts:
totaal 12
drwxr-xr-x 2 pi pi 4096 mei 10 13:18 .
drwxr-xr-x 6 pi pi 4096 mei 17 17:51 ..
-rw-r--r-- 1 pi pi 208 mei 10 13:18 README.md
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)  [SOLVED]

Post by waaren »

Marque1968 wrote: Tuesday 21 May 2019 16:35 pi@raspberrypi:~ $ sudo find /home/pi/domoticz/scripts/dz* -type d -ls
pi@raspberrypi:~ $ sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
One datafile does not seem right (size 0) Can you try to remove that one using ?

Code: Select all

sudo rm /home/pi/domoticz/scripts/dzVents/data__data_Timer Etalage.lua
dzVents wil simply rebuild it when the script requires it.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jkimmel
Posts: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by jkimmel »

Had the same error.
The culprit seems to be having a script name containing two spaces.

Edited the script name and deleted the data file as adviced and no error anymore.
Just wondering why the error showed up after the system was running quite a while without this error
Rfxcom
Raspi 4
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by EdwinK »

Having the same problem, but can't seem to find the reason for it. Btw. For me it seems to be line 108 to be the culprit

2020-03-18 09:44:00.158 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')


sudo find /home/pi/domoticz/scripts/dz* -type d -ls
Spoiler: show
sudo find /home/pi/domoticz/scripts/dz* -type d -ls
130617 4 drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 /home/pi/domoticz/scripts/dzVents
265726 4 drwxr-xr-x 2 pi pi 4096 Feb 14 07:17 /home/pi/domoticz/scripts/dzVents/dumps
130652 4 drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 /home/pi/domoticz/scripts/dzVents/data
130618 4 drwxr-xr-x 2 pi pi 4096 Mar 18 09:50 /home/pi/domoticz/scripts/dzVents/generated_scripts
130620 4 drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 /home/pi/domoticz/scripts/dzVents/examples
130630 4 drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 /home/pi/domoticz/scripts/dzVents/examples/templates
130650 4 drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 /home/pi/domoticz/scripts/dzVents/scripts
260855 4 drwxr-xr-x 2 pi pi 4096 Jan 14 12:39 /home/pi/domoticz/scripts/dzVents/scripts/modules
pi@DomoServer:~ $
sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
Spoiler: show
pi@DomoServer:~ $ sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
/home/pi/domoticz/scripts/dzVents/:
total 28
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 .
drwxr-xr-x 8 pi pi 4096 Mar 13 07:49 ..
drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 data
drwxr-xr-x 2 pi pi 4096 Feb 14 07:17 dumps
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 examples
drwxr-xr-x 2 pi pi 4096 Mar 18 09:50 generated_scripts
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 scripts

/home/pi/domoticz/scripts/dzVents/data:
total 52
drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 .
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 ..
-rw-r----- 1 root root 452 Feb 25 10:32 '__data_Fix Hue.lua'
-rw-r----- 1 root root 193 Jan 16 13:28 __data_GasTEST.lua
-rw-r----- 1 root root 193 Mar 13 09:00 '__data_Gas Verbruik.lua'
-rw-r----- 1 root root 644 Mar 13 09:27 __data_Kosten.lua
-rw-r----- 1 root root 114 Mar 13 09:27 __data_PLEX.lua
-rw-r----- 1 root root 114 Mar 9 22:54 __data_PLEX_.lua
-rw-r----- 1 root root 1161 Mar 13 09:00 __data_Storm.lua
-rw-r----- 1 root root 1159 Mar 10 12:00 '__data_storm TEST.lua'
-rw-r----- 1 root root 121 Mar 13 09:27 __data_SunScreen.lua
-rw-r----- 1 root root 0 Mar 13 09:28 __data_updateWeatherSensors.lua
-rw-r----- 1 root root 198 Dec 13 10:45 __data_waqi.lua
-rw-r--r-- 1 pi pi 278 Feb 13 08:49 README.md

/home/pi/domoticz/scripts/dzVents/dumps:
total 12
drwxr-xr-x 2 pi pi 4096 Feb 14 07:17 .
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 ..
-rw-r--r-- 1 pi pi 71 Feb 14 07:17 .gitignore

/home/pi/domoticz/scripts/dzVents/examples:
total 84
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 .
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 ..
-rw-r--r-- 1 pi pi 649 Feb 13 08:49 'calc temp delta.lua'
-rw-r--r-- 1 pi pi 821 Feb 13 08:49 'check battery levels.lua'
-rw-r--r-- 1 pi pi 1272 Feb 13 08:49 'check dead devices by desc.lua'
-rw-r--r-- 1 pi pi 868 Feb 13 08:49 'check dead devices.lua'
-rw-r--r-- 1 pi pi 481 Feb 13 08:49 external_light.lua
-rw-r--r-- 1 pi pi 533 Feb 13 08:49 'fake presence.lua'
-rw-r--r-- 1 pi pi 541 Feb 13 08:49 'garage door.lua'
-rw-r--r-- 1 pi pi 332 Feb 13 08:49 'get sensor values.lua'
-rw-r--r-- 1 pi pi 448 Feb 13 08:49 'intruder alert.lua'
-rw-r--r-- 1 pi pi 2516 Feb 13 08:49 leak_detection.lua
-rw-r--r-- 1 pi pi 1621 Feb 13 08:49 'notify for dead system-alive check devices.lua'
-rw-r--r-- 1 pi pi 558 Feb 13 08:49 'only run script when button pressed.lua'
-rw-r--r-- 1 pi pi 3461 Feb 13 08:49 'plant watering notification.lua'
-rw-r--r-- 1 pi pi 441 Feb 13 08:49 'random night light.lua'
-rw-r--r-- 1 pi pi 224 Feb 13 08:49 'respond to switch.lua'
-rw-r--r-- 1 pi pi 321 Feb 13 08:49 'schedule fish pond pump.lua'
-rw-r--r-- 1 pi pi 3118 Feb 13 08:49 'simple room heating with hysteresis control.lua'
-rw-r--r-- 1 pi pi 4080 Feb 13 08:49 sunscreen.lua
drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 templates

/home/pi/domoticz/scripts/dzVents/examples/templates:
total 48
drwxr-xr-x 2 pi pi 4096 Feb 13 08:49 .
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 ..
-rw-r--r-- 1 pi pi 216 Feb 13 08:49 bare.lua
-rw-r--r-- 1 pi pi 2491 Feb 13 08:49 complete.lua
-rw-r--r-- 1 pi pi 176 Feb 13 08:49 device.lua
-rw-r--r-- 1 pi pi 385 Feb 13 08:49 global_data.lua
-rw-r--r-- 1 pi pi 170 Feb 13 08:49 group.lua
-rw-r--r-- 1 pi pi 839 Feb 13 08:49 HTTPRequest.lua
-rw-r--r-- 1 pi pi 170 Feb 13 08:49 scene.lua
-rw-r--r-- 1 pi pi 209 Feb 13 08:49 security.lua
-rw-r--r-- 1 pi pi 2476 Feb 13 08:49 timer.lua
-rw-r--r-- 1 pi pi 200 Feb 13 08:49 variable.lua

/home/pi/domoticz/scripts/dzVents/generated_scripts:
total 104
drwxr-xr-x 2 pi pi 4096 Mar 18 09:50 .
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 ..
-rw-r----- 1 root root 9473 Mar 18 09:50 'DB Check.lua'
-rw-r----- 1 root root 3727 Mar 18 09:50 'Gas Verbruik.lua'
-rw-r----- 1 root root 6806 Mar 18 09:50 Kosten.lua
-rw-r----- 1 root root 607 Mar 18 09:50 'Lux Lampen.lua'
-rw-r----- 1 root root 2258 Mar 18 09:50 'Minder Gas.lua'
-rw-r----- 1 root root 2726 Mar 18 09:50 PLEX.lua
-rw-r----- 1 root root 1160 Mar 18 09:50 Rain.lua
-rw-r--r-- 1 pi pi 189 Feb 13 08:49 README.md
-rw-r----- 1 root root 2725 Mar 18 09:50 Storm.lua
-rw-r----- 1 root root 5298 Mar 18 09:50 SunScreen.lua
-rw-r----- 1 root root 11412 Mar 18 09:50 Toon.lua
-rw-r----- 1 root root 354 Mar 18 09:50 'Toon Setpoint.lua'
-rw-r----- 1 root root 587 Mar 18 09:50 Uptime.lua
-rw-r----- 1 root root 1712 Mar 18 09:50 'Verbruik Gas.lua'
-rw-r----- 1 root root 1718 Mar 18 09:50 'Verbruik Stroom Hoog.lua'
-rw-r----- 1 root root 1718 Mar 18 09:50 'Verbruik Stroom Laag.lua'
-rw-r----- 1 root root 3657 Mar 18 09:50 'Verbruik Toon2Domo.lua'
-rw-r----- 1 root root 2661 Mar 18 09:50 WindChill.lua

/home/pi/domoticz/scripts/dzVents/scripts:
total 100
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 .
drwxr-xr-x 7 pi pi 4096 Feb 14 07:17 ..
drwxr-xr-x 2 pi pi 4096 Jan 14 12:39 modules
-rw-r--r-- 1 pi pi 208 Feb 13 08:49 README.md
-rwxr-xr-x 1 pi pi 81981 Jan 14 12:40 updateWeatherSensors.lua

/home/pi/domoticz/scripts/dzVents/scripts/modules:
total 64
drwxr-xr-x 2 pi pi 4096 Jan 14 12:39 .
drwxr-xr-x 3 pi pi 4096 Feb 13 08:49 ..
-rwxr-xr-x 1 pi pi 11738 Jan 14 12:39 wusErrors.lua
-rwxr-xr-x 1 pi pi 21989 Jan 14 12:39 wusFunctions.lua
-rwxr-xr-x 1 pi pi 18030 Jan 30 09:54 wusSettings.lua
pi@DomoServer:~ $
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

EdwinK wrote: Wednesday 18 March 2020 9:59 Having the same problem, but can't seem to find the reason for it.
try

Code: Select all

sudo rm /home/pi/domoticz/scripts/dzVents/data/*updateWeatherSensors*
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by EdwinK »

Thanks. And now you mentioned it, I see it sitting thee ;)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by renerene »

Checked three times. Can not find a 0 size script.

2020-06-08 18:15:10.525 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')

sudo ls -Rla /home/pi/domoticz/scripts/dzVents/

Code: Select all

sudo ls -Rla /home/pi/domoticz/scripts/dzVents/
/home/pi/domoticz/scripts/dzVents/:
total 28
drwxr-xr-x 7 pi pi 4096 Apr  2 10:06 .
drwxr-xr-x 9 pi pi 4096 May 23 11:47 ..
drwxr-xr-x 2 pi pi 4096 Apr 29 20:22 data
drwxr-xr-x 2 pi pi 4096 Apr  2 10:06 dumps
drwxr-xr-x 3 pi pi 4096 Apr  2 10:06 examples
drwxr-xr-x 2 pi pi 4096 Jun  9 00:00 generated_scripts
drwxr-xr-x 2 pi pi 4096 Apr  2 10:06 scripts

/home/pi/domoticz/scripts/dzVents/data:
total 168
drwxr-xr-x 2 pi   pi    4096 Apr 29 20:22 .
drwxr-xr-x 7 pi   pi    4096 Apr  2 10:06 ..
-rw-r----- 1 root root   123 Jun  9 06:40 __data_dzAlarm.lua
-rw-r----- 1 root root   120 Jun  9 06:42 __data_dzBadvloerRegeling.lua
-rw-r----- 1 root root  2556 Oct 22  2019 __data_dzBathroomFan4.lua
-rw-r----- 1 root root  1691 Jun  9 06:43 __data_dzBathroomFan.lua
-rw-r----- 1 root root    96 Aug 10  2019 __data_dzBootMessage.lua
-rw-r----- 1 root root   145 Jun  9 06:42 __data_dzCheckSensors3.lua
-rw-r----- 1 root root    96 Jun  6 09:18 __data_dzCvKetelGraph.lua
-rw-r----- 1 root root   113 Jun  9 06:38 __data_dzGoodmorning.lua
-rw-r----- 1 root root   137 Aug 18  2019 __data_dzHogeTemp.lua
-rw-r----- 1 root root   115 Jun  9 05:30 __data_dzLichtAuto.lua
-rw-r----- 1 root root   141 Jun  9 06:43 __data_dzLichtBadkamer.lua
-rw-r----- 1 root root   141 Jun  9 06:43 __data_dzLichtGang.lua
-rw-r----- 1 root root   113 Jun  9 06:40 __data_dzLichtTuin.lua
-rw-r----- 1 root root   153 Jun  9 06:40 __data_dzLUX.lua
-rw-r----- 1 root root    96 Feb 25 12:05 __data_dzPirGangOnce.lua
-rw-r----- 1 root root   112 Jun  9 06:42 __data_dzRegenmelding.lua
-rw-r----- 1 root root    96 Jun  9 05:55 __data_dzSchemerschakelaarSlow.lua
-rw-r----- 1 root root   120 Jun  9 06:38 __data_dzScreenAuto.lua
-rw-r----- 1 root root   149 Jun  9 06:40 __data_dzSVTThermostaat.lua
-rw-r----- 1 root root    96 Jun  9 06:43 __data_dzTapwaterCheck.lua
-rw-r----- 1 root root    96 Jun  9 06:40 __data_dzTempBinnenBuiten.lua
-rw-r----- 1 root root 43838 Jun  9 06:40 __data_dzUsageToday.lua
-rw-r----- 1 root root    96 Jun  6 09:08 __data_dzVloerverwarmingGraph.lua
-rw-r----- 1 root root   113 Jun  9 06:40 __data_dzVloerverwarming.lua
-rw-r----- 1 root root   114 Jun  9 06:00 __data_dzVorstmelding.lua
-rw-r----- 1 root root   113 May  5 19:25 __data_dzWelcomeHome.lua
-rw-r----- 1 root root    96 Jun  9 06:40 __data_dzZonnekracht2.lua
-rw-r----- 1 root root    96 Jan 12 12:46 __data_dzZonnekracht.lua
-rw-r----- 1 root root   930 Jun  9 06:43 __data_global_data.lua
-rw-r--r-- 1 pi   pi     278 Apr  2 10:06 README.md

/home/pi/domoticz/scripts/dzVents/dumps:
total 12
drwxr-xr-x 2 pi pi 4096 Apr  2 10:06 .
drwxr-xr-x 7 pi pi 4096 Apr  2 10:06 ..
-rw-r--r-- 1 pi pi   71 Apr  2 10:06 .gitignore

/home/pi/domoticz/scripts/dzVents/examples:
total 84
drwxr-xr-x 3 pi pi 4096 Apr  2 10:06  .
drwxr-xr-x 7 pi pi 4096 Apr  2 10:06  ..
-rw-r--r-- 1 pi pi  649 Apr  2 10:06 'calc temp delta.lua'
-rw-r--r-- 1 pi pi  821 Apr  2 10:06 'check battery levels.lua'
-rw-r--r-- 1 pi pi 1272 Apr  2 10:06 'check dead devices by desc.lua'
-rw-r--r-- 1 pi pi  868 Apr  2 10:06 'check dead devices.lua'
-rw-r--r-- 1 pi pi  481 Apr  2 10:06  external_light.lua
-rw-r--r-- 1 pi pi  533 Apr  2 10:06 'fake presence.lua'
-rw-r--r-- 1 pi pi  541 Apr  2 10:06 'garage door.lua'
-rw-r--r-- 1 pi pi  332 Apr  2 10:06 'get sensor values.lua'
-rw-r--r-- 1 pi pi  448 Apr  2 10:06 'intruder alert.lua'
-rw-r--r-- 1 pi pi 2516 Apr  2 10:06  leak_detection.lua
-rw-r--r-- 1 pi pi 1621 Apr  2 10:06 'notify for dead system-alive check devices.lua'
-rw-r--r-- 1 pi pi  558 Apr  2 10:06 'only run script when button pressed.lua'
-rw-r--r-- 1 pi pi 3461 Apr  2 10:06 'plant watering notification.lua'
-rw-r--r-- 1 pi pi  441 Apr  2 10:06 'random night light.lua'
-rw-r--r-- 1 pi pi  224 Apr  2 10:06 'respond to switch.lua'
-rw-r--r-- 1 pi pi  321 Apr  2 10:06 'schedule fish pond pump.lua'
-rw-r--r-- 1 pi pi 3118 Apr  2 10:06 'simple room heating with hysteresis control.lua'
-rw-r--r-- 1 pi pi 4080 Apr  2 10:06  sunscreen.lua
drwxr-xr-x 2 pi pi 4096 Apr  9 08:57  templates

/home/pi/domoticz/scripts/dzVents/examples/templates:
total 88
drwxr-xr-x 2 pi pi 4096 Apr  9 08:57 .
drwxr-xr-x 3 pi pi 4096 Apr  2 10:06 ..
-rw-r--r-- 1 pi pi 2704 Apr  9 08:57 All.lua
-rw-r--r-- 1 pi pi  216 Feb 13 08:49 bare.lua
-rw-r--r-- 1 pi pi  254 Apr  9 08:57 Bare.lua
-rw-r--r-- 1 pi pi 2491 Feb 13 08:49 complete.lua
-rw-r--r-- 1 pi pi  464 Apr  9 08:57 CustomEvents.lua
-rw-r--r-- 1 pi pi  176 Feb 13 08:49 device.lua
-rw-r--r-- 1 pi pi  175 Apr  9 08:57 Device.lua
-rw-r--r-- 1 pi pi  385 Apr  2 10:06 global_data.lua
-rw-r--r-- 1 pi pi  170 Feb 13 08:49 group.lua
-rw-r--r-- 1 pi pi  170 Apr  9 08:57 Group.lua
-rw-r--r-- 1 pi pi  824 Apr  9 08:57 HTTPRequest.lua
-rw-r--r-- 1 pi pi  170 Feb 13 08:49 scene.lua
-rw-r--r-- 1 pi pi  170 Apr  9 08:57 Scene.lua
-rw-r--r-- 1 pi pi  209 Feb 13 08:49 security.lua
-rw-r--r-- 1 pi pi  203 Apr  9 08:57 Security.lua
-rw-r--r-- 1 pi pi  312 Apr  9 08:57 System.lua
-rw-r--r-- 1 pi pi 2476 Feb 13 08:49 timer.lua
-rw-r--r-- 1 pi pi 2239 Apr  9 08:57 Timer.lua
-rw-r--r-- 1 pi pi  199 Apr  9 08:57 UserVariable.lua
-rw-r--r-- 1 pi pi  200 Feb 13 08:49 variable.lua

/home/pi/domoticz/scripts/dzVents/generated_scripts:
total 260
drwxr-xr-x 2 pi   pi    4096 Jun  9 00:00 .
drwxr-xr-x 7 pi   pi    4096 Apr  2 10:06 ..
-rw-r----- 1 root root  5727 Jun  9 00:00 dzAlarm.lua
-rw-r----- 1 root root   832 Jun  9 00:00 dzBadkamerBezet.lua
-rw-r----- 1 root root  1273 Jun  9 00:00 dzBadraam.lua
-rw-r----- 1 root root  3072 Jun  9 00:00 dzBadTempProgramma.lua
-rw-r----- 1 root root  2154 Jun  9 00:00 dzBadvloerRegeling.lua
-rw-r----- 1 root root  9554 Jun  9 00:00 dzBathroomFan.lua
-rw-r----- 1 root root   712 Jun  9 00:00 dzBinnenWarmerDanBuiten.lua
-rw-r----- 1 root root   434 Jun  9 00:00 dzBootMessage.lua
-rw-r----- 1 root root   213 Jun  9 00:00 dzCat.lua
-rw-r----- 1 root root   578 Jun  9 00:00 dzCheckPrinter.lua
-rw-r----- 1 root root  8222 Jun  9 00:00 dzCheckSensors3.lua
-rw-r----- 1 root root  1744 Jun  9 00:00 dzCheckTemp.lua
-rw-r----- 1 root root   836 Jun  9 00:00 dzCvKetelGraph.lua
-rw-r----- 1 root root  1476 Jun  9 00:00 dzDagtype.lua
-rw-r----- 1 root root   222 Jun  9 00:00 dzDoorHalfway.lua
-rw-r----- 1 root root  1518 Jun  9 00:00 dzGoodmorning.lua
-rw-r----- 1 root root  1410 Jun  9 00:00 dzHalfwayAuto2.lua
-rw-r----- 1 root root   218 Jun  9 00:00 dzHalfway.lua
-rw-r----- 1 root root   405 Jun  9 00:00 dzKeukenlichtSwitch.lua
-rw-r----- 1 root root  2631 Jun  9 00:00 dzLaatsteBeweging.lua
-rw-r----- 1 root root  3789 Jun  9 00:00 dzLichtAuto.lua
-rw-r----- 1 root root  3869 Jun  9 00:00 dzLichtBadkamer.lua
-rw-r----- 1 root root   847 Jun  9 00:00 dzLichtGang.lua
-rw-r----- 1 root root  1870 Jun  9 00:00 dzLichtSwitch.lua
-rw-r----- 1 root root  2320 Jun  9 00:00 dzLichtTuin.lua
-rw-r----- 1 root root   990 Jun  9 00:00 dzLichtWc.lua
-rw-r----- 1 root root  2341 Jun  9 00:00 dzLichtZolder.lua
-rw-r----- 1 root root  2553 Jun  9 00:00 dzLocatie.lua
-rw-r----- 1 root root 10860 Jun  9 00:00 dzLUX.lua
-rw-r----- 1 root root  2540 Jun  9 00:00 dzOverloop2.lua
-rw-r----- 1 root root   808 Jun  9 00:00 dzRegenmelding.lua
-rw-r----- 1 root root   198 Jun  9 00:00 dzResetAtMidnight.lua
-rw-r----- 1 root root   482 Jun  9 00:00 dzSay810.lua
-rw-r----- 1 root root   494 Jun  9 00:00 dzSchemerschakelaarSlow.lua
-rw-r----- 1 root root   368 Jun  9 00:00 dzScreenAllesStop.lua
-rw-r----- 1 root root  4345 Jun  9 00:00 dzScreenAuto.lua
-rw-r----- 1 root root   402 Jun  9 00:00 dzSpotify.lua
-rw-r----- 1 root root   960 Jun  9 00:00 dzSreenBadkamer.lua
-rw-r----- 1 root root  9766 Jun  9 00:00 dzSVTThermostaat.lua
-rw-r----- 1 root root  2491 Jun  9 00:00 dzTapwaterCheck.lua
-rw-r----- 1 root root  1852 Jun  9 00:00 dzTempBinnenBuiten.lua
-rw-r----- 1 root root  2278 Jun  9 00:00 dzUsageToday.lua
-rw-r----- 1 root root   259 Jun  9 00:00 dzVentilatieLaag.lua
-rw-r----- 1 root root   866 Jun  9 00:00 dzVloerverwarmingGraph.lua
-rw-r----- 1 root root  3435 Jun  9 00:00 dzVloerverwarming.lua
-rw-r----- 1 root root   674 Jun  9 00:00 dzVorstmelding.lua
-rw-r----- 1 root root  1178 Jun  9 00:00 dzWelcomeHome.lua
-rw-r----- 1 root root   833 Jun  9 00:00 dzWindow.lua
-rw-r----- 1 root root  4439 Jun  9 00:00 dzZonnekracht2.lua
-rw-r----- 1 root root  6199 Jun  9 00:00 global_data.lua
-rw-r--r-- 1 pi   pi     189 Apr  2 10:06 README.md

/home/pi/domoticz/scripts/dzVents/scripts:
total 12
drwxr-xr-x 2 pi pi 4096 Apr  2 10:06 .
drwxr-xr-x 7 pi pi 4096 Apr  2 10:06 ..
-rw-r--r-- 1 pi pi  208 Apr  2 10:06 README.md
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

renerene wrote: Tuesday 09 June 2020 6:56 Checked three times. Can not find a 0 size script.

2020-06-08 18:15:10.525 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')
What is your domoticz version?
What scripts are running at that time?

Please enable debugging in these scripts and if you see the error again copy the dzVents loglines before and after the error.

dzUsageToday seems to generate a large amount of persistent data. Can you double check if you need all?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by renerene »

waaren wrote: Tuesday 09 June 2020 9:33 What is your domoticz version?What scripts are running at that time?
Please enable debugging in these scripts and if you see the error again copy the dzVents loglines before and after the error.
dzUsageToday seems to generate a large amount of persistent data. Can you double check if you need all?
I was running on al late beta, now on the latest beta "Version: 2020.2 (build 12138)"
dzUsageTodays is disabled, after your suggestion.

Error is gone now, don't now the cause
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

renerene wrote: Wednesday 10 June 2020 7:18 dzUsageTodays is disabled, after your suggestion.
Error is gone now, don't now the cause
Can you please show the script here? Maybe we see why it's building such a big persistent data file.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by Jumper3126 »

I'm having the same issue, after adding

Code: Select all

data = {AircoNight = { initial = 0 } },
to a scriipt that has been running without any issues.
I not get
Error: EventSystem: in /usr/local/domoticz/dzVents/runtime/dzVents.lua: /usr/local/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')
I have domoticz 2020.2 (build 12127) running on my synology NAS.
When I direct the CLI commands to the right directories, I get:

Code: Select all

sh-4.3# sudo find dz* -type d -ls
260969622    4 drwxr-xr-x   7 domoticz root         4096 Jun  7 18:23 dzVents
260969661    4 drwxr-xr-x   2 domoticz root         4096 Jul 20 21:29 dzVents/generated_scripts
260969629    4 drwxr-xr-x   3 domoticz root         4096 Jun  7 18:23 dzVents/examples
260969637    4 drwxr-xr-x   2 domoticz root         4096 Jun  7 18:23 dzVents/examples/templates
260969623    4 drwxr-xr-x   2 domoticz root         4096 Jul 10 10:00 dzVents/data
260969627    4 drwxr-xr-x   2 domoticz root         4096 Jun  7 18:23 dzVents/scripts
260969625    4 drwxr-xr-x   2 domoticz root         4096 Jun  7 18:23 dzVents/dumps

Code: Select all

sh-4.3# sudo ls -Rla
.:
total 20
drwxr-xr-x  4 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 12 domoticz root 4096 Jun  9 21:47 ..
drwxr-xr-x  2 domoticz root 4096 Jun  7 18:23 documentation
-rw-r--r--  1 domoticz root  472 Jun  7 18:23 .gitignore
drwxr-xr-x  6 domoticz root 4096 Jun  7 18:23 runtime

./documentation:
total 444
drwxr-xr-x 2 domoticz root   4096 Jun  7 18:23 .
drwxr-xr-x 4 domoticz root   4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root  35213 Jun  7 18:23 dzvents-smoothing.png
-rw-r--r-- 1 domoticz root  31332 Jun  7 18:23 history.md
-rw-r--r-- 1 domoticz root    204 Jun  7 18:23 pandoc.md
-rw-r--r-- 1 domoticz root 176437 Jun  7 18:23 README.md
-rw-r--r-- 1 domoticz root 191082 Jun  7 18:23 README.wiki

./runtime:
total 284
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 .
drwxr-xr-x 4 domoticz root  4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root  1243 Jun  7 18:23 Camera.lua
-rw-r--r-- 1 domoticz root  3230 Jun  7 18:23 constants.lua
-rw-r--r-- 1 domoticz root  1110 Jun  7 18:23 CustomEvent.lua
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 device-adapters
-rw-r--r-- 1 domoticz root  1871 Jun  7 18:23 Device.lua
-rw-r--r-- 1 domoticz root 16702 Jun  7 18:23 Domoticz.lua
-rw-r--r-- 1 domoticz root  2400 Jun  7 18:23 dzVents.lua
-rw-r--r-- 1 domoticz root 34381 Jun  7 18:23 EventHelpers.lua
-rw-r--r-- 1 domoticz root   428 Jun  7 18:23 eventItemIdentifier.lua
-rw-r--r-- 1 domoticz root 12426 Jun  7 18:23 HistoricalStorage.lua
-rw-r--r-- 1 domoticz root  1723 Jun  7 18:23 HTTPResponse.lua
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 integration-tests
-rw-r--r-- 1 domoticz root 67279 Jun  7 18:23 lodash.lua
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 misc
-rwxr-xr-x 1 domoticz root  5741 Jun  7 18:23 persistence.lua
-rw-r--r-- 1 domoticz root   352 Jun  7 18:23 Security.lua
-rw-r--r-- 1 domoticz root  1005 Jun  7 18:23 SystemEvent.lua
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 tests
-rw-r--r-- 1 domoticz root  5561 Jun  7 18:23 TimedCommand.lua
-rw-r--r-- 1 domoticz root   996 Jun  7 18:23 TimedCommandOptions.lua
-rw-r--r-- 1 domoticz root 33288 Jun  7 18:23 Time.lua
-rw-r--r-- 1 domoticz root   264 Jun  7 18:23 Timer.lua
-rw-r--r-- 1 domoticz root   157 Jun  7 18:23 todo.md
-rw-r--r-- 1 domoticz root 13381 Jun  7 18:23 Utils.lua
-rw-r--r-- 1 domoticz root  2322 Jun  7 18:23 Variable.lua

./runtime/device-adapters:
total 224
drwxr-xr-x 2 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root 4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root 3968 Jun  7 18:23 Adapters.lua
-rw-r--r-- 1 domoticz root  573 Jun  7 18:23 airquality_device.lua
-rw-r--r-- 1 domoticz root  693 Jun  7 18:23 alert_device.lua
-rw-r--r-- 1 domoticz root  414 Jun  7 18:23 ampere_1_phase_device.lua
-rw-r--r-- 1 domoticz root  624 Jun  7 18:23 ampere_3_phase_device.lua
-rw-r--r-- 1 domoticz root  742 Jun  7 18:23 barometer_device.lua
-rw-r--r-- 1 domoticz root 1814 Jun  7 18:23 counter_device.lua
-rw-r--r-- 1 domoticz root  487 Jun  7 18:23 custom_sensor_device.lua
-rw-r--r-- 1 domoticz root  564 Jun  7 18:23 distance_device.lua
-rw-r--r-- 1 domoticz root  533 Jun  7 18:23 electric_usage_device.lua
-rw-r--r-- 1 domoticz root 4758 Jun  7 18:23 evohome_device.lua
-rw-r--r-- 1 domoticz root  997 Jun  7 18:23 gas_device.lua
-rw-r--r-- 1 domoticz root 6331 Jun  7 18:23 generic_device.lua
-rw-r--r-- 1 domoticz root 3045 Jun  7 18:23 group_device.lua
-rw-r--r-- 1 domoticz root  831 Jun  7 18:23 hardware_device.lua
-rw-r--r-- 1 domoticz root 1025 Jun  7 18:23 humidity_device.lua
-rw-r--r-- 1 domoticz root 2144 Jun  7 18:23 kodi_device.lua
-rw-r--r-- 1 domoticz root 1217 Jun  7 18:23 kwh_device.lua
-rw-r--r-- 1 domoticz root  473 Jun  7 18:23 leafwetness_device.lua
-rw-r--r-- 1 domoticz root 2481 Jun  7 18:23 logitech_media_server_device.lua
-rw-r--r-- 1 domoticz root  531 Jun  7 18:23 lux_device.lua
-rw-r--r-- 1 domoticz root  534 Jun  7 18:23 onkyo_device.lua
-rw-r--r-- 1 domoticz root  780 Jun  7 18:23 opentherm_gateway_device.lua
-rw-r--r-- 1 domoticz root 1972 Jun  7 18:23 p1_smartmeter_device.lua
-rw-r--r-- 1 domoticz root  495 Jun  7 18:23 percentage_device.lua
-rw-r--r-- 1 domoticz root  459 Jun  7 18:23 pressure_device.lua
-rw-r--r-- 1 domoticz root  558 Jun  7 18:23 rain_device.lua
-rw-r--r-- 1 domoticz root 7614 Jun  7 18:23 rgbw_device.lua
-rw-r--r-- 1 domoticz root  481 Jun  7 18:23 scaleweight_device.lua
-rw-r--r-- 1 domoticz root 2593 Jun  7 18:23 scene_device.lua
-rw-r--r-- 1 domoticz root 1034 Jun  7 18:23 security_device.lua
-rw-r--r-- 1 domoticz root  861 Jun  7 18:23 smoke_detector_device.lua
-rw-r--r-- 1 domoticz root  503 Jun  7 18:23 soilmoisture_device.lua
-rw-r--r-- 1 domoticz root  477 Jun  7 18:23 solar_radiation_device.lua
-rw-r--r-- 1 domoticz root  476 Jun  7 18:23 soundlevel_device.lua
-rw-r--r-- 1 domoticz root 5164 Jun  7 18:23 switch_device.lua
-rw-r--r-- 1 domoticz root  824 Jun  7 18:23 temperature_barometer_device.lua
-rw-r--r-- 1 domoticz root  469 Jun  7 18:23 temperature_device.lua
-rw-r--r-- 1 domoticz root 1390 Jun  7 18:23 temperature_humidity_barometer_device.lua
-rw-r--r-- 1 domoticz root 1051 Jun  7 18:23 temperature_humidity_device.lua
-rw-r--r-- 1 domoticz root  463 Jun  7 18:23 text_device.lua
-rw-r--r-- 1 domoticz root  554 Jun  7 18:23 thermostat_setpoint_device.lua
-rw-r--r-- 1 domoticz root  477 Jun  7 18:23 uv_device.lua
-rw-r--r-- 1 domoticz root  502 Jun  7 18:23 visibility_device.lua
-rw-r--r-- 1 domoticz root  444 Jun  7 18:23 voltage_device.lua
-rw-r--r-- 1 domoticz root  479 Jun  7 18:23 waterflow_device.lua
-rw-r--r-- 1 domoticz root 1019 Jun  7 18:23 wind_device.lua
-rw-r--r-- 1 domoticz root  766 Jun  7 18:23 youless_device.lua
-rw-r--r-- 1 domoticz root  359 Jun  7 18:23 zone_heating_device.lua
-rw-r--r-- 1 domoticz root 1179 Jun  7 18:23 zwave_mode_type_device.lua

./runtime/integration-tests:
total 272
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root  1112 Jun  7 18:23 descriptionScript.lua
-rw-r--r-- 1 domoticz root 18311 Jun  7 18:23 domoticzTestTools.lua
-rw-r--r-- 1 domoticz root  1778 Jun  7 18:23 File.lua
-rw-r--r-- 1 domoticz root   238 Jun  7 18:23 global_data.lua
-rw-r--r-- 1 domoticz root  2156 Jun  7 18:23 httpResponseScript.lua
-rw-r--r-- 1 domoticz root   633 Jun  7 18:23 IconScript.lua
-rw-r--r-- 1 domoticz root   364 Jun  7 18:23 package.json
-rw-r--r-- 1 domoticz root   194 Jun  7 18:23 quiet.lua
-rw-r--r-- 1 domoticz root  3648 Jun  7 18:23 README.md
-rw-r--r-- 1 domoticz root   454 Jun  7 18:23 scCancelledScene.lua
-rw-r--r-- 1 domoticz root  1353 Jun  7 18:23 scriptContactDoorLockInvertedSwitch.lua
-rw-r--r-- 1 domoticz root  1595 Jun  7 18:23 scriptDelayedVariableScene.lua
-rw-r--r-- 1 domoticz root   814 Jun  7 18:23 scriptSelectorSwitch.lua
-rw-r--r-- 1 domoticz root   418 Jun  7 18:23 scriptTestCustomAndSystemEventsScript.lua
-rw-r--r-- 1 domoticz root  5223 Jun  7 18:23 scriptTestEventState.lua
-rw-r--r-- 1 domoticz root   981 Jun  7 18:23 scriptTestProtect.lua
-rw-r--r-- 1 domoticz root   890 Jun  7 18:23 scriptTestRename.lua
-rw-r--r-- 1 domoticz root  1673 Jun  7 18:23 scriptTestUpdatedDocumentation.lua
-rw-r--r-- 1 domoticz root  1049 Jun  7 18:23 scriptTestWildcards.lua
-rw-r--r-- 1 domoticz root  1493 Jun  7 18:23 scScene.lua
-rw-r--r-- 1 domoticz root   461 Jun  7 18:23 secArmedAway.lua
-rw-r--r-- 1 domoticz root  1314 Jun  7 18:23 server.js
-rw-r--r-- 1 domoticz root   519 Jun  7 18:23 silent.lua
-rw-r--r-- 1 domoticz root    55 Jun  7 18:23 some_module.lua
-rw-r--r-- 1 domoticz root 43433 Jun  7 18:23 stage1.lua
-rw-r--r-- 1 domoticz root 27369 Jun  7 18:23 stage2.lua
-rw-r--r-- 1 domoticz root  1965 Jun  7 18:23 testContactDoorLockInvertedSwitch.lua
-rw-r--r-- 1 domoticz root  1826 Jun  7 18:23 testDelayedVariableScene.lua
-rw-r--r-- 1 domoticz root  1957 Jun  7 18:23 testEventState.lua
-rw-r--r-- 1 domoticz root 32893 Jun  7 18:23 testIntegration.lua
-rw-r--r-- 1 domoticz root  1736 Jun  7 18:23 testSelectorSwitch.lua
-rw-r--r-- 1 domoticz root  1487 Jun  7 18:23 testSystemAndCustomEvents.lua
-rw-r--r-- 1 domoticz root   275 Jun  7 18:23 varCancelled.lua
-rw-r--r-- 1 domoticz root  1685 Jun  7 18:23 varString.lua
-rw-r--r-- 1 domoticz root   434 Jun  7 18:23 vdCancelledRepeatSwitch.lua
-rw-r--r-- 1 domoticz root   311 Jun  7 18:23 vdRepeatSwitch.lua
-rw-r--r-- 1 domoticz root  1391 Jun  7 18:23 vdSwitchDimmer.lua

./runtime/misc:
total 52
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root 33837 Jun  7 18:23 smoothing.xlsx
-rwxr-xr-x 1 domoticz root  7166 Jun  7 18:23 testdzVents.sh

./runtime/tests:
total 328
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root  4096 Jun  7 18:23 ..
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 data
-rw-r--r-- 1 domoticz root  3618 Jun  7 18:23 devices.lua
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 generated_scripts
-rw-r--r-- 1 domoticz root   221 Jun  7 18:23 .luacov
-rw-r--r-- 1 domoticz root   651 Jun  7 18:23 README.md
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 scandir
drwxr-xr-x 2 domoticz root  4096 Jun  7 18:23 scripts
-rw-r--r-- 1 domoticz root 54714 Jun  7 18:23 testDevice.lua
-rw-r--r-- 1 domoticz root 29091 Jun  7 18:23 testDomoticz.lua
-rw-r--r-- 1 domoticz root 22729 Jun  7 18:23 testEventHelpers.lua
-rw-r--r-- 1 domoticz root 25650 Jun  7 18:23 testEventHelpersStorage.lua
-rw-r--r-- 1 domoticz root     0 Jun  7 18:23 testfile
-rw-r--r-- 1 domoticz root  3504 Jun  7 18:23 testHTTPResponse.lua
-rw-r--r-- 1 domoticz root 21814 Jun  7 18:23 testLodash.lua
-rw-r--r-- 1 domoticz root  4857 Jun  7 18:23 testScriptdzVentsDispatching.lua
-rw-r--r-- 1 domoticz root 18738 Jun  7 18:23 testTimedCommand.lua
-rw-r--r-- 1 domoticz root 66985 Jun  7 18:23 testTime.lua
-rw-r--r-- 1 domoticz root  7594 Jun  7 18:23 testUtils.lua
-rw-r--r-- 1 domoticz root  4896 Jun  7 18:23 testVariable.lua
-rw-r--r-- 1 domoticz root  9918 Jun  7 18:23 tstData.lua

./runtime/tests/data:
total 12
drwxr-xr-x 2 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root 4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root   43 Jun  7 18:23 README.md

./runtime/tests/generated_scripts:
total 16
drwxr-xr-x 2 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root 4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root  398 Jun  7 18:23 internal1.lua
-rw-r--r-- 1 domoticz root  272 Jun  7 18:23 internal2.lua

./runtime/tests/scandir:
total 8
drwxr-xr-x 2 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root 4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 f1lua
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 f1.lua
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 f2.lua
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 .f3.lua
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 f3.lua
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 .f3.lua.swp
-rw-r--r-- 1 domoticz root    0 Jun  7 18:23 lua.lua

./runtime/tests/scripts:
total 152
drwxr-xr-x 2 domoticz root 4096 Jun  7 18:23 .
drwxr-xr-x 6 domoticz root 4096 Jun  7 18:23 ..
-rw-r--r-- 1 domoticz root  181 Jun  7 18:23 global_data.lua
-rw-r--r-- 1 domoticz root  332 Jun  7 18:23 script1.lua
-rw-r--r-- 1 domoticz root  177 Jun  7 18:23 script2.lua
-rw-r--r-- 1 domoticz root  145 Jun  7 18:23 script3.lua
-rw-r--r-- 1 domoticz root  129 Jun  7 18:23 script4.lua
-rw-r--r-- 1 domoticz root  128 Jun  7 18:23 script5.lua
-rw-r--r-- 1 domoticz root  116 Jun  7 18:23 script6.lua
-rw-r--r-- 1 domoticz root  140 Jun  7 18:23 script7.lua
-rw-r--r-- 1 domoticz root  181 Jun  7 18:23 script_combined.lua
-rw-r--r-- 1 domoticz root  776 Jun  7 18:23 script_data.lua
-rw-r--r-- 1 domoticz root   32 Jun  7 18:23 script_error.lua
-rw-r--r-- 1 domoticz root  168 Jun  7 18:23 script_group1.lua
-rw-r--r-- 1 domoticz root  149 Jun  7 18:23 script_group2.lua
-rw-r--r-- 1 domoticz root  135 Jun  7 18:23 script_inactive.lua
-rw-r--r-- 1 domoticz root   63 Jun  7 18:23 script_incomplete_missing_execute.lua
-rw-r--r-- 1 domoticz root   88 Jun  7 18:23 script_incomplete_missing_on.lua
-rw-r--r-- 1 domoticz root  256 Jun  7 18:23 script_logging.lua
-rw-r--r-- 1 domoticz root    8 Jun  7 18:23 script_notable.lua
-rw-r--r-- 1 domoticz root  169 Jun  7 18:23 script_response_trigger1.lua
-rw-r--r-- 1 domoticz root  142 Jun  7 18:23 script_response_trigger2.lua
-rw-r--r-- 1 domoticz root  169 Jun  7 18:23 script_scene1.lua
-rw-r--r-- 1 domoticz root  149 Jun  7 18:23 script_scene2.lua
-rw-r--r-- 1 domoticz root  301 Jun  7 18:23 script_security_grouped.lua
-rw-r--r-- 1 domoticz root  277 Jun  7 18:23 script_security.lua
-rw-r--r-- 1 domoticz root  176 Jun  7 18:23 script_timer_classic.lua
-rw-r--r-- 1 domoticz root  236 Jun  7 18:23 script_timer_function.lua
-rw-r--r-- 1 domoticz root  339 Jun  7 18:23 script_timer_single.lua
-rw-r--r-- 1 domoticz root  186 Jun  7 18:23 script_timer_table.lua
-rw-r--r-- 1 domoticz root  263 Jun  7 18:23 script_variable1.lua
-rw-r--r-- 1 domoticz root  139 Jun  7 18:23 script_variable2.lua
-rw-r--r-- 1 domoticz root  119 Jun  7 18:23 script_variable3.lua
-rw-r--r-- 1 domoticz root  172 Jun  7 18:23 script_wildcard1.lua
-rw-r--r-- 1 domoticz root  178 Jun  7 18:23 script_wildcard2.lua
-rw-r--r-- 1 domoticz root  175 Jun  7 18:23 script_wildcard3.lua
-rw-r--r-- 1 domoticz root  227 Jun  7 18:23 script_with_active_method.lua
-rw-r--r-- 1 domoticz root  225 Jun  7 18:23 script_with_time-contrained_device.lua
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

Jumper3126 wrote: Monday 20 July 2020 21:46 I'm having the same issue, after adding

Code: Select all

data = {AircoNight = { initial = 0 } },
to a scriipt that has been running without any issues.
I not get
Error: EventSystem: in /usr/local/domoticz/dzVents/runtime/dzVents.lua: /usr/local/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')
I have domoticz 2020.2 (build 12127) running on my synology NAS.
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
the data files are not in <domoticz dir>/dzVents/runtime/ but in <domoticz dir>/scripts/dzVents/data/
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by Jumper3126 »

waaren wrote: Monday 20 July 2020 22:34
Jumper3126 wrote: Monday 20 July 2020 21:46 I'm having the same issue, after adding

Code: Select all

data = {AircoNight = { initial = 0 } },
to a scriipt that has been running without any issues.
I not get
Error: EventSystem: in /usr/local/domoticz/dzVents/runtime/dzVents.lua: /usr/local/domoticz/dzVents/runtime/EventHelpers.lua:108: attempt to index a boolean value (local 'fileStorage')
I have domoticz 2020.2 (build 12127) running on my synology NAS.
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
the data files are not in <domoticz dir>/dzVents/runtime/ but in <domoticz dir>/scripts/dzVents/data/
Directory structure on synology is not as clear to me as it is on raspberry
Found the correct 0 size file, removed it, which solved the issue
Thanks again Waaren
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by Jumper3126 »

Small reminder to myself (so I dont have to search the location when it happends again)
On synology use:

Code: Select all

cd /usr/local/domoticz/var/scripts/dzVents/data/
sudo ls -Rla
sudo rm __data_V Electricity calculations.lua
tezzlicious
Posts: 39
Joined: Saturday 09 April 2016 13:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by tezzlicious »

Out of nowhere this happened to me today. It was __data_global_data.lua. Thanks for the solution.
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by Jumper3126 »

@waaren

This issue keeps on recurring, more or less once a month, any possibility to solve this permanently?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: attempt to index local 'fileStorage' (a boolean value)

Post by waaren »

Jumper3126 wrote: Tuesday 19 January 2021 10:58 @waaren

This issue keeps on recurring, more or less once a month, any possibility to solve this permanently?
It has been solved from a dzVents perspective in build 12834 but the root cause cannot be solved within domoticz. Something external is causing that the file gets corrupted in the first place.
Could be a server crash or a full file-system or power outage, etc..
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests