Univention Bugzilla – Bug 44015
Failed docker installations due to apt lock
Last modified: 2017-08-07 14:58:56 CEST
The test cases show the following error (in this case 76_app_ports_redirect): ----------------------------------------------------------------------------- Starting to download 3 file(s) directly + univention-app register dg679qmtiq --component File: /etc/apt/apt.conf.d/55user_agent ++ univention-app get dg679qmtiq default_packages --values-only --shell + app_packages='telnetd proftpd' + univention-install -y telnetd proftpd E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ Setup script failed! Aborting... Going to remove dg679qmtiq (8.8.1) ----------------------------------------------------------------------------- So, it seems the apt cache is locked.
Created attachment 8609 [details] appcenter.log.bz2
Created attachment 8610 [details] ucs-test.log.bz2
This may be due to univention-upgrade running as a cron job just after the container start (depends on datetime)
disabled cron job, limited update_available to once per day univention-docker-container-mode: 79414 univention-docker-container-mode.yaml
I think update/container/check/* need to be reset after update_packages and update_release. Also, can you please change upgrade="$(univention-upgrade --check --setucr --disable-app-updates)" to ditch stderr: upgrade="$(univention-upgrade --check --setucr --disable-app-updates 2>/dev/null)" This prevents this update/container/check/type: The update to UCS 4.2 is blocked because the component 'dudle_20160201' is marked as required.
* added 2>/dev/null to univention-upgrade check * unset update/container/check/* in update_packages and update_release
Works great
<http://errata.software-univention.de/ucs/4.1/430.html>