Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-17507

Issue with installing tzdata on ubi9 container using dnf

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • ubi9-container
    • None
    • Blocker
    • sst_container_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • 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


      1. This is part of our dockerfile:
      2. # 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

      1. Removing the etc directory as it should not be copied to the keycloak image
        RUN rm -rf /mnt/rootfs/etc
      2. 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

            container-runtime-eng Container Runtime Eng Bot
            yoanaenikova Yoana Enikova (Inactive)
            Container Runtime Eng Bot Container Runtime Eng Bot
            Container Runtime Bugs Bot Container Runtime Bugs Bot
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: