Project

General

Profile

Actions

Task #2772

closed

Container image no longer builds

Added by Petr Fišer almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Petr Fišer
Target version:
Start date:
04/21/2021
Due date:
% Done:

100%

Estimated time:

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/ \
Actions #1

Updated by Petr Fišer almost 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Fixed in git.789541d, awaiting release.

Actions #2

Updated by Petr Fišer almost 2 years ago

  • Target version set to 9.0.41-r1
Actions #3

Updated by Petr Fišer almost 2 years ago

  • Status changed from Resolved to Closed

Released as 9.0.41-r1.

Actions

Also available in: Atom PDF