Error: EventSystem: problem writing file:

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

Moderator: leecollings

Post Reply
feliw124
Posts: 10
Joined: Saturday 26 February 2022 20:42
Target OS: Windows
Domoticz version:
Contact:

Error: EventSystem: problem writing file:

Post by feliw124 »

Hello everyone, I am having problem when trying to save to dzVents code, the log page says Error: EventSystem: problem writing file:. I read online that this problem comes when you dont have the generated_scripts directory, the problem is that I do have that folder. I tried to erasing it and making it again and still nothing. Does someone Know how to fix my problem?
exact error message: EventSystem: problem writing file: C:\Program Files (x86)\Domoticz\scripts\dzVents\generated_scripts\Script #1.lua
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Error: EventSystem: problem writing file:

Post by jvdz »

Is Domoticz running with Elevated rights so it is allowed to write something in the directory?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
feliw124
Posts: 10
Joined: Saturday 26 February 2022 20:42
Target OS: Windows
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by feliw124 »

It should, how can I be sure?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Error: EventSystem: problem writing file:

Post by waltervl »

Are you running Domoticz in a Docker?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
feliw124
Posts: 10
Joined: Saturday 26 February 2022 20:42
Target OS: Windows
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by feliw124 »

No, just Domoticz.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Error: EventSystem: problem writing file:

Post by waltervl »

Ah, I see now you asked 2 similar questions now. This is a little bit confusing....
viewtopic.php?f=59&t=38132
Please let's keep it in this topic.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
feliw124
Posts: 10
Joined: Saturday 26 February 2022 20:42
Target OS: Windows
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by feliw124 »

Yes, I am sorry. At first I thought that dzVent was not working but then I found out that files were not even saving.
PeterM
Posts: 6
Joined: Wednesday 18 October 2017 16:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by PeterM »

In Windows you can run the application as administrator. That solved the problem in Windows, but how to do the same in Synology 7.1 ?
So, its a matter of privileges. I know how to log in as root, but i don't know how and where to set privileges to domoticz.
PeterM
Posts: 6
Joined: Wednesday 18 October 2017 16:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by PeterM »

in windows setting the permissions to full control of the directory generated_scripts works for me.
go to C:\Program Files (x86)\Domoticz\scripts\dzVents
right click on generated_scripts
choose properties
choose security
click on edit
choose users
check full control

In windows I can solve the problem, but I have the same problem with domoticz on Synology .
can't write to /volume1/@appdata/domoticz/scripts/dzVents/generated_scripts/

setting permission chmod 777 generated_scripts doesn't work.

Do the same with directory data
ArnoutZ
Posts: 12
Joined: Monday 30 November 2015 17:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by ArnoutZ »

I have a similar problem. Since two weeks I am running Domoticz in Qnap Container Station.
I get the following error:
Error: EventSystem: problem writing file: /opt/domoticz/userdata/scripts/dzVents/generated_scripts/Hue syncen met Domoticz.lua

Any idea how I should solve this?

Also, I am struggling with the Docker term “Entrypoint”. While installing the container I leave the Entrypoint field empty as I don’t know what to fill in. Despite this, Domoticz runs fine on my Qnap NAS. Should I specify an Entrypoint?
Could the error be related to the fact that I didn’t specify an Entrypoint?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Error: EventSystem: problem writing file:

Post by waltervl »

Qnap entrypoint is possibly volume mount path as described in https://hub.docker.com/r/domoticz/domoticz ?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ArnoutZ
Posts: 12
Joined: Monday 30 November 2015 17:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error: EventSystem: problem writing file:

Post by ArnoutZ »

The only line I see in this article which mentions a mount point is this one: /etc/localtime
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Error: EventSystem: problem writing file:

Post by waltervl »

I meant this line
-v <path for config files>:/opt/domoticz/userdata

<path for config files> has to be replaced to a path on your Qnap disk.
Perhaps also check the synology docker installation and find the synonyms for Qnap terms https://www.domoticz.com/wiki/Synology
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
frank666
Posts: 17
Joined: Monday 07 December 2020 10:11
Target OS: Linux
Domoticz version: 2024.7
Location: San Marino

Re: Error: EventSystem: problem writing file:

Post by frank666 »

  • I had this problem in docker when I upgraded to version 2023.1.
  • The old version of domoticz saved the scripts in /opt/domoticz/userdata/_data..... the new version in /opt/domoticz/userdata .
  • So in the volume we are going to retrieve or create , we have to recreate or copy the /scripts folder with all the subdirectories.
Below is my retrieved volume with the scripts moved
movescripts.jpg
movescripts.jpg (9.25 KiB) Viewed 824 times
Domoticz running on Docker,Orange Pi Zero Plus
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest