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] Func build fails on jetson with /cnb/lifecycle/creator: exec format error #2447

Open
csantanapr opened this issue Jul 26, 2024 · 2 comments

Comments

@csantanapr
Copy link
Member

Func build fails on jetson with /cnb/lifecycle/creator: exec format error

Environment:
hardware: Jetson NX
OS: Ubuntu
Arch: arm64
Kernel: Linux jetson 5.15.136-tegra #1 SMP PREEMPT Wed Jul 3 22:31:57 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

cat /etc/os-release 

PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Reproduce:
Install knative, kn, func, 1.15
Create func using getting started docs

func create -l go hello

Run it

func run

A registry for function images is required. For example, 'docker.io/tigerteam'.
? Registry for function images: docker.io/csantanapr
Note: building a function the first time will take longer than subsequent builds
Building function image
Still building
Still building
Error: executing lifecycle: failed with status code: 1

Built it

func build --verbose
A registry for function images is required. For example, 'docker.io/tigerteam'.
? Registry for function images: docker.io/csantanapr
Note: building a function the first time will take longer than subsequent builds
Building function image
Pulling image ghcr.io/knative/builder-jammy-tiny:0.0.240
0.0.240: Pulling from knative/builder-jammy-tiny
Digest: sha256:821791b42f74d8672304c8d27f227d2f9582638b048954a531f66d36465043e0
Status: Image is up to date for ghcr.io/knative/builder-jammy-tiny:0.0.240
CheckReadAccess succeeded for the run image index.docker.io/paketobuildpacks/run-jammy-tiny:latest
Selected run image index.docker.io/paketobuildpacks/run-jammy-tiny:latest
Pulling image index.docker.io/paketobuildpacks/run-jammy-tiny:latest with platform linux/amd64
latest: Pulling from paketobuildpacks/run-jammy-tiny
Digest: sha256:703d6c7b862e3056afd1e4dc29b59039082da337d9d862137186049e2a36e3ee
Status: Image is up to date for paketobuildpacks/run-jammy-tiny:latest
Creating builder with the following buildpacks:
-> paketo-community/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-community/[email protected]
-> paketo-community/[email protected]
-> paketo-community/[email protected]
-> [email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
-> paketo-buildpacks/[email protected]
Using build cache volume pack-cache-csantanapr_hello_latest-c3f36a18fda4.build
Running the creator on OS linux from image pack.local/builder/6f6e786d646676636b65:latest with:
Container Settings:
  Args: /cnb/lifecycle/creator -daemon -launch-cache /launch-cache -log-level debug -app /workspace -cache-dir /cache -run-image index.docker.io/paketobuildpacks/run-jammy-tiny:latest -gid 0 -uid 0 index.docker.io/csantanapr/hello:latest
  System Envs: CNB_PLATFORM_API=0.13
  Image: pack.local/builder/6f6e786d646676636b65:latest
  User: root
  Labels: map[author:pack]
Host Settings:
  Binds: pack-cache-csantanapr_hello_latest-c3f36a18fda4.build:/cache /var/run/docker.sock:/var/run/docker.sock pack-cache-csantanapr_hello_latest-c3f36a18fda4.launch:/launch-cache pack-layers-tsplqvehws:/layers pack-app-dvltmfuvqu:/workspace
  Network Mode: host
exec /cnb/lifecycle/creator: exec format error


Error: failed to build the function: executing lifecycle: failed with status code: 1
@Cali0707
Copy link
Member

/cc @matejvasek @lkingland

@maxforasteiro
Copy link

+1 here, having the same problem.

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

No branches or pull requests

3 participants