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

Unable to run func run - ERROR: failed to export #2561

Open
daniwk opened this issue Nov 3, 2024 · 7 comments
Open

Unable to run func run - ERROR: failed to export #2561

daniwk opened this issue Nov 3, 2024 · 7 comments

Comments

@daniwk
Copy link

daniwk commented Nov 3, 2024

I'm trying to follow the quickstart, but can't get any longer than "Building, running or deploying a function".

After I've created a function, the func run command fails. The --verbose flag yields the following logs:

Timer: Saving docker.io/{docker-username}... ran for 19.397334ms and ended at 2024-11-03T18:47:15Z
Timer: Exporter ran for 4.317147961s and ended at 2024-11-03T18:47:15Z
ERROR: failed to export: saving image: failed to fetch base layers: open /tmp/imgutil.local.image.342586074/blobs/sha256/ae6a328f29da50c499acac265e2db256c9e2e2998cf74e0a7972239755dfb667: no such file or directory

I get the same error with both the python (kn func create -l python hello) and go function (kn func create -l go hello).
I'm using a MacBook Pro M1 Pro with MacOS 15.1.

Do you have any tips on solving this issue?

@matejvasek
Copy link
Contributor

Have you run func run right after build or after deploy?

@matejvasek
Copy link
Contributor

Which command is failing for you?

@matejvasek
Copy link
Contributor

@lkingland can you reproduce this?

@lkingland
Copy link
Member

lkingland commented Nov 4, 2024

I am unable to reproduce this; but I don't have an Apple Silicon box at my disposal right now.
Can we see kn func version please?

@daniwk
Copy link
Author

daniwk commented Nov 4, 2024

func version is v0.43.0.

The step to reproduce:

  1. kn func create -l python layer8
  2. cd layer8/
  3. kn func run. Enter docker.io when prompted for registry.

The same procedure works on a colleagues machine (same MacOS, kn and func versions).

@lkingland
Copy link
Member

Please try entering your username in the registry field, for example
kn func create -l go then kn func run --registry=docker.io/daniwk

@daniwk
Copy link
Author

daniwk commented Nov 5, 2024

I get the same result when entering the username in the registry field.

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