Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.

Failed to obtain Docker config for hello-play:1.0-SNAPSHOT #202

@eed3si9n

Description

@eed3si9n

steps

> rpDeploy minikube

or

rp generate-kubernetes-resources --generate-all hello-play:1.0-SNAPSHOT --stacktrace -l debug

problem

[debug, com.lightbend.rp.reactivecli.docker.DockerEngine$] Attempting to pull config from Engine, https://192.168.99.100:2376/images/hello-play:1.0-SNAPSHOT/json
[debug, com.lightbend.rp.reactivecli.docker.DockerCredentials$] Failed to find any Docker credential helpers
[debug, com.lightbend.rp.reactivecli.Main$] Attempting to pull manifest while unauthenticated
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Image: Image(registry.hub.docker.com,Some(library),hello-play,ImageTag(1.0-SNAPSHOT),None,None,hello-play,Some(ImageTag(1.0-SNAPSHOT)))
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Request URL: https://registry.hub.docker.com/v2/library/hello-play/tags/list?n=1
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Received 401 from Registry, attempting to get a token and try again
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Request URL: https://registry.hub.docker.com/v2/library/hello-play/tags/list?n=1
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] Received 401 from Registry
[debug, com.lightbend.rp.reactivecli.docker.DockerRegistry$] checkRepositoryValid failed: unable to access repository or registry; check authentication [401]
java.lang.IllegalArgumentException: unable to access repository or registry; check authentication [401]
	at java.lang.Throwable.fillInStackTrace(Unknown Source)
	at com.lightbend.rp.reactivecli.docker.DockerRegistry$$anonfun$getConfig$2$$anonfun$apply$6.apply(Unknown Source)
	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.run(Unknown Source)
	at com.lightbend.rp.reactivecli.Platform$$anon$1.execute(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Unknown Source)
	at scala.concurrent.Future$class.flatMap(Unknown Source)
	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.run(Unknown Source)
	at com.lightbend.rp.reactivecli.Platform$$anon$1.execute(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Unknown Source)
	at scala.concurrent.Future$class.flatMap(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$$anonfun$com$lightbend$rp$reactivecli$Main$$getDockerRegistryConfig$1$1.apply(Unknown Source)
	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.run(Unknown Source)
	at com.lightbend.rp.reactivecli.Platform$$anon$1.execute(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Unknown Source)
	at scala.concurrent.Future$class.flatMap(Unknown Source)
	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.run(Unknown Source)
	at com.lightbend.rp.reactivecli.Platform$$anon$1.execute(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Unknown Source)
	at scala.concurrent.Future$class.flatMap(Unknown Source)
	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.run(Unknown Source)
	at com.lightbend.rp.reactivecli.Platform$$anon$1.execute(Unknown Source)
	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Unknown Source)
	at scala.concurrent.Future$class.flatMap(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$.com$lightbend$rp$reactivecli$Main$$getDockerConfig$1(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$$anonfun$com$lightbend$rp$reactivecli$Main$$generateDeployment$1.apply(Unknown Source)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(Unknown Source)
	at scala.collection.immutable.List.foreach(Unknown Source)
	at scala.collection.TraversableLike$class.map(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$.com$lightbend$rp$reactivecli$Main$$generateDeployment(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$$anonfun$com$lightbend$rp$reactivecli$Main$$runInputArgs$1$$anonfun$applyOrElse$2.apply(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$$anonfun$com$lightbend$rp$reactivecli$Main$$runInputArgs$1.applyOrElse(Unknown Source)
	at scala.PartialFunction$Lifted.apply(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$$anonfun$run$1.apply(Unknown Source)
	at com.lightbend.rp.reactivecli.Main$.main(Unknown Source)
	at <none>.main(Unknown Source)
[error, com.lightbend.rp.reactivecli.Main$] Failed to obtain Docker config for hello-play:1.0-SNAPSHOT, unable to access repository or registry; check authentication [401]

expectation

it works.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions