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.

can not push image in 0.9.8 but success in 0.9.7

See original GitHub issue

plugin config

<plugin>
	<groupId>com.google.cloud.tools</groupId>
	<artifactId>jib-maven-plugin</artifactId>
	<version>0.9.8</version>
	<configuration>
		<!--
		<allowInsecureRegistries>true</allowInsecureRegistries>
		-->
		<from>
			<image>harbor.test.xxx.com/test/jdk8</image>
		</from>
		<to>
			<image>harbor.test.xxx.com/test/jib-springboot-demo</image>
		</to>
		<container>
			<mainClass>com.xxx.springboot.demo.DockerSpringbootDemoApplication</mainClass>
		</container>

	</configuration>
</plugin>

maven settings.xml

<server>
	<id>harbor.test.xxx.com</id>
	<username>admin</username>
	<password>mypassword</password>
</server>

mvn package jib:build error log

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.8:build (default-cli) on project docker-springboot-demo: Build image failed, perhaps you should make sure your credentials for 'harbor.test.xxx.com' are set up correctly: Unauthorized for harbor.test.xxx.com/test/jib-springboot-demo: 401 Unauthorized
[ERROR] {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"test/jib-springboot-demo","Action":"pull"},{"Type":"repository","Class":"","Name":"test/jib-springboot-demo","Action":"push"},{"Type":"repository","Class":"","Name":"test/jdk8","Action":"pull"}]}]}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
qiankunlicommented, Aug 22, 2018

@coollog @chanseokoh it works in 0.9.9, thanks!

1reaction
chanseokohcommented, Aug 6, 2018

@qiankunli from https://github.com/GoogleContainerTools/jib/issues/699#issue-343957843, I noticed that with 0.9.7, you were connecting through the plain HTTP (not HTTPS) by setting allowInsecureRegistries to true. (And I’m sure you were passing your password with -DsendCredentialsOverHttp.) Is this still the case, or harbor.test.xxx.com is now a full-fledged HTTPS registry?

@Justinmad likewise, with 0.9.7, were you setting allowInsecureRegistries to true to connect to an HTTP (not HTTPS) registry?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not push image in 0.9.8 but success in 0.9.7 gradle #808
Description of the issue: I encounter the same problem with gradle plugin. The same configs works for version 0.9.7, but gives error in...
Read more >
4. Release Notes — Buildbot 2.5.0 documentation
OAuth Authentication are now working with RolesFromEmails . DockerLatentWorker : _image_exists does not raise anymore if it encounters an image with <none> ...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
image directory" status:RESOLVED resolution:FIXED severity:normal ... Bug:2638 - "Ant doesn't run after successful install" status:RESOLVED resolution:FIXED ...
Read more >
Changelog - Prefect Docs
This hotfix release fixes an issue where the kubernetes agent would attempt to load a secret value and fail if it was not...
Read more >
OpenCA Guide for Versions 0.9.2+
toolkit. The problem is that several old distributions only include support for OpenSSL 0.9.6 but OpenCA needs version 0.9.7. If you install an...
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