CLuaHandler: cannot open watermeter.lua: No such file or directory
Moderator: leecollings
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
CLuaHandler: cannot open watermeter.lua: No such file or directory
CLuaHandler: cannot open /opt/domoticz/userdata/scripts/lua_parsers/watermeter.lua: No such file or directory
But the file is in /opt/stacks/domoticz/config/scripts/lua/watermeter.lua
I have made the location and file available, but no result. That why I need it through MQTT
But the file is in /opt/stacks/domoticz/config/scripts/lua/watermeter.lua
I have made the location and file available, but no result. That why I need it through MQTT
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
If you are running from docker: check your volumes. You probably have to make an extra link to /opt/domoticz/userdata/scripts (but I am no docker expert....)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 335
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
Code: Select all
volumes:
- ./config:/opt/domoticz/userdata
- ./config/www/templates:/opt/domoticz/www/templates
what I put in ./config/scripts/lua appears in /opt/domoticz/userdata/scripts/lua
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
I think i understand ...
I put the line in the config file, added the script in /opt/stacks/domoticz/config/scripts/lua/watermeter.lua
and restarted, but I still get: CLuaHandler: cannot open /opt/domoticz/userdata/scripts/lua_parsers/watermeter.lua: No such file or directory
I put the line in the config file, added the script in /opt/stacks/domoticz/config/scripts/lua/watermeter.lua
and restarted, but I still get: CLuaHandler: cannot open /opt/domoticz/userdata/scripts/lua_parsers/watermeter.lua: No such file or directory
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
you should put it in
/opt/stacks/domoticz/config/scripts/lua_parsers/watermeter.lua
You can check what happens if you login to the container with
and list the contents of folder /opt/domoticz/userdata/scripts/lua_parsers
/opt/stacks/domoticz/config/scripts/lua_parsers/watermeter.lua
You can check what happens if you login to the container with
Code: Select all
docker exec -it domoticz
Code: Select all
ls -l /opt/domoticz/userdata/scripts/lua_parsers
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 335
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
hmm,
my directory has a different name ...
my directory has a different name ...
Code: Select all
root@domoticz2:~# docker exec -it domoticz bash
root@domoticz:/opt/domoticz# ls -l /opt/domoticz/userdata/scripts/lua/
total 132
-rw-r--r-- 1 root root 69100 Jun 12 14:00 JSON.lua
-rw-r--r-- 1 root root 12387 Jun 12 14:00 XmlParser.lua
drwxr-xr-x 2 root root 4096 Jun 12 14:37 garbagecalendar
-rw-r--r-- 1 root root 1870 Jun 12 14:00 script_device_demo.lua
-rw-r--r-- 1 root root 1932 Jun 12 14:00 script_time_demo.lua
-rwxr-xr-x 1 root root 21692 Jun 12 14:00 script_time_garbagecalendar.lua
-rw-r--r-- 1 root root 5968 Jun 12 14:00 xml2lua.lua
drwxr-xr-x 2 root root 4096 Jun 12 14:00 xmlhandler
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
The point is that I don't have that directory, and if I make it it doesn't work!
/opt/stacks/domoticz/config/scripts/lua_parsers/watermeter.lua
/opt/stacks/domoticz/config/scripts/lua/watermeter.lua: this directory is made by the system : same problem as @eddieb
I don't know what you mean with getting direct entrance to the directory .....
/opt/stacks/domoticz/config/scripts/lua_parsers/watermeter.lua
/opt/stacks/domoticz/config/scripts/lua/watermeter.lua: this directory is made by the system : same problem as @eddieb
I don't know what you mean with getting direct entrance to the directory .....
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
And what if you create it from within the container?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
I,d like to try, can you lead me through the process please?
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
Please do the following:
waltervl wrote: ↑Thursday 12 June 2025 17:22 what happens if you login to the container withand list the contents of folder /opt/domoticz/userdata/scripts/lua_parsersCode: Select all
docker exec -it domoticz
Code: Select all
ls -l /opt/domoticz/userdata/scripts/lua_parsers
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
hjz@debian:/opt/stacks/domoticz$docker exec -it domoticz
docker: 'docker exec' requires at least 2 arguments
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
See 'docker exec --help' for more information
I did it from the docker directory, but it is asking for more arguments?
docker: 'docker exec' requires at least 2 arguments
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
See 'docker exec --help' for more information
I did it from the docker directory, but it is asking for more arguments?
-
- Posts: 335
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
Code: Select all
docker exec -it domoticz bash
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
I had to use: sudo docker exec -it domoticz bash
i was within the docker: root@355aab15c8a9
ls -l /opt/domoticz/userdata/scripts/lua_parsers : response was "No such file or directory"
I then made the directory lua_parsers and copied the file into it.
Ran domoticz and it worked!!
I got domoticz-solaredge also working that way! Good learning point!
i was within the docker: root@355aab15c8a9
ls -l /opt/domoticz/userdata/scripts/lua_parsers : response was "No such file or directory"
I then made the directory lua_parsers and copied the file into it.
Ran domoticz and it worked!!
I got domoticz-solaredge also working that way! Good learning point!
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
You have to be aware you have to do this everytime you update the Domoticz Docker image!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 242
- Joined: Friday 12 January 2018 8:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: CLuaHandler: cannot open watermeter.lua: No such file or directory
Thanks for the heads up.
I've now edited most of the plugins within the docker file, I don't know if that's the way, but it got domoticz-solaredge started up.
I've now edited most of the plugins within the docker file, I don't know if that's the way, but it got domoticz-solaredge started up.
Who is online
Users browsing this forum: Google [Bot] and 1 guest