Univention Bugzilla – Bug 47373
Horde upgrade to 5.2.17-2 with wrong timezone definition
Last modified: 2018-08-22 14:26:23 CEST
When upgrading Horde to version 5.2.17-2 a new Univention Docker image is used (docker.software-univention.de/ucs-appbox-amd64:4.3-0) The upgrade was not successful. I had to uninstall and install again. Find description here: https://help.univention.com/t/horde-calender-times-screwed-after-upgrade-reinstall/9264/4 /usr/share/zoneinfo/UTC is a soft link to /usr/share/zoneinfo/Europe/Berlin instead of being a separate file. When replacing the link with the file from the UCS Master it works just fine.
There is a school customer affected. Replacing the /usr/share/zoneinfo/UTC file like mentioned in the link above worked here.
Problem is: in appbox 4.3 (debian stretch in general) /etc/localtime is a link (and no longer a file as in previous debian versions). -> docker run --rm docker.software-univention.de/ucs-appbox-amd64:4.3-0 ls -la /etc/localtime lrwxrwxrwx 1 root root 27 Feb 13 00:00 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC The same is true for UCS itself. -> ls -la /etc/localtime lrwxrwxrwx 1 root root 33 Mai 18 10:43 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin And during the app installation we copy /etc/localtime from the host into the container. Prior to 4.3 this copied a file into the container. But now with debian/stretch we copy a link into the destination of /etc/localtime in the container host: /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin container: /etc/localtime -> /usr/share/zoneinfo/Etc/UTC container: /usr/share/zoneinfo/Etc/UTC -> ../UTC host -> docker cp /etc/localtime id:/etc/localtime container: /usr/share/zoneinfo/UTC -> /usr/share/zoneinfo/Europe/Berlin This seems wrong, we should remove the /etc/localtime link in the container first. host: /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin container: -> rm /etc/localtime host: -> docker cp /etc/localtime id:/etc/localtime container /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin container: -> dpkg-reconfigure -f noninteractive tzdata Current default time zone: 'Europe/Berlin' Local time is now: Thu Jul 19 14:43:17 CEST 2018. Universal Time is now: Thu Jul 19 12:43:17 UTC 2018.
fixed by removing /etc/localtime (and /etc/timezone) in the container before copying univention-appcenter: 837dc14abc753eec6872991624082e8e37031e55 yaml: c5cbb5041b1448c27c4c04fd9f338b8905c4f77d
Changeset: OK YAML: OK @Felix: Please set the SupportedUCSVersions of Horde accordingly as soon as this erratum has been released.
<http://errata.software-univention.de/ucs/4.3/211.html>