-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
Critical
-
rhel-sst-container-tools
-
None
-
False
-
-
None
-
None
-
None
-
None
-
x86_64
-
None
What were you trying to do that didn't work?
We were trying to download some packages in the ubi container using dnf, this was working as expected until today. Now it fails due to a mismatch in the Content-Length.
Please provide the package NVR for which bug is seen:
registry.access.redhat.com/ubi9 on x86_64
How reproducible:
Steps to reproduce
This is part of our dockerfile:- # Install dependencies
FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9 AS ubi-micro-build
RUN mkdir -p /mnt/rootfs
RUN dnf install --installroot /mnt/rootfs gettext bind-utils curl jq findutils unzip --releasever 9 --setopt install_weak_deps=false --nodocs -y; dnf --installroot /mnt/rootfs clean all
- Removing the etc directory as it should not be copied to the keycloak image
RUN rm -rf /mnt/rootfs/etc - Docker build command: docker buildx build --platform linux/amd64 -t project:0.1.1-amd64 -f Dockerfile .
Expected results
The packages should be installed successfully.
Actual results
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
(64/77): setup-2.13.7-9.el9.noarch.rpm 1.3 MB/s | 150 kB 00:00
(65/77): sed-4.8-9.el9.x86_64.rpm 1.9 MB/s | 309 kB 00:00
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
(66/77): unzip-6.0-56.el9.x86_64.rpm 3.6 MB/s | 186 kB 00:00
(67/77): xz-libs-5.2.5-8.el9_0.x86_64.rpm 1.2 MB/s | 94 kB 00:00
(68/77): zlib-1.2.11-40.el9.x86_64.rpm 1.3 MB/s | 93 kB 00:00
[MIRROR] tzdata-2023c-1.el9.noarch.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 864432, repository metadata states file length: 864888 (please report to repository maintainer)
[FAILED] tzdata-2023c-1.el9.noarch.rpm: No more mirrors to try - All mirrors were already tried without success
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
tzdata-2023c-1.el9.noarch: Cannot download, all mirrors were already tried without success
- duplicates
-
RHEL-17551 Cannot download Packages/t/tzdata-2023c-1.el9.noarch.rpm executing microdnf reinstall tzdata -y on ubi9-minimal latest version
- Closed