attempt to index local 'fileStorage' (a boolean value) [SOLVED]
Moderator: leecollings
-
- 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)
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?
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?
- 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)
Which script triggers the error ? Not the dzVents.lua but the user script ?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?
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 60
- Joined: Tuesday 03 April 2018 18:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
- 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]
One datafile does not seem right (size 0) Can you try to remove that one using ?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/
Code: Select all
sudo rm /home/pi/domoticz/scripts/dzVents/data__data_Timer Etalage.lua
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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)
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
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
Raspi 4
- 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)
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
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
- Spoiler: show
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
- 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)
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
- 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)
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
Re: attempt to index local 'fileStorage' (a boolean value)
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/
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
- 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)
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: attempt to index local 'fileStorage' (a boolean value)
I was running on al late beta, now on the latest beta "Version: 2020.2 (build 12138)"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?
dzUsageTodays is disabled, after your suggestion.
Error is gone now, don't now the cause
- 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)
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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)
I'm having the same issue, after adding to a scriipt that has been running without any issues.
I not get
When I direct the CLI commands to the right directories, I get:
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
Code: Select all
data = {AircoNight = { initial = 0 } },
I not get
I have domoticz 2020.2 (build 12127) running on my synology NAS.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')
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
- 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)
the data files are not in <domoticz dir>/dzVents/runtime/ but in <domoticz dir>/scripts/dzVents/data/Jumper3126 wrote: ↑Monday 20 July 2020 21:46 I'm having the same issue, after addingto a scriipt that has been running without any issues.Code: Select all
data = {AircoNight = { initial = 0 } },
I not getI have domoticz 2020.2 (build 12127) running on my synology NAS.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')
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- 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)
Directory structure on synology is not as clear to me as it is on raspberrywaaren wrote: ↑Monday 20 July 2020 22:34the data files are not in <domoticz dir>/dzVents/runtime/ but in <domoticz dir>/scripts/dzVents/data/Jumper3126 wrote: ↑Monday 20 July 2020 21:46 I'm having the same issue, after addingto a scriipt that has been running without any issues.Code: Select all
data = {AircoNight = { initial = 0 } },
I not getI have domoticz 2020.2 (build 12127) running on my synology NAS.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')
No 0 size data files, but one test file, and some under scandir. Didn't remove anything yet to test.
Found the correct 0 size file, removed it, which solved the issue
Thanks again Waaren
-
- 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)
Small reminder to myself (so I dont have to search the location when it happends again)
On synology use:
On synology use:
Code: Select all
cd /usr/local/domoticz/var/scripts/dzVents/data/
sudo ls -Rla
sudo rm __data_V Electricity calculations.lua
-
- 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)
Out of nowhere this happened to me today. It was __data_global_data.lua. Thanks for the solution.
-
- 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)
@waaren
This issue keeps on recurring, more or less once a month, any possibility to solve this permanently?
This issue keeps on recurring, more or less once a month, any possibility to solve this permanently?
- 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)
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.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?
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 0 guests