Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)
Posted: Sunday 18 April 2021 19:12
How can you run a lua script in docker.
Open source Home Automation System
https://forum.domoticz.com/
Code: Select all
2021-05-05 20:56:07.398 Error: EventSystem: problem writing file: /opt/domoticz/userdata/scripts/dzVents/generated_scripts/Monit-status-data.lua
2021-05-05 20:56:07.398 Error: EventSystem: problem writing file: /opt/domoticz/userdata/scripts/dzVents/generated_scripts/VPN Status.lua
2021-05-05 20:56:07.398 Error: EventSystem: problem writing file: /opt/domoticz/userdata/scripts/dzVents/generated_scripts/Luftdaten.lua
Thanks for the update guide. Worked great. Never did a domoticz update went that fast.Gravityz wrote: ↑Saturday 01 May 2021 21:30 are you trying to update from the running docker image(so from domoticz)
do not know that will work.
updating docker containers can be done way easier and without the loss of your previous(working) container
from the synology user interface goto docker-container and
select the domoticz container
stop it
rename it to domoticz-old
goto register
find domoticz/domoticz image
download it(it will replace the current image with the new one)
go back to the old container domoticz-old
choose settings duplicate
name it domoticz
start the container
voila you have the latest domoticz running.
you can always go back to your old container because you have that one as well
ArjenvM wrote: ↑Saturday 15 May 2021 9:56Thanks for the update guide. Worked great. Never did a domoticz update went that fast.Gravityz wrote: ↑Saturday 01 May 2021 21:30 are you trying to update from the running docker image(so from domoticz)
do not know that will work.
updating docker containers can be done way easier and without the loss of your previous(working) container
from the synology user interface goto docker-container and
select the domoticz container
stop it
rename it to domoticz-old
goto register
find domoticz/domoticz image
download it(it will replace the current image with the new one)
go back to the old container domoticz-old
choose settings duplicate
name it domoticz
start the container
voila you have the latest domoticz running.
you can always go back to your old container because you have that one as well
I have both Domoticz and deCONZ running in two seperate containers. But, I cannot get the deCONZ-plugin running in Domoticz. Please, who can give me some help? Containers are running on Synology 218+Thorgal789 wrote: ↑Sunday 28 February 2021 9:15I don't know Docker, but probably will be better to use another docker just for deconz ? https://github.com/marthoc/docker-deconz
Take care, never update the firwmare using docker.
It s a container issue, a plugin issue, or a domoticz issue ?
I do not see deCONZ plugin in Domoticz, But it is in the plugin folder. So, what do I miss to communicate between Domoticz and deConz which both are running in their container? In other words, how to install the plugin in Domoticz on docker?Thorgal789 wrote: ↑Monday 24 May 2021 15:20It s a container issue, a plugin issue, or a domoticz issue ?
You are not here yet, you need first to install the deconz plugin, and after that configure the plugin to connect to deconz.what do I miss to communicate between Domoticz and deConz which both are running in their container
Unfortunately, I don't know how to install plugin in docker installation, can be from python, but I don't think it s the problem on docker container. For me it s more a folder issue, on docker, folders paths are more "exotic" than on classic OS.I do not see deCONZ plugin in Domoticz
Domoticz log says: Error: deCONZ: (deCONZ) failed to load 'plugin.py', Python Path used was ':/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.Thorgal789 wrote: ↑Tuesday 25 May 2021 16:29You are not here yet, you need first to install the deconz plugin, and after that configure the plugin to connect to deconz.what do I miss to communicate between Domoticz and deConz which both are running in their container
Unfortunately, I don't know how to install plugin in docker installation, can be from python, but I don't think it s the problem on docker container. For me it s more a folder issue, on docker, folders paths are more "exotic" than on classic OS.I do not see deCONZ plugin in Domoticz
Take a look on domotics logs on startup, can be usefull.
The problem is from the python library LIBS but for yours2021-05-28 09:33:42.200 Error: deCONZ: (deCONZ) Module Import failed: ' Name: LIBS'
I think it s something generic2021-05-28 09:33:42.200 Error: deCONZ: (deCONZ) Module Import failed: ' Name: plugin'
Code: Select all
sudo -H pip3 install requests
sudo -H pip3 install json
If yes, what does the log file show on errors?- Check 'run as admin' (or something similar, in dutch it is 'Uitvoeren met hoge machtiging)
run as admin is on
Code: Select all
2021-06-05 11:23:26.365 Sunrise: 05:20:00 SunSet: 21:57:00
2021-06-05 11:23:26.365 Day length: 16:37:00 Sun at south: 13:39:00
2021-06-05 11:23:26.365 Civil twilight start: 04:32:00 Civil twilight end: 22:46:00
2021-06-05 11:23:26.365 Nautical twilight start: 03:15:00 Nautical twilight end: 00:02:00
2021-06-05 11:23:26.365 There is no astronomical twilight in the space of 24 hours
2021-06-05 11:23:26.383 Active notification Subsystems: (0/13)
2021-06-05 11:23:26.387 Starting shared server on: :::6144
2021-06-05 11:23:26.360 Status: Domoticz V2021.1 (build 13277) (c)2012-2021 GizMoCuz
2021-06-05 11:23:26.360 Status: Build Hash: 16492be90, Date: 2021-05-25 07:52:07
2021-06-05 11:23:26.360 Status: Startup Path: /opt/domoticz/
2021-06-05 11:23:26.382 Status: PluginSystem: Started, Python version '3.7.3'.
2021-06-05 11:23:26.384 Status: WebServer(HTTP) started on address: :: with port 8085
2021-06-05 11:23:26.387 Status: RxQueue: queue worker started...
2021-06-05 11:23:26.387 Status: TCPServer: shared server started...
2021-06-05 11:23:26.387 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use
2021-06-05 11:23:26.387 Error: WebServer(SSL) check privileges for opening ports below 1024
2021-06-05 11:23:28.388 Status: NotificationSystem: thread started...
2021-06-05 11:23:28.389 Status: EventSystem: reset all events...
2021-06-05 11:23:28.389 Status: EventSystem: reset all device statuses...
2021-06-05 11:23:28.402 Status: Python EventSystem: Initializing event module.
2021-06-05 11:23:28.402 Status: EventSystem: Started
2021-06-05 11:23:28.402 Status: EventSystem: Queue thread started...
Code: Select all
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.429 Status: EventSystem: Queue thread started...
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.429 Status: EventSystem: Started
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.428 Status: Python EventSystem: Initializing event module.
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.416 Status: EventSystem: reset all device statuses...
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.416 Status: EventSystem: reset all events...
2021-06-05 09:12:37,stdout,2021-06-05 11:12:37.415 Status: NotificationSystem: thread started...
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.415 Status: RxQueue: queue worker started...
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.415 Status: TCPServer: shared server started...
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.415 Starting shared server on: :::6144
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.414 [1;31mError: WebServer(SSL) check privileges for opening ports below 1024[0;0m
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.414 [1;31mError: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use[0;0m
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.411 Status: WebServer(HTTP) started on address: :: with port 8085
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.411 Active notification Subsystems: (0/13)
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.408 Status: PluginSystem: Started, Python version '3.7.3'.
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.392 There is no astronomical twilight in the space of 24 hours
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.392 Nautical twilight start: 03:15:00 Nautical twilight end: 00:02:00
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.392 Civil twilight start: 04:32:00 Civil twilight end: 22:46:00
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.392 Day length: 16:37:00 Sun at south: 13:39:00
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.392 Sunrise: 05:20:00 SunSet: 21:57:00
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.381 Status: Startup Path: /opt/domoticz/
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.380 Status: Build Hash: 16492be90, Date: 2021-05-25 07:52:07
2021-06-05 09:12:35,stdout,2021-06-05 11:12:35.380 Status: Domoticz V2021.1 (build 13277) (c)2012-2021 GizMoCuz
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #16 /lib/x86_64-linux-gnu/libc.so.6 : clone + 0x3f [0x7f2ae10ea4cf][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #15 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x7fa3 [0x7f2ae1365fa3][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #14 /opt/domoticz/domoticz : + 0xa039df [0x559b25ad99df][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #13 /opt/domoticz/domoticz : + 0x3f4c98 [0x559b254cac98][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #12 /opt/domoticz/domoticz : http::server::server_base::run() + 0x52 [0x559b258ee3c2][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #11 /opt/domoticz/domoticz : boost::asio::detail::scheduler::run(boost::system::error_code&) + 0x4e8 [0x559b255c2c78][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #10 /opt/domoticz/domoticz : + 0x7e371e [0x559b258b971e][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #9 /opt/domoticz/domoticz : http::server::connection::handle_read(boost::system::error_code const&, unsigned long) + 0x619 [0x559b258b4b89][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.056 [1;31mError: #8 /opt/domoticz/domoticz : http::server::cWebemRequestHandler::handle_request(http::server::request const&, http::server::reply&) + 0x9b6 [0x559b258c5ab6][0;0m"
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #7 /opt/domoticz/domoticz : http::server::cWebem::CheckForPageOverride(http::server::_tWebEmSession&, http::server::request&, http::server::reply&) + 0xaf6 [0x559b258bfdb6][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #6 /opt/domoticz/domoticz : http::server::CWebServer::PostSettings(http::server::_tWebEmSession&, http::server::request const&, http::server::reply&) + 0x91a [0x559b254f9b1a][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #5 /opt/domoticz/domoticz : http::server::CWebServerHelper::LoadUsers() + 0x24 [0x559b2556a534][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #4 /opt/domoticz/domoticz : http::server::CWebServer::LoadUsers() + 0x80 [0x559b25501d00][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #3 /opt/domoticz/domoticz : http::server::cWebem::ClearUserPasswords() + 0xd [0x559b258bd9ad][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #2 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x12730 [0x7f2ae1370730][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #1 /opt/domoticz/domoticz : signal_handler(int, siginfo_t*, void*) + 0x205 [0x559b25488115][0;0m
2021-06-05 09:12:34,stdout,2021-06-05 11:12:34.055 [1;31mError: #0 /opt/domoticz/domoticz : + 0x3b16b3