Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Eternity »

Henk31 wrote: Monday 09 August 2021 15:53 Following this guide I've managed to switch form the Jadahl package to the domoticz-docker. Domoticz is up and running but the P1 meter doesn't show the gasmeter. In the logs I've found the following error: P1 Slimme Meter: Gas meter clock is -1628516650 seconds ahead - wait for my clock to catch up. How can I solve this problem? Time and timezone in my Synology and docker are correct.
Had the same problem. Check the docker environment. Is will be USA. I installen another Domoticz container and made sure it is correct time zone. P1 works now.


Anyone solve the error when you try to save Settings?
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Eternity »

Henk31 wrote: Monday 09 August 2021 15:53 Following this guide I've managed to switch form the Jadahl package to the domoticz-docker. Domoticz is up and running but the P1 meter doesn't show the gasmeter. In the logs I've found the following error: P1 Slimme Meter: Gas meter clock is -1628516650 seconds ahead - wait for my clock to catch up. How can I solve this problem? Time and timezone in my Synology and docker are correct.
Had the same problem. Check the docker environment. Is will be USA. I installed another Domoticz container and made sure it is correct time zone. P1 works now.


Anyone solve the error when you try to save Settings?
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

finally had a moment to move to the docker image version.

1 created the docker container with all the correct mount points
2 created all the directories on the synology where the docker container maps to
3 copied al the unix scripts
4 made a backup from current running domoticz
5 stopped domoticz
6 started docker image
7 restored database(docker image is stopped automatically)
8 VERY IMPORTANT, clear the browser cache(i did not see anything until i did)
9 started docker image.
10 everything working, no write errors, i did not even had to install the usb 6.2 drivers

no i will have to wait to see everything works as axpected but a quick check learns that zwave is working as well as the RFXCOM

the only error i got was this

Status: Aeonlabs Z-wave stick Gen5: A DNS Error Occurred
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

regarding people have write errors or problems with save settings

you have opt/domoticz/userdata mapped to docker/domoticz(this is a directory on your synology)

make sure you have or create these directories

/volume1/docker/domoticz/scripts/dzVents/generated_scripts
/volume1/docker/domoticz/scripts/dzVents/scripts
/volume1/docker/domoticz/scripts/logrotate
/volume1/docker/domoticz/scripts/templates
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

this was explained in the first post
- Tab 'Volume' -> 'add folder' and select (or create and select) 'docker/domoticz', then 'connect path' -> /opt/domoticz/userdata

what you are doing here is map internal directory of the docker container(/opt/domoticz/userdata) to an external Read/write directory on your synology /volume1/docker/domoticz

so the docker container thinks it is writing to userdata but it actually writes to an external directory on your synology.
Platte73 wrote: Sunday 15 August 2021 20:08
That looks like you try to save into your running container?
Do you made a /config mountpoint or something pointing to a local location?
Can you tell me how to create such a point?
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Platte73 »

Gravityz wrote: Sunday 29 August 2021 20:55 this was explained in the first post
- Tab 'Volume' -> 'add folder' and select (or create and select) 'docker/domoticz', then 'connect path' -> /opt/domoticz/userdata

what you are doing here is map internal directory of the docker container(/opt/domoticz/userdata) to an external Read/write directory on your synology /volume1/docker/domoticz

so the docker container thinks it is writing to userdata but it actually writes to an external directory on your synology.
Platte73 wrote: Sunday 15 August 2021 20:08
That looks like you try to save into your running container?
Do you made a /config mountpoint or something pointing to a local location?
Can you tell me how to create such a point?
I already done that. But saving is not possible. this is not working for me
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

@Platte73
what domoticz version are you using.

can you post a screenshot of your setup like the one i am posting now. if paths are correctly mounted you should not have write errors

from synology docker user interface
if mountpoints are missing please create
domoticz-path.JPG
domoticz-path.JPG (74.2 KiB) Viewed 2022 times

from winscp directory view
if directories are missing please create
the rights should be root root
domoticz directories.JPG
domoticz directories.JPG (26.4 KiB) Viewed 2022 times
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Platte73 »

Here the screenshots of my synology settings and the winscp
Synplogy.PNG
Synplogy.PNG (36.94 KiB) Viewed 2000 times
Winscp.PNG
Winscp.PNG (17.67 KiB) Viewed 2000 times
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

and what is inside the scripts directory.
please check if you have the same directories as i have, if not create them.
also create the backup directorie and enable automatic backups
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Platte73 »

Here a screenshot of my scripts folder.

I also created the backups folder. Can you tell me how and where to activate the automatic backup

Winscp1.PNG
Winscp1.PNG (32.35 KiB) Viewed 1973 times
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

automatic backups are enabled from domoticz-settings-system.(but first create the directories below)

please note that write errors are most of the times caused because domoticz can not find an existing directory.

so please look at my directory structure and compare it with yours.

please open the complete directory structure like i did

you need to have these directories on your synology

volume1/docker/domoticz/backups
volume1/docker/domoticz/scripts
volume1/docker/domoticz/scripts/dzvents
volume1/docker/domoticz/scripts/logrotate
volume1/docker/domoticz/scripts/templates (this directory has to include the templates from container /opt/domoticz/scripts/templates)
volume1/docker/domoticz/scripts/dzvents/data
volume1/docker/domoticz/scripts/dzvents/dumps
volume1/docker/domoticz/scripts/dzvents/generated_scripts
volume1/docker/domoticz/scripts/dzvents/scripts
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Platte73 »

I have all the same dir's as you have. But in my domoticz log I also have an error. Can this be the problem for the saving settings
Domoticz_log.PNG
Domoticz_log.PNG (10.57 KiB) Viewed 1968 times
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

maybe

it says port 443 is already in use

try to stop the conbtainer, change port 443 to 8443 and start it again.

i do not think this has something to do with the write error but it might solve this error
Henk31
Posts: 2
Joined: Monday 09 August 2021 15:46
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Henk31 »

Eternity wrote: Saturday 21 August 2021 21:46
Henk31 wrote: Monday 09 August 2021 15:53 Following this guide I've managed to switch form the Jadahl package to the domoticz-docker. Domoticz is up and running but the P1 meter doesn't show the gasmeter. In the logs I've found the following error: P1 Slimme Meter: Gas meter clock is -1628516650 seconds ahead - wait for my clock to catch up. How can I solve this problem? Time and timezone in my Synology and docker are correct.
Had the same problem. Check the docker environment. Is will be USA. I installen another Domoticz container and made sure it is correct time zone. P1 works now.


THX! Installed another domoticz container which solved the problem
Platte73
Posts: 16
Joined: Thursday 28 January 2021 19:23
Target OS: -
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Platte73 »

Gravityz wrote: Monday 13 September 2021 22:28 maybe

it says port 443 is already in use

try to stop the conbtainer, change port 443 to 8443 and start it again.

i do not think this has something to do with the write error but it might solve this error
This solves everything for me. Settings can now be saved :D

Thank you so much
Gravityz
Posts: 583
Joined: Wednesday 16 December 2015 19:13
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Netherlands
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Gravityz »

nice.
glad we could solve this problem for you.
Platte73 wrote: Wednesday 15 September 2021 20:21
Gravityz wrote: Monday 13 September 2021 22:28 maybe

it says port 443 is already in use

try to stop the conbtainer, change port 443 to 8443 and start it again.

i do not think this has something to do with the write error but it might solve this error
This solves everything for me. Settings can now be saved :D

Thank you so much
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Eternity »

Gravityz wrote: Monday 13 September 2021 22:28 maybe

it says port 443 is already in use

try to stop the conbtainer, change port 443 to 8443 and start it again.
Solved the save issue for me too!
Thanks!
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Jumper3126 »

Anyone else has made the jump to DSM 7.0 yet? And got synology on dockers running?
Like to know more experience.



famous wrote: Thursday 05 August 2021 22:58 I just updated my synology (DS218+) this evening to DSM7.
Domoticz didn't work ....like expected, but after backup, remove and install from synology package ...it did install successful and it runs. Before it did never and choose manual install.
After restore my database there were some missing files and directories which i solved with copy those folders from https://github.com/domoticz/domoticz/re ... tag/2020.2

After that it runs without errors, only the P1 meter is still a problem.
I followed what earlier was mentioned about the insmod of those 2 modules. Now i see the USB in Domoticz but still don't work.
When i 'cat' the usb-device i see it is communicating (i see data) so, there must be something missing on synology side.
I'm not sure about giving admin rights to Domoticz. I did it from services and then applications. I choose group and admins giving rights ...
Still the P1 meter doesn't work ... i guess i make some mistake on that giving admin rights to domoticz.
Anyone who knows?

Further my house is working again with domoticz on DSM7.0 :D
Deufo
Posts: 6
Joined: Thursday 30 July 2020 10:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Deufo »

Hello,
Update to DSM7.0 ok, the last docker contains python and very soon curl, so it's really easy to use it.
Download the official image (domoticz/domoticz), create with autostart and high privilege, complete the folder part (docker/domoticz - /opt/domoticz/userdata) and the ports (replace Auto, avoid 443 used by the system).
Create a plugin folder in userdata and that's it !
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Synology - guide to switch from Jadahl package to official docker (domoticz-docker)

Post by Jumper3126 »

Deufo wrote: Tuesday 05 October 2021 15:51 Hello,
Update to DSM7.0 ok, the last docker contains python and very soon curl, so it's really easy to use it.
Download the official image (domoticz/domoticz), create with autostart and high privilege, complete the folder part (docker/domoticz - /opt/domoticz/userdata) and the ports (replace Auto, avoid 443 used by the system).
Create a plugin folder in userdata and that's it !
Thanks for your reply. Do you also use the USB ports, for RFXCOM, zigbee2mqtt, or something like that? Also had a discussion ongoing about this topic on FB, and there it was mentioned that dockers and DSM7 is a no-go if you want to keep using USB.
See this for more info: https://www.youtube.com/watch?v=S2Uu35xi11E
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest