imgcrypt icon indicating copy to clipboard operation
imgcrypt copied to clipboard

Error when import images from tar file with platforms linux/arm64 on jetson AGX jetpack 4.4.1

Open tranducanhbk opened this issue 2 years ago • 6 comments

I run the script below on Jetson AGX jetpack 4.4.1 (R32 (release), REVISION: 4.4, GCID: 23942405, BOARD: t186ref, EABI: aarch64, DATE: Fri Oct 16 19:37:08 UTC 2020)

#!/usr/bin/env bash

ALPINE=quay.io/jitesoft/alpine:latest
ALPINE_ENC=quay.io/jitesoft/alpine:enc
ALPINE_ENC_IMPORT_BASE=quay.io/jitesoft/alpine-import
PLATFORM="--all-platforms"

sudo ctr-enc images rm --sync ${ALPINE_ENC}

sudo ctr-enc images pull ${PLATFORM} ${ALPINE}
sudo ctr-enc images layerinfo ${ALPINE}

sudo ctr-enc images encrypt --platform linux/arm64 --recipient jwe:mypubkey.pem ${ALPINE} ${ALPINE_ENC}
sudo ctr-enc images layerinfo ${ALPINE_ENC}
rm -f image.tar

sudo ctr-enc images export ${PLATFORM} image.tar ${ALPINE_ENC}
sudo ctr-enc images rm --sync ${ALPINE_ENC} ${ALPINE}

sudo ctr-enc images import ${PLATFORM} --base-name ${ALPINE_ENC_IMPORT_BASE} --skip-decrypt-auth --key mykey.pem image.tar

Then error happends image

When i use platforms amd64, ppc64le everthings is fine.

tranducanhbk avatar Sep 21 '22 16:09 tranducanhbk

After all the previous discussions (https://github.com/containerd/imgcrypt/issues/89) and me not being able to recreate the issue on amd64 and ppc64 ... : what version of golang are you running? Can you install the latest version and recompile everything with go-1.19.1?

stefanberger avatar Sep 21 '22 22:09 stefanberger

I alread install go-1.19-1 but no change image

tranducanhbk avatar Sep 22 '22 08:09 tranducanhbk

Now i can import successfully after sudo make uninstall and install. Maybe when i clone new code need to uninstall before install

tranducanhbk avatar Sep 22 '22 17:09 tranducanhbk

Now i can import successfully after sudo make uninstall and install.

@tranducanhbk Are you saying that it works now?

stefanberger avatar Sep 22 '22 20:09 stefanberger

yes. it work now

tranducanhbk avatar Sep 23 '22 13:09 tranducanhbk

Then we can close the issue?

stefanberger avatar Sep 23 '22 14:09 stefanberger

Since it works now we can close the issue. No point in keeping it open.

stefanberger avatar Sep 27 '22 19:09 stefanberger