Page 4 of 7

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

Posted: Saturday 21 August 2021 21:46
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?

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

Posted: Sunday 22 August 2021 9:07
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?

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

Posted: Sunday 29 August 2021 16:52
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

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

Posted: Sunday 29 August 2021 18:14
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

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

Posted: Sunday 29 August 2021 20:55
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?

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

Posted: Wednesday 08 September 2021 21:13
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

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

Posted: Thursday 09 September 2021 16:48
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 2177 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 2177 times

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

Posted: Saturday 11 September 2021 21:27
by Platte73
Here the screenshots of my synology settings and the winscp
Synplogy.PNG
Synplogy.PNG (36.94 KiB) Viewed 2155 times
Winscp.PNG
Winscp.PNG (17.67 KiB) Viewed 2155 times

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

Posted: Saturday 11 September 2021 21:54
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

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

Posted: Monday 13 September 2021 19:56
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 2128 times

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

Posted: Monday 13 September 2021 20:10
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

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

Posted: Monday 13 September 2021 20:48
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 2123 times

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

Posted: Monday 13 September 2021 22:28
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

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

Posted: Wednesday 15 September 2021 15:55
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

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

Posted: Wednesday 15 September 2021 20:21
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

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

Posted: Wednesday 15 September 2021 21:50
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

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

Posted: Tuesday 21 September 2021 12:13
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!

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

Posted: Wednesday 29 September 2021 20:34
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

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

Posted: Tuesday 05 October 2021 15:51
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 !

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

Posted: Tuesday 05 October 2021 22:04
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