Task #2772
closedContainer image no longer builds
100%
Description
Today, the container image no longer builds. Discovered on develop but master is affected too.
Build of the image fails because ddist()
function downloads the wrong thing - a HTML page instead of gzip archive with Tomcat.
Image build fails when gzip tries to unpack html page.
The ddist
function tries to contact https://www.apache.org/dyn/closer.cgi?action=download&filename=tomcat/tomcat-9/v9.0.41/bin/apache-tomcat-9.0.41.tar.gz
which should properly determine a mirror.
However, the mirror it redirects us to is return as https://..../apache/
and not a concrete file to download as it was before.
Wget then downloads the html page instead of a gzip. Because the check in the function is if [ -s ... ]
(file of non-zero lenght determines success), the download is "successful" even if actually is not.
This seems to be a change in the CDN behavior.
Quick fix is to disable downloading from the CDN, because other mirrors work fine.
@@ -23,7 +26,7 @@ RUN mkdir -v /opt/tomcat && \ local success=; \ local distUrl=; \ for distUrl in \ - 'https://www.apache.org/dyn/closer.cgi?action=download&filename=' \ + #'https://www.apache.org/dyn/closer.cgi?action=download&filename=' \ https://www-us.apache.org/dist/ \ https://www.apache.org/dist/ \ https://archive.apache.org/dist/ \
Updated by Petr Fišer over 3 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Fixed in git.789541d, awaiting release.
Updated by Petr Fišer over 3 years ago
- Status changed from Resolved to Closed
Released as 9.0.41-r1.