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

Could not pull base image - Build kit failed (No matching credentials were found, falling back on anonymous) #2748

Closed
radekcz opened this issue Nov 15, 2021 · 4 comments

Comments

@radekcz
Copy link

radekcz commented Nov 15, 2021

My first java route deployed over kamel run works very well by using:

Camel K Client 1.6.1
Minikube version: v1.24.0 (followed instructions 'minikube addons enable registry')
Win OS

But when I try to add some dependency to the route, e.g.:

// camel-k: dependency=mvn:org.apache.commons:commons-lang3:3.12.0

build (and downloading dependencies) is done without problem:

{"level":"info","ts":1636980139.384325,"logger":"camel-k.maven.build","msg":"BUILD SUCCESS"}

but then I get error:

{"level":"info","ts":1636972715.9987202,"logger":"camel-k","msg":"spectrum - 2021/11/15 10:38:35 Pulling base image 10.105.139.108/default/camel-k-kit-c65evasgs8hsivol77v0@sha256:a65ddc40792f7db17d30bcb3192a748382816eb12a6f61c65474d46b03acc583 (insecure=true)..."}
{"level":"info","ts":1636972715.9988046,"logger":"camel-k","msg":"spectrum - 2021/11/15 10:38:35 No matching credentials were found, falling back on anonymous"}
{"level":"error","ts":1636972716.002739,"logger":"camel-k.controller.build","msg":"Build kit-c693h84gs8hg1b7rn99g failed: could not pull base image image 10.105.139.108/default/camel-k-kit-c65evasgs8hsivol77v0@sha256:a65ddc40792f7db17d30bcb3192a748382816eb12a6f61c65474d46b03acc583: GET http://10.105.139.108/v2/default/camel-k-kit-c65evasgs8hsivol77v0/manifests/sha256:a65ddc40792f7db17d30bcb3192a748382816eb12a6f61c65474d46b03acc583: MANIFEST_UNKNOWN: manifest unknown; map[Name:default/camel-k-kit-c65evasgs8hsivol77v0 Revision:sha256:a65ddc40792f7db17d30bcb3192a748382816eb12a6f61c65474d46b03acc583]","request-namespace":"default","request-name":"kit-c693h84gs8hg1b7rn99g","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-c693h84gs8hg1b7rn99g","stacktrace":"github.com/apache/camel-k/pkg/controller/build.
{"level":"info","ts":1636980139.4702048,"logger":"camel-k.controller.build","msg":"state transition","request-namespace":"default","request-name":"kit-c695aptd9nr1dagju0qg","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-c695aptd9nr1dagju0qg","phase-from":"Running","phase-to":"Failed"}
@radekcz radekcz changed the title Could not pull base image - Build kit-c695aptd9nr1dagju0qg failed (No matching credentials were found, falling back on anonymous) Could not pull base image - Build kit failed (No matching credentials were found, falling back on anonymous) Nov 15, 2021
@squakez
Copy link
Contributor

squakez commented Nov 15, 2021

Thanks for reporting. A question to have a complete set of information. Is the operator also running 1.6.1 version? you can check by kamel version --operator.

@radekcz
Copy link
Author

radekcz commented Nov 15, 2021

Sure, it's the same:

λ kamel version --operator
Camel K Operator 1.6.1

@squakez
Copy link
Contributor

squakez commented Nov 15, 2021

I've just tried replicating the same configuration (apart the operating system - I run on Linux) and I cannot reproduce the error. Everything run smoothly. I wonder if it's some transient problem happened when the image was published. Would you mind to retry that from scratch? You can clean up with kamel reset command to clean the Integration and the related Kits. Please, let us know how it goes.

@radekcz
Copy link
Author

radekcz commented Nov 16, 2021

@squakez Thanks a lot! Command kamel reset did help.

Before I had opened this issue, I tried to uninstall and install kamel again, but it didn't help. It was only after executing reset that integration works.

@radekcz radekcz closed this as completed Nov 16, 2021
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