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

dpkg errors under qemu emulation for arm64 #499

Closed
tamalsaha opened this issue Jan 7, 2021 · 6 comments
Closed

dpkg errors under qemu emulation for arm64 #499

tamalsaha opened this issue Jan 7, 2021 · 6 comments

Comments

@tamalsaha
Copy link

We seem to getting a lot of failed builds on GitHub actions recently related to building arm64 images using buildx. You can see the failed builds here: https://github.com/appscodelabs/kubectl-docker/runs/1661830044?check_suite_focus=true

Dockerfile: https://github.com/appscodelabs/kubectl-docker/blob/master/Dockerfile

This seems related to: #101

@tamalsaha
Copy link
Author

FWIW, it used to be pretty stable, then started failing a month ago in GitHub actions.
https://github.com/appscodelabs/kubectl-docker/actions

@tolusha
Copy link

tolusha commented Jan 11, 2021

GitHub action stopped working ^(
Sorry, not related to buildx

@yozik04
Copy link

yozik04 commented Jan 13, 2021

Experiencing same issue with travis: https://travis-ci.org/github/ParadoxAlarmInterface/pai/jobs/754223951
Started to fail from time to time about a month ago. Last 10 days in constantly failing.

@tonistiigi
Copy link
Member

Looks like application errors in the package manager

#7 19.62 debconf: delaying package configuration, since apt-utils is not installed
#7 19.73 Fetched 4641 kB in 0s (18.7 MB/s)
#7 19.80 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.80 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.81 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/00-libssl1.1_1.1.1d-0+deb10u4_arm64.deb (--unpack):
#7 19.81  dpkg-deb --control subprocess returned error exit status 1
#7 19.81 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.82 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.82 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/01-bzip2_1.0.6-9.2~deb10u1_arm64.deb (--unpack):
#7 19.82  dpkg-deb --control subprocess returned error exit status 1
#7 19.82 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.82 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.83 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/02-apt-transport-https_1.8.2.2_all.deb (--unpack):
#7 19.83  dpkg-deb --control subprocess returned error exit status 1
#7 19.83 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.83 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.83 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/03-openssl_1.1.1d-0+deb10u4_arm64.deb (--unpack):
#7 19.83  dpkg-deb --control subprocess returned error exit status 1
#7 19.84 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.84 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.84 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/04-ca-certificates_20200601~deb10u1_all.deb (--unpack):
#7 19.84  dpkg-deb --control subprocess returned error exit status 1
#7 19.85 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.85 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.85 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/05-libkeyutils1_1.6-6_arm64.deb (--unpack):
#7 19.85  dpkg-deb --control subprocess returned error exit status 1
#7 19.85 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.86 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.86 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/06-libkrb5support0_1.17-3+deb10u1_arm64.deb (--unpack):
#7 19.86  dpkg-deb --control subprocess returned error exit status 1
#7 19.86 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.87 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.87 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/07-libk5crypto3_1.17-3+deb10u1_arm64.deb (--unpack):
#7 19.87  dpkg-deb --control subprocess returned error exit status 1
#7 19.87 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.87 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.87 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/08-libkrb5-3_1.17-3+deb10u1_arm64.deb (--unpack):
#7 19.87  dpkg-deb --control subprocess returned error exit status 1
#7 19.88 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.88 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.88 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/09-libgssapi-krb5-2_1.17-3+deb10u1_arm64.deb (--unpack):
#7 19.88  dpkg-deb --control subprocess returned error exit status 1
#7 19.88 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.89 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.89 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/10-libsasl2-modules-db_2.1.27+dfsg-1+deb10u1_arm64.deb (--unpack):
#7 19.89  dpkg-deb --control subprocess returned error exit status 1
#7 19.89 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.89 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.89 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/11-libsasl2-2_2.1.27+dfsg-1+deb10u1_arm64.deb (--unpack):
#7 19.89  dpkg-deb --control subprocess returned error exit status 1
#7 19.90 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.90 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.90 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/12-libldap-common_2.4.47+dfsg-3+deb10u4_all.deb (--unpack):
#7 19.90  dpkg-deb --control subprocess returned error exit status 1
#7 19.90 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.91 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.91 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/13-libldap-2.4-2_2.4.47+dfsg-3+deb10u4_arm64.deb (--unpack):
#7 19.91  dpkg-deb --control subprocess returned error exit status 1
#7 19.91 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.91 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.91 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/14-libnghttp2-14_1.36.0-2+deb10u1_arm64.deb (--unpack):
#7 19.91  dpkg-deb --control subprocess returned error exit status 1
#7 19.92 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.92 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.92 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/15-libpsl5_0.20.2-2_arm64.deb (--unpack):
#7 19.92  dpkg-deb --control subprocess returned error exit status 1
#7 19.92 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.93 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.93 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/16-librtmp1_2.4+20151223.gitfa8646d.1-2_arm64.deb (--unpack):
#7 19.93  dpkg-deb --control subprocess returned error exit status 1
#7 19.93 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.93 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.93 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/17-libssh2-1_1.8.0-2.1_arm64.deb (--unpack):
#7 19.93  dpkg-deb --control subprocess returned error exit status 1
#7 19.94 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.94 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.95 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/18-libcurl4_7.64.0-4+deb10u1_arm64.deb (--unpack):
#7 19.95  dpkg-deb --control subprocess returned error exit status 1
#7 19.95 Error while loading /usr/sbin/dpkg-split: No such file or directory
#7 19.96 Error while loading /usr/sbin/dpkg-deb: No such file or directory
#7 19.96 dpkg: error processing archive /tmp/apt-dpkg-install-CFttUE/19-curl_7.64.0-4+deb10u1_arm64.deb (--unpack):
#7 19.96  dpkg-deb --control subprocess returned error exit status 1
#7 19.97 Errors were encountered while processing:

Is it run under qemu? If so then #495 looks the same message (not sure if caused by qemu or the app itself). If you think it is a regression it looks more likely that an update of qemu or application (or it's remote service) is to blame.

@tonistiigi
Copy link
Member

@crazy-max I see that the linked project uses https://github.com/crazy-max/ghaction-docker-buildx and has not updated yet. This should still provide a working qemu, right?

@tonistiigi tonistiigi changed the title error: failed to solve: rpc error: code = Unknown desc = executor failed running: exit code: 100 dpkg errors under qemu emulation for arm64 Jan 20, 2021
@crazy-max
Copy link
Member

crazy-max commented Jan 20, 2021

@tonistiigi ghaction-docker-buildx uses the qemu-user-static image with this command and not your binfmt image so yes that could be the issue.

@tamalsaha Can you change

      - name: Set up Docker Buildx
        id: buildx
        uses: crazy-max/ghaction-docker-buildx@v1
        with:
          buildx-version: latest
          qemu-version: latest

with:

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1

Also you're using qemu-version: latest which can be harmful in some cases. The latest release is 5.2.0-2 which was released on January 3 which coincides with the appearance of your issue.

As a side note you are using a pretty old release of crazy-max/ghaction-docker-buildx (v1) and latest is v3 and fix many issues. Also this action is archived and will not receive any updates. Please use docker/setup-buildx-action instead.

lovellfelix added a commit to lovellfelix/docker-ghost-s3-storage that referenced this issue Apr 20, 2021
michi-covalent added a commit to cilium/ubuntu-curl that referenced this issue Sep 8, 2021
- Set up QEMU [0]
- Install iputils-ping.
- Fix the manifest SHA. I got the SHA using manifest-tool [1]:

      manifest-tool inspect ubuntu:20.04

[0]: docker/buildx#499
[1]: https://github.com/estesp/manifest-tool

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit to cilium/ubuntu-curl that referenced this issue Sep 8, 2021
- Set up QEMU [0]
- Install iputils-ping
- Fix the manifest SHA. I got the SHA using manifest-tool [1]:

      manifest-tool inspect ubuntu:20.04

[0]: docker/buildx#499
[1]: https://github.com/estesp/manifest-tool

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit to cilium/ubuntu-curl that referenced this issue Sep 8, 2021
- Set up QEMU [0]
- Install iputils-ping
- Fix the manifest SHA. I got the SHA using manifest-tool [1]:

      manifest-tool inspect ubuntu:20.04

[0]: docker/buildx#499
[1]: https://github.com/estesp/manifest-tool

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit to cilium/ubuntu-curl that referenced this issue Sep 8, 2021
- Set up QEMU [0]
- Install iputils-ping
- Fix the manifest SHA. I got the SHA using manifest-tool [1]:

      manifest-tool inspect ubuntu:20.04

[0]: docker/buildx#499
[1]: https://github.com/estesp/manifest-tool

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants