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]: Could not open '/lib/ld-musl-x86_64.so.1' #3029

Open
2 tasks done
lucasmmo opened this issue Sep 29, 2023 · 1 comment
Open
2 tasks done

[Bug]: Could not open '/lib/ld-musl-x86_64.so.1' #3029

lucasmmo opened this issue Sep 29, 2023 · 1 comment

Comments

@lucasmmo
Copy link

Nuclio Version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Nuclio.

Issue Description

I'm trying to run NUCLIO

  • inside a HELM
  • with Docker Desktop for Mac (using K8S extension for Docker Desktop)

when I've created a function and tried to deploy it
I received an error when the Nuclio tried to run a builded docker image

 [23:12:00.451]  (I)  Deploying function   [requestID: "nuclio-dashboard-fb4966c6d-qp4xx/34dCoEmuWr-000013"] 
 [23:12:00.458]  (I)  Building   [builderKind: "docker", requestID: "nuclio-dashboard-fb4966c6d-qp4xx/34dCoEmuWr-000013", versionInfo: "Label: 1.12.4, Git commit: 0b5ab5871f44922e01f04d1643014adca1867f5e, OS: linux, Arch: amd64, Go version: go1.21.0"] 
 [23:12:00.814]  (I)  Staging files and preparing base images    
 [23:12:00.831]  (I)  Building processor image   [registryURL: "localhost:5001", requestID: "nuclio-dashboard-fb4966c6d-qp4xx/34dCoEmuWr-000013", taggedImageName: "nuclio/processor-helloworldgo:latest"] 
 [23:14:32.931]  (I)  Build complete   [image: "nuclio/processor-helloworldgo:latest", requestID: "nuclio-dashboard-fb4966c6d-qp4xx/34dCoEmuWr-000013"] 
 [23:14:39.389]  (W)  Function creation failed, updating function status   [errorStack: "
Error - NuclioFunction in error state:

Error - NuclioFunction pod (nuclio-helloworldgo-54d4b76885-kdmsx) is in a crash loop
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:2702

Call stack:
NuclioFunction pod (nuclio-helloworldgo-54d4b76885-kdmsx) is in a crash loop
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:2702
NuclioFunction deployment failed
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:566
Failed to wait for function deployment readiness
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:353
Failed to wait for function resources to be available
    .../platform/kube/controller/nucliofunction.go:243

    ...//nuclio/pkg/platform/kube/client/deployer.go:569

Call stack:
NuclioFunction in error state:

Error - NuclioFunction pod (nuclio-helloworldgo-54d4b76885-kdmsx) is in a crash loop
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:2702

Call stack:
NuclioFunction pod (nuclio-helloworldgo-54d4b76885-kdmsx) is in a crash loop
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:2702
NuclioFunction deployment failed
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:566
Failed to wait for function deployment readiness
    ...//nuclio/pkg/platform/kube/functionres/lazy.go:353
Failed to wait for function resources to be available
    .../platform/kube/controller/nucliofunction.go:243

    ...//nuclio/pkg/platform/kube/client/deployer.go:569
Failed to wait for function readiness.

Pod logs:

* nuclio-helloworldgo-54d4b76885-kdmsx
qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory

    ...//nuclio/pkg/platform/kube/client/deployer.go:154
", requestID: "nuclio-dashboard-fb4966c6d-qp4xx/34dCoEmuWr-000013"] 

I don't thing if is a common behavior

I'll appreciate if anyone can help

Expected Behavior

Running normally?

Deployment Method

Kubernetes

Nuclio Version

latest

Additional Information

@TomerShor
Copy link
Contributor

Hey @lucasmmo
Are you using a machine with arm architecture (Mac M1/M2)?
This looks like a compatibility issue with the arm and amd architectures.

Try setting the following env vars:

export DOCKER_DEFAULT_PLATFORM=linux/amd64
export BUILDPLATFORM=linux/amd64

then, re-run the Nuclio dashboard and redeploy your function.

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

2 participants