Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Cannot build image with docker_lite_ubi8.arm64.mysql80 on M1 Mac #13420

Closed
peterlyoo opened this issue Jun 30, 2023 · 3 comments · Fixed by #13431
Closed

Bug Report: Cannot build image with docker_lite_ubi8.arm64.mysql80 on M1 Mac #13420

peterlyoo opened this issue Jun 30, 2023 · 3 comments · Fixed by #13431

Comments

@peterlyoo
Copy link
Contributor

Overview of the Issue

I tried to build vitess image however it failed with below error.
It seems like installing package from https://download-ib01.fedoraproject.org/ fails which is causing the issue.
I tested on 16.0.2 version but I guess even in main.

Reproduction Steps

git clone https://github.com/vitessio/vitess
cd vitess
git checkout tags/v16.0.2
make build
make docker_lite_ubi8.arm64.mysql80

Binary Version

Not applicable

Operating System and Environment details

Machine : Apple M1 max
uname -sr : Darwin 22.4.0
uname -m : arm64

Log Fragments

~/repo/vitess │ #v16.0.2  make docker_lite_ubi8.arm64.mysql80                                     2 х │ 27s │ 15:10:14
Building vitess/lite:ubi8.arm64.mysql80
Building docker using arm64 buildx
[+] Building 40.5s (12/19)                                                                          docker:desktop-linux
 => [internal] load .dockerignore                                                                                   0.0s
 => => transferring context: 254B                                                                                   0.0s
 => [internal] load build definition from Dockerfile.ubi8.arm64.mysql80                                             0.0s
 => => transferring dockerfile: 6.73kB                                                                              0.0s
 => [internal] load metadata for registry.access.redhat.com/ubi8/ubi:8.5-239.1651231664                             0.0s
 => [internal] load metadata for docker.io/vitess/bootstrap:14.3-mysql80                                            1.8s
 => [auth] vitess/bootstrap:pull token for registry-1.docker.io                                                     0.0s
 => [stage-1  1/10] FROM registry.access.redhat.com/ubi8/ubi:8.5-239.1651231664                                     0.0s
 => [internal] load build context                                                                                   0.5s
 => => transferring context: 516.10kB                                                                               0.5s
 => CACHED [builder 1/3] FROM docker.io/vitess/bootstrap:14.3-mysql80@sha256:8998598395dac7bb65f7ad7e5c0618818098a  0.0s
 => [stage-1  2/10] RUN mkdir /tmp/gpg && chmod 700 /tmp/gpg && export GNUPGHOME=/tmp/gpg  && yum install -y --se  14.7s
 => [builder 2/3] COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess                                             0.6s
 => CANCELED [builder 3/3] RUN make cross-install PREFIX=/vt/install GOOS=linux GOARCH=arm64                       37.6s
 => ERROR [stage-1  3/10] RUN echo H4sICIDAHmICA2ZvbwDVkDFLxEAQhfv9FVfY7o4RhCBsoXJcIXKHwUIOi7m5MVk2yS6zG0//vYlRUL  23.8s
------
 > [stage-1  3/10] RUN echo H4sICIDAHmICA2ZvbwDVkDFLxEAQhfv9FVfY7o4RhCBsoXJcIXKHwUIOi7m5MVk2yS6zG0//vYlRULTU4rrHvOHN+2ZL5Q4TP6oeO7bX3Od1pcuFXlyNUzVZg7S2yTmmCwDsgzjuDSUyB5SDI2+QzOChcyJBEnwkPOPQZijNuTkrigKmsHUFJ1MeCjUQEqg61tQweVtM0vOrfXItj1eAM0H0DiR2erTgbnOrV5uVvlk+6M+Kinvctby3p0ptqRziHjOnnxz3s/FnKJcxVlkYu/+k4Zcs+AvM8n3+jWW8MBc2NO6FZILUMEsoYQ76UvWI/vAGB/SOZZsCAAA= | base64 -d | gzip -dc > /etc/yum.repos.d/CentOS-Base.repo  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs --enablerepo c8base --enablerepo c8updates --enablerepo c8extras libev numactl-libs sysstat strace  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/j/jemalloc-5.2.1-2.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libunwind-1.3.1-3.el8.aarch64.rpm:
