Page 1 of 1

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

Posted: Saturday 09 May 2020 15:00
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

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

Posted: Saturday 09 May 2020 16:00
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

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

Posted: Saturday 09 May 2020 16:13
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.

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

Posted: Saturday 09 May 2020 16:25
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