Univention Bugzilla – Full Text Bug Listing |
Summary: | UTC binary in timezone info overwritten bei Europe/Berlin | ||
---|---|---|---|
Product: | UCS | Reporter: | Nico Gulden <gulden> |
Component: | App Center | Assignee: | Felix Botner <botner> |
Status: | CLOSED FIXED | QA Contact: | Eduard Mai <mai> |
Severity: | normal | ||
Priority: | P5 | CC: | botner, damrose, gohmann, grandjean, hahn, scheinig |
Version: | UCS 4.2 | ||
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=24090 | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 3: Simply Wrong: The implementation doesn't match the docu |
Who will be affected by this bug?: | 3: Will affect average number of installed domains | How will those affected feel about the bug?: | 3: A User would likely not purchase the product |
User Pain: | 0.154 | Enterprise Customer affected?: | Yes |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2017060921000241, 2017072621000172 | Bug group (optional): | External feedback, Troubleshooting |
Max CVSS v3 score: |
Description
Nico Gulden
2017-06-19 13:12:33 CEST
How was the setup done? DVD/Appliance/...? On my system with Kopano installed everything seems to be correct: # cat /etc/timezone Europe/Berlin # md5sum /usr/share/zoneinfo/Europe/Berlin 4790e83465681cefbf852aed265354bf /usr/share/zoneinfo/Europe/Berlin # md5sum /usr/share/zoneinfo/UTC c79354b8dbee09e62bbc3fb544853283 /usr/share/zoneinfo/UTC (In reply to Erik Damrose from comment #1) > How was the setup done? DVD/Appliance/...? I requested more information from the feedback source. (In reply to Erik Damrose from comment #1) > How was the setup done? DVD/Appliance/...? Response from the user: UCS-Installation-amd64.iso With a fresh installation from DVD the file is not overwritten. Customer reported that he installed via iso on a Proxmox virtual environment. I could reproduce the issue in my test environment. Proxmox is not the problem here. To reproduce you need to install a UCS 4.2 and Kopano-core (Kopano-WebApp). md5sum /usr/share/zoneinfo/UTC is still correct: c79354b8dbee09e62bbc3fb544853283 /usr/share/zoneinfo/UTC But after installing Nextcloud via Appcenter /usr/share/zoneinfo/UTC is overwritten: md5sum /usr/share/zoneinfo/UTC 4790e83465681cefbf852aed265354bf /usr/share/zoneinfo/UTC Thanks, so it seems to be an App Center / Docker issue. Problem is: /etc/localtime is a link to /usr/share/zoneinfo/Etc/UTC in some docker apps. On the host the overlay merged dir looks like this -> ls -al /var/lib/docker/overlay/f5f703e54212582833eba5577a838efda3d8c03864291a76e9f40a51ba3f6b7c/merged/etc/localtime lrwxrwxrwx 1 root root 27 Jul 19 16:41 /var/lib/docker/overlay/f5f703e54212582833eba5577a838efda3d8c03864291a76e9f40a51ba3f6b7c/merged/etc/localtime -> /usr/share/zoneinfo/Etc/UTC -> ls -la /usr/share/zoneinfo/Etc/UTC lrwxrwxrwx 1 root root 6 Nov 24 2016 /usr/share/zoneinfo/Etc/UTC -> ../UTC And the AppCenter always copies /etc/localtime to the container. Unfortunately, the appcenter copies the file on the host and overwrites /usr/share/zoneinfo/Etc/UTC with /etc/localtime. Fix: Use docker cp in the AppCenter docker cp [--help] CONTAINER:SRC_PATH DEST_PATH|- docker cp [--help] SRC_PATH|- CONTAINER:DEST_PATH The CONTAINER can be a running or stopped container. Repair broken systems: -> univention-install --reinstall tzdata on the host repairs (reinstalls) the /usr/share/zoneinfo/Etc/UTC added cp_to_container and cp_from_container (docker cp) and replaced _copy_files_into_ in docker_base QA: previously /usr/share/zoneinfo/UTC got overwritten on the host during the owncloud/nextcloud installation. So at least check md5sum /usr/share/zoneinfo/UTC before and after the installation on the host. Works as expected. |