Page 1 of 1

dzVents error 3.1.8

Posted: Thursday 09 March 2023 14:26
by BartSr
Hi,
After I started up my systems I got next error which never occured before. Any Idea how to deal with?
By the way: is there somewhere an overview explaining the error messages?
Thanks
-Bart

Code: Select all

2023-03-09 14:20:00.491 Error: dzVents: Error: (3.1.8) Afzonderlijke Meterstanden 1.10: There was a problem writing the storage values
2023-03-09 14:20:00.491 Error: dzVents: Error: (3.1.8) Afzonderlijke Meterstanden 1.10: /home/pi/domoticz/dzVents/runtime/persistence.lua:24: /home/pi/domoticz/scripts/dzVents/data/__data_Afzonderlijke meterstanden.lua: Permission denied
and another one

Code: Select all

2023-03-09 14:20:00.507 Error: dzVents: Error: (3.1.8) keukenradiator: There was a problem writing the storage values
2023-03-09 14:20:00.507 Error: dzVents: Error: (3.1.8) keukenradiator: /home/pi/domoticz/dzVents/runtime/persistence.lua:24: /home/pi/domoticz/scripts/dzVents/data/__data_global_data.lua: Permission denied

Re: dzVents error 3.1.8

Posted: Thursday 09 March 2023 14:35
by RonkA
Maybe it could be a disk space issue?

Re: dzVents error 3.1.8

Posted: Thursday 09 March 2023 14:39
by willemd
My guess is that the folder for the persistent variables is somehow not accessible.
Check the folder $HOME/domoticz/scripts/dzVents/data

Check this page
https://www.domoticz.com/wiki/DzVents:_ ... stent_data
and then scroll down to "how does the storage stuff work"

Re: dzVents error 3.1.8

Posted: Thursday 09 March 2023 15:34
by waltervl
Are you using docker? As that also needs sometimes special considerations on folders.

Re: dzVents error 3.1.8

Posted: Monday 04 December 2023 19:52
by philips
waltervl wrote: Thursday 09 March 2023 15:34 Are you using docker? As that also needs sometimes special considerations on folders.
I'm getting the same error and I'm using docker version (installed the way from here: https://github.com/domoticz/domoticz-docker)
In docker there where no /opt/domoticz/dzVents/rest_of_the_files_and_folder / where also there should be the missing persistance.lua.
I created those by hand, as well as the missing /opt/domoticz/userdata/scripts/dzVents/data/__nameofthescript.lua but the error still pops up.

How to fix this ?

I suppose there are missing paths in the docker-compose.yml file to get the dzVents storage function to work, yes ?
Mine looks like this:

Code: Select all

version: '3.3'

services:
  domoticz:
    image: domoticz/domoticz:stable
    container_name: domoticz
    restart: unless-stopped
    # Pass devices to container
    # devices:
    #   - "/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/ttyACM0"
    ports:
      - "8080:8080"
    volumes:
      - ./config:/opt/domoticz/userdata
    environment:
      - TZ=Europe/Warsaw
      #- LOG_PATH=/opt/domoticz/userdata/domoticz.log

Re: dzVents error 3.1.8

Posted: Monday 04 December 2023 21:44
by waltervl
For docker it is important to set user access correctly.
Add the current user (eg Pi) to the docker group with

Code: Select all

sudo usermod -aG docker ${USER}
https://www.domoticz.com/wiki/Docker#In ... nux_system