Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/.....  [Solved]

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

Moderator: leecollings

Post Reply
Ayep
Posts: 15
Joined: Friday 27 March 2020 8:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: France
Contact:

Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/.....

Post by Ayep »

Hi,

My domoticz has been going haywire lately unfortunately. App actually crashed a few times on the syno server, and tried restoring a recent backup of it. Seems to have somewhat worked, although I still have one other problem (for another thread). However, since then, none of my DZvents scripts are working. Lua ones work fine. For every DZVents script I have, I get the following in my log :

Code: Select all

 Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/[....].lua
I have to disable the scripts to stop the error.

Any clue what is up with that?

DZVents is enabled in the "other" section of my settings. Used to run flawlessly too, so no idea what is going on here...

Thank you for your insights.

Best regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/.....

Post by waaren »

Can you check if this directory exists and if not create it with access rights drwxr-xr-x

cd /usr/local/domoticz/var/scripts/dzVents
mkdir generated_scripts
sudo chmod 755 generated_scripts
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Ayep
Posts: 15
Joined: Friday 27 March 2020 8:16
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: France
Contact:

Re: Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/.....  [Solved]

Post by Ayep »

Wow. Thank you for that.
Somehow there was no folder? In spite of that, the scripts could all be edited under domoticz. No idea what happened, maybe they were being stored somewhere else? Has the default location changed?

I had to create the following folder :

/volume1/@appstore/domoticz/var/scripts/dzVents (synology based domoticz setup).

I then created the subfolder "generated_scripts", chmod as instructed, and suddenly it was populated with my scripts.

Thank you very much again, I'm glad my scripts are working again.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error: EventSystem: problem writing file: /usr/local/domoticz/var/scripts/dzVents/generated_scripts/.....

Post by waaren »

Ayep wrote: Saturday 09 May 2020 16:13 Somehow there was no folder? In spite of that, the scripts could all be edited under domoticz. No idea what happened, maybe they were being stored somewhere else? Has the default location changed?
The scripts that populate the generated_scripts subdirectory are stored in the database and written to this directory when domoticz is started or if you create a new one.
If the directory is not available the process of copying them from the database to the OS file system obviously fails.
This process was not available until some time ago. Don't know exactly when it was introduced on Synology but it was available on Raspberry starting dzVents 2.0
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 1 guest