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

Small typo in debug logs #1180

Open
Gurvan-MycomOsi opened this issue Mar 26, 2019 · 1 comment
Open

Small typo in debug logs #1180

Gurvan-MycomOsi opened this issue Mar 26, 2019 · 1 comment

Comments

@Gurvan-MycomOsi
Copy link

Description

[DEBUG] DOCKER> AuthConfig: credentials from ~/.m2/setting.xml
[DEBUG] DOCKER> registry = private.com, isValid= false

[INFO] DOCKER> The push refers to repository [private.com/dev/hello-rest-server2]

[ERROR] DOCKER> Unable to push 'private/com/dev/hello-rest-server2:1.0' to registry 'private.com' : unauthorized: authentication required [unauthorized: authentication required ]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.880 s
[INFO] Finished at: 2019-03-26T16:05:42+01:00
[INFO] Final Memory: 41M/445M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.28.0:push (publish-image) on project hello-rest-server2: Unable to push 'private.com/dev/hello-rest-server2:1.0' to registry 'privatei.com' : unauthorized: authentication required -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.28.0:push (publish-image) on project hello-rest-server2: Unable to push 'private.com/dev/hello-rest-server2:1.0' to registry private.com' : unauthorized: authentication required

Found in sources 👍

src/main/java/io/fabric8/maven/docker/util/AuthConfigFactory.java
Showing the top four matches Last indexed on Sep 25, 2018
Java
// Now lets lookup the registry & user from ~/.m2/setting.xml
ret = getAuthConfigFromSettings(settings, user, registry);
if (ret != null) {
log.debug("AuthConfig: credentials from ~/.m2/setting.xml");

WHY NOT A 's' FOR settingss.xml' ? I believe this is the convention for maven

Info

  • d-m-p version :0.28.0
  • Maven version (mvn -v) : 3.3.9

  • Docker version :Docker version 18.06.1-ce, build e68fc7a
@Gurvan-MycomOsi
Copy link
Author

Stupid me it's a log only. would be better factorize to avoid such discrepancies.

@Gurvan-MycomOsi Gurvan-MycomOsi changed the title push fails with authentication failure & strange setting file sourced Small typo in debug logs Mar 27, 2019
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

1 participant