This issue has been created
There are 5 updates, 1 comment.
 
 
XWiki Docker images / cid:jira-generated-image-avatar-a08c2798-aac2-4029-a58d-eef0783c70dc XDOCKER-423 Closed

The image build fails on a transient network error while downloading its artifacts

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-aea8c179-b2be-4f07-8e29-a58bf6d17edf Vincent Massol created this issue on 29/Jul/26 13:19
 
Summary: The image build fails on a transient network error while downloading its artifacts
Issue Type: cid:jira-generated-image-avatar-a08c2798-aac2-4029-a58d-eef0783c70dc Bug
Assignee: Unassigned
Created: 29/Jul/26 13:19
Priority: cid:jira-generated-image-static-major-2b5956c5-f549-46af-a119-077d6a6863ad Major
Reporter: Vincent Massol
Description:

Problem

The Dockerfile downloads three large artifacts with a plain curl -fSL, with no retry: the XWiki WAR
(~350 MB) from maven.xwiki.org, the LibreOffice archive (~350 MB) from
download.documentfoundation.org, and the JDBC driver from Maven Central. A single hiccup on any of
them aborts the whole build.

This is not theoretical, it happens regularly:

  • In the Docker Official Images pull request updating the image to 18.6.0, the 16 and
    17-mariadb-tomcat builds failed with curl: (92) HTTP/2 stream 1 was not closed cleanly: CANCEL
    while downloading the XWiki WAR, after the transfer had slowed to 181 KB/s. The other variants
    downloading the very same WAR succeeded, so the artifact was fine.
  • Building the twelve variants in our own CI, two of them failed with
    curl: (35) Recv failure: Connection reset by peer while downloading the LibreOffice archive.

Every failure means a manual re-run, and for the Docker Official Images builds it means asking their
maintainers to re-run.

Fix

Let curl retry these downloads instead of giving up on the first error. The sha256 verification that
follows each download is what guarantees correctness, so retrying only affects reliability.

 
 

5 updates

 
cid:jira-generated-image-avatar-aea8c179-b2be-4f07-8e29-a58bf6d17edf Changes by Vincent Massol on 29/Jul/26 13:27
 
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Resolution: Fixed
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-aea8c179-b2be-4f07-8e29-a58bf6d17edf Vincent Massol on 29/Jul/26 13:27
 

Done in https://github.com/xwiki/xwiki-docker/pull/99