Skip to content

Build test machine images step fails in CI #35507

Closed

Description

@ViktorHofer

https://dev.azure.com/dnceng/public/_build/results?buildId=618837&view=logs&j=12f1170f-54f2-53f3-20dd-22fc7dff55f9&t=76467409-274e-589c-5c88-4286504c504b&l=1311

Build pipeline: runtime-libraries enterprise-linux

Err:131 https://apt.kitware.com/ubuntu bionic/main amd64 cmake-data all 3.17.1-0kitware1
  Could not connect to apt.kitware.com:443 (66.194.253.19), connection timed out
Err:132 https://apt.kitware.com/ubuntu bionic/main amd64 cmake amd64 3.17.1-0kitware1
  Unable to connect to apt.kitware.com:https:
Fetched 188 MB in 30s (6193 kB/s)
E: Failed to fetch https://apt.kitware.com/ubuntu/pool/main/c/cmake/cmake-data_3.17.1-0kitware1_all.deb  Could not connect to apt.kitware.com:443 (66.194.253.19), connection timed out
E: Failed to fetch https://apt.kitware.com/ubuntu/pool/main/c/cmake/cmake_3.17.1-0kitware1_amd64.deb  Unable to connect to apt.kitware.com:https:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Service 'linuxclient' failed to build: The command '/bin/sh -c echo "APT::Acquire::Retries \"10\";" > /etc/apt/apt.conf.d/80-retries &&     apt-get update &&     apt-get install -y --no-install-recommends apt-transport-https ca-certificates gnupg software-properties-common wget &&     wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - &&     apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' &&     wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | apt-key add - &&     apt-add-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' &&     apt-get update &&     apt-get install -y --no-install-recommends cmake llvm-9 clang-9 lldb-6.0 liblldb-6.0-dev libunwind8 libunwind-dev gettext libicu-dev liblttng-ust-dev libssl-dev libnuma-dev libkrb5-dev locales &&     locale-gen en_US.UTF-8 &&     update-locale LANG=en_US.UTF-8' returned a non-zero code: 100

@davidsh Can we make apt-get install retry-able?

Activity

  1. added
    untriaged
    on Apr 27, 2020
  2. karelz commented on May 7, 2020

    @karelz
    Member

    @davidsh can you please take a look?

  3. davidsh commented on May 7, 2020

    @davidsh
    Contributor

    @davidsh Can we make apt-get install retry-able?

    I did make apt-get install retry-able. Up to 10 retries. :)

    RUN echo "APT::Acquire::Retries \"10\";" > /etc/apt/apt.conf.d/80-retries && \

    I suspect that there was a problem with the upstream Ubuntu package servers. Those are servers we don't control. I've seen this problem before but usually having a retry count of 10 always worked.

    I'll look into this and see if making it more than 10 helps.

    Longer-time, I was thinking of caching the images used for these dockerfiles. Instead of always building this custom Ubuntu image with multiple apt-get installs, it would be better to just do that once and have this custom docker base image pre-built. That would also speed up this enterprise test pipeline (although it currently only takes about 30 minutes for the whole thing).

  4. self-assigned this
    on May 7, 2020
  5. added this to the 5.0 milestone on May 7, 2020
  6. removed
    untriaged
    on May 7, 2020
  7. davidsh commented on May 7, 2020

    @davidsh
    Contributor

    Right now, the pipeline is working fine. So I suspect this was a transient issue with the external Ubuntu package feed servers:
    image

  8. added
    test-enhancement
    on May 7, 2020
  9. modified the milestones: 5.0.0, Future on Jun 26, 2020
  10. removed their assignment
    on Jun 26, 2020
  11. jkotas commented on Apr 17, 2023

    @jkotas
    Member

    kitware feed is no longer used by this dockerfile.

  12. ghost locked as resolved and limited conversation to collaborators on May 17, 2023
  13. modified the milestones: Future, 8.0.0 on May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Nettest-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions