Hi
I installed CMX on my Synology NAS (DSM 7.0) DS218+ following instructions in the post How to run Cumulus MX on Synology NAS using Docker viewtopic.php?p=148956#p148956. I did include the -lang en-NZ parameter to get the imported dates working (first time I forgot and history was trash!!).
I did the install between 13:20 and 13:25
My issue is that the system time is GMT - ie 12 hours behind the local time. See screen shot from the from the Monthly Data log page.
Also attached are log files from the same time. You can see that log times are also 12 hours behind.
Does this matter to CMX?
Time on the NAS appears to be correct. Looks to be the time on container. Here is the container log. I tested an empty mono container and it has the same issue.
Any ideas anyone?
Cheers
Mark
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan IIS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Synology NAS Docker - system time is GMT
Moderator: mcrossley
-
MarkinNZ
- Posts: 9
- Joined: Thu 02 Sep 2021 7:39 am
- Weather Station: Davis Vue & WeatherGo Sensors
- Operating System: Synology NAS DS218+ DSM 7.0
Synology NAS Docker - system time is GMT
You do not have the required permissions to view the files attached to this post.
Last edited by MarkinNZ on Wed 13 Oct 2021 8:19 am, edited 1 time in total.
Mark
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Synology NAS Docker - system time is GMT
Looks like the timezone is incorrect in your Docker container. SSH into the container and issue the following command:
That will display the current timezone. If it is incorrect then change it by finding your timezone in the list of available timezones:
Then change timezone by using the following:
where <your-timezone> will probably be Pacific/Auckland or similar.
Code: Select all
timedatectlCode: Select all
timedatectl list-timezonesCode: Select all
sudo timedatectl set-timezone <your-timezone>
-
MarkinNZ
- Posts: 9
- Joined: Thu 02 Sep 2021 7:39 am
- Weather Station: Davis Vue & WeatherGo Sensors
- Operating System: Synology NAS DS218+ DSM 7.0
Re: Synology NAS Docker - system time is GMT
Thanks Freddie
Yes, I can confirm that the timezone is not correct on the container. Unfortunately it it the MS mono container and the timedatecrtl "command not found"
"date" does return the date/time and I can see that it is set to UTC.
Does this time impact CMX - otherwise it seems to be working fine. Only the log files appear to be out of sync.
Oh and I can't update the console time from CMX - that sends the UTC time. Unticked that option
cheers
Mark
Yes, I can confirm that the timezone is not correct on the container. Unfortunately it it the MS mono container and the timedatecrtl "command not found"
"date" does return the date/time and I can see that it is set to UTC.
Does this time impact CMX - otherwise it seems to be working fine. Only the log files appear to be out of sync.
Oh and I can't update the console time from CMX - that sends the UTC time. Unticked that option
cheers
Mark
Mark
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Synology NAS Docker - system time is GMT
Yes it does impact MX. I'm surprised that command doesn't work - what Linux distro and version are you running?
-
MarkinNZ
- Posts: 9
- Joined: Thu 02 Sep 2021 7:39 am
- Weather Station: Davis Vue & WeatherGo Sensors
- Operating System: Synology NAS DS218+ DSM 7.0
Re: Synology NAS Docker - system time is GMT
Hi
I found the fix. I had to set the environment variable on the mono docker container thus: You can do this after the container is built or you can use the revised script below.
I think that the revised deployment script is now below in include that in the initial setup if you are following the instructions referenced in the first post of this topic.
FYI I didn't test this but it looks ok! I've also included the language parameter in the script as I needed this for my data migration.
cheers
I found the fix. I had to set the environment variable on the mono docker container thus: You can do this after the container is built or you can use the revised script below.
I think that the revised deployment script is now below in include that in the initial setup if you are following the instructions referenced in the first post of this topic.
Code: Select all
sudo docker run --name CumulusMX --restart always -t -v '/volume1/opt/CumulusMX:/opt/CumulusMX' -e TZ='Pacific/Auckland' -dp 8998:8998 mono:latest /bin/sh -c 'cd /opt/CumulusMX; mono CumulusMX.exe -lang en-NZ'cheers
You do not have the required permissions to view the files attached to this post.
Mark
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container
Davis Vantage Vue running Vantage Pro2 with Solar and Daytime Fan ISS
WiFi Logger2
Synology NAS DS218+ running mono in a Docker container