0.353 Main config did not have a alwaysprompt attr. before setopt
0.461 Updating Subscription Management repositories.
0.461 Unable to read consumer identity
0.462
0.462 This system is not registered with an entitlement server. You can use subscription-manager to register.
0.462
0.467 Main config did not have a alwaysprompt attr. before setopt
3.906 CentOS-8 - Base                                 1.1 MB/s | 3.7 MB     00:03
8.342 CentOS-8 - Updates                              1.8 MB/s | 7.2 MB     00:04
13.21 CentOS-8 - Extras                               1.8 MB/s | 7.2 MB     00:03
14.90 MySQL 8.0 Community Server                      3.6 MB/s | 2.9 MB     00:00
15.86 MySQL Connectors Community                      172 kB/s |  93 kB     00:00
16.52 MySQL Tools Community                           888 kB/s | 527 kB     00:00
17.32 Percona Original release/noarch YUM repository  5.2 kB/s | 3.6 kB     00:00
18.04 Percona Release release/noarch YUM repository   2.6 kB/s | 1.8 kB     00:00
18.94 Dependencies resolved.
18.94 ================================================================================
18.94  Package          Arch     Version                          Repository     Size
18.94 ================================================================================
18.94 Installing:
18.94  libev            aarch64  4.24-6.el8                       c8updates      51 k
18.94  numactl-libs     aarch64  2.0.12-13.el8                    c8base         36 k
18.94  strace           aarch64  5.18-2.el8                       ubi-8-baseos  1.3 M
18.94  sysstat          aarch64  11.7.3-6.el8                     c8updates     409 k
18.94 Installing dependencies:
18.94  lm_sensors-libs  aarch64  3.4.0-23.20180522git70f7e08.el8  c8base         58 k
18.94  xz               aarch64  5.2.4-3.el8                      c8base        153 k
18.94
18.94 Transaction Summary
18.94 ================================================================================
18.94 Install  6 Packages
18.94
18.94 Total download size: 2.0 M
18.94 Installed size: 5.0 M
18.94 Downloading Packages:
20.12 (1/6): numactl-libs-2.0.12-13.el8.aarch64.rpm    30 kB/s |  36 kB     00:01
20.22 (2/6): lm_sensors-libs-3.4.0-23.20180522git70f7  46 kB/s |  58 kB     00:01
20.71 (3/6): libev-4.24-6.el8.aarch64.rpm              87 kB/s |  51 kB     00:00
20.74 (4/6): xz-5.2.4-3.el8.aarch64.rpm                85 kB/s | 153 kB     00:01
21.11 (5/6): sysstat-11.7.3-6.el8.aarch64.rpm         457 kB/s | 409 kB     00:00
21.18 (6/6): strace-5.18-2.el8.aarch64.rpm            2.7 MB/s | 1.3 MB     00:00
21.19 --------------------------------------------------------------------------------
21.19 Total                                           907 kB/s | 2.0 MB     00:02
21.24 Running transaction check
21.25 Transaction check succeeded.
21.25 Running transaction test
21.28 Transaction test succeeded.
21.28 Running transaction
21.32   Preparing        :                                                        1/1
21.35   Installing       : xz-5.2.4-3.el8.aarch64                                 1/6
21.36   Installing       : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.aarc   2/6
21.36   Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.aarc   2/6
21.41   Installing       : sysstat-11.7.3-6.el8.aarch64                           3/6
21.41   Running scriptlet: sysstat-11.7.3-6.el8.aarch64                           3/6
21.47   Installing       : strace-5.18-2.el8.aarch64                              4/6
21.48   Installing       : libev-4.24-6.el8.aarch64                               5/6
21.48   Installing       : numactl-libs-2.0.12-13.el8.aarch64                     6/6
21.49   Running scriptlet: numactl-libs-2.0.12-13.el8.aarch64                     6/6
21.53   Verifying        : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.aarc   1/6
21.53   Verifying        : numactl-libs-2.0.12-13.el8.aarch64                     2/6
21.53   Verifying        : xz-5.2.4-3.el8.aarch64                                 3/6
21.53   Verifying        : libev-4.24-6.el8.aarch64                               4/6
21.53   Verifying        : sysstat-11.7.3-6.el8.aarch64                           5/6
21.53   Verifying        : strace-5.18-2.el8.aarch64                              6/6
21.58 Installed products updated.
21.58
21.58 Installed:
21.58   libev-4.24-6.el8.aarch64
21.58   lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.aarch64
21.58   numactl-libs-2.0.12-13.el8.aarch64
21.58   strace-5.18-2.el8.aarch64
21.58   sysstat-11.7.3-6.el8.aarch64
21.58   xz-5.2.4-3.el8.aarch64
21.58
21.58 Complete!
21.73 Main config did not have a alwaysprompt attr. before setopt
21.84 Updating Subscription Management repositories.
21.84 Unable to read consumer identity
21.84
21.84 This system is not registered with an entitlement server. You can use subscription-manager to register.
21.84
21.85 Main config did not have a alwaysprompt attr. before setopt
21.87 Last metadata expiration check: 0:00:04 ago on Fri Jun 30 06:27:49 2023.
23.09 [MIRROR] gperftools-libs-2.7-9.el8.aarch64.rpm: Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
23.30 [MIRROR] gperftools-libs-2.7-9.el8.aarch64.rpm: Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
23.51 [MIRROR] gperftools-libs-2.7-9.el8.aarch64.rpm: Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
23.71 [MIRROR] gperftools-libs-2.7-9.el8.aarch64.rpm: Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
23.71 [FAILED] gperftools-libs-2.7-9.el8.aarch64.rpm: Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
23.72 Status code: 403 for https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm (IP: 152.19.134.145)
------
Dockerfile.ubi8.arm64.mysql80:55
--------------------
  54 |      && rm -f /tmp/mysqlrepo.rpm /tmp/perconarepo.rpm
  55 | >>> RUN echo H4sICIDAHmICA2ZvbwDVkDFLxEAQhfv9FVfY7o4RhCBsoXJcIXKHwUIOi7m5MVk2yS6zG0//vYlRULTU4rrHvOHN+2ZL5Q4TP6oeO7bX3Od1pcuFXlyNUzVZg7S2yTmmCwDsgzjuDSUyB5SDI2+QzOChcyJBEnwkPOPQZijNuTkrigKmsHUFJ1MeCjUQEqg61tQweVtM0vOrfXItj1eAM0H0DiR2erTgbnOrV5uVvlk+6M+Kinvctby3p0ptqRziHjOnnxz3s/FnKJcxVlkYu/+k4Zcs+AvM8n3+jWW8MBc2NO6FZILUMEsoYQ76UvWI/vAGB/SOZZsCAAA= | base64 -d | gzip -dc > /etc/yum.repos.d/CentOS-Base.repo \
  56 | >>>  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs --enablerepo c8base --enablerepo c8updates --enablerepo c8extras libev numactl-libs sysstat strace \
  57 | >>>  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/j/jemalloc-5.2.1-2.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libunwind-1.3.1-3.el8.aarch64.rpm
  58 |     RUN yum update -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs \
--------------------
ERROR: failed to solve: process "/bin/sh -c echo H4sICIDAHmICA2ZvbwDVkDFLxEAQhfv9FVfY7o4RhCBsoXJcIXKHwUIOi7m5MVk2yS6zG0//vYlRULTU4rrHvOHN+2ZL5Q4TP6oeO7bX3Od1pcuFXlyNUzVZg7S2yTmmCwDsgzjuDSUyB5SDI2+QzOChcyJBEnwkPOPQZijNuTkrigKmsHUFJ1MeCjUQEqg61tQweVtM0vOrfXItj1eAM0H0DiR2erTgbnOrV5uVvlk+6M+Kinvctby3p0ptqRziHjOnnxz3s/FnKJcxVlkYu/+k4Zcs+AvM8n3+jWW8MBc2NO6FZILUMEsoYQ76UvWI/vAGB/SOZZsCAAA= | base64 -d | gzip -dc > /etc/yum.repos.d/CentOS-Base.repo  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs --enablerepo c8base --enablerepo c8updates --enablerepo c8extras libev numactl-libs sysstat strace  && yum install -y --setopt=alwaysprompt=no --setopt=tsflags=nodocs https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/g/gperftools-libs-2.7-9.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/j/jemalloc-5.2.1-2.el8.aarch64.rpm https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libunwind-1.3.1-3.el8.aarch64.rpm" did not complete successfully: exit code: 1
make: *** [docker_lite_ubi8.arm64.mysql80] Error 1
@peterlyoo peterlyoo added Needs Triage This issue needs to be correctly labelled and triaged Type: Bug labels Jun 30, 2023
@mattlord
Copy link
Contributor

Thanks, @peterlyoo !

It seems like we should be using https://dl.fedoraproject.org/ instead of https://download-ib01.fedoraproject.org for the packages. The former should always redirect to a valid mirror whereas the latter probably was a valid mirror but is no longer.

Are you able to test this? Would you like to open a PR for the fix, assuming it works for you?

@mattlord mattlord added Component: Docker and removed Needs Triage This issue needs to be correctly labelled and triaged labels Jun 30, 2023
@mattlord mattlord self-assigned this Jun 30, 2023
@mattlord mattlord added this to the v18.0.0 milestone Jun 30, 2023
@peterlyoo
Copy link
Contributor Author

Ok let me test and make a PR.

@peterlyoo
Copy link
Contributor Author

After modifying the package server it worked with no error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants