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

jib building error #4330

Open
DossoAboubakar opened this issue Oct 28, 2024 · 1 comment
Open

jib building error #4330

DossoAboubakar opened this issue Oct 28, 2024 · 1 comment

Comments

@DossoAboubakar
Copy link

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.4:build (default-cli) on project imc: Build image failed, perhaps you should make sure your credentials for 'registry-1.docker.io/aboubakardosso/imc' are set up correctly. See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for help: Unauthorized for registry-1.docker.io/aboubakardosso/imc: 401 Unauthorized
[ERROR] GET https://auth.docker.io/token?service=registry.docker.io&scope=repository:aboubakardosso/imc:pull,push
[ERROR] {"details":"access token has insufficient scopes"}
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
macbookpro@192 imc %

@chanseokoh
Copy link
Member

401 Unauthorized

scope=repository:aboubakardosso/imc:pull,push

access token has insufficient scope

The request scope is both pull and push for aboubakardosso/imc, meaning both read and write. The error message says that your account doesn't enough permissions . For example, either your account doesn't have write permissions; or you actually failed to log in and can only read but not write.

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

No branches or pull requests

4 participants
@lqiu96 @chanseokoh @DossoAboubakar and others