question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JIB: Unauthorized registry exception for "from" registry

See original GitHub issue

Description

I’m getting registry unauthorized exception when using Jib when “from” image registry is from a authenticated registry.

Failed to execute the build: java.lang.UnsupportedOperationException: java.lang.IllegalStateException: com.google.cloud.tools.jib.api.RegistryUnauthorizedException

The relevant credentials are set in maven settings.xml. On debugging it looks like for baseImageConfiguration object, no credentials are getting set for CredentialsRetreiver.

Info

  • Maven version (mvn -v) :
maven 3.5.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erikgbcommented, Nov 25, 2019

@rohanKanojia : JIB API (java) supports it: https://www.javadoc.io/static/com.google.cloud.tools/jib-core/0.12.0/com/google/cloud/tools/jib/api/RegistryImage.html

The main issue here seems to be to get the credential details in f-m-p. But you probably know how to do it… 😄

0reactions
dev-gaurcommented, Mar 5, 2020

Closing since #1766 has been merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

401 Unauthorized when using jib to create docker image
I figured that it's strange if we're getting 401 unauthorized the most likely Jib trying to login with some wrong credentials.
Read more >
google/jib - Gitter
I am trying to use jib Maven-Plugin instead of the Dockerfile that we ... for help: Unauthorized for registry-1.docker.io/openjdk: 401 Unauthorized [ERROR] ...
Read more >
RegistryUnauthorizedException (jib-core 0.9.1 API) - javadoc.io
public class RegistryUnauthorizedException extends RegistryException. Thrown when a registry request was unauthorized and therefore authentication is needed ...
Read more >
maven build is failure due to ACR not authorized, why?
See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for ...
Read more >
Containerizing Spring Boot Application with Jib
I have used the docker registry, but you can use any cloud provider(ECR, GCR, ACR) container registry. To use further options with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found