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

Image building fails when downloading spring-cloud-bindings #33699

Closed
simasch opened this issue Jan 5, 2023 · 6 comments
Closed

Image building fails when downloading spring-cloud-bindings #33699

simasch opened this issue Jan 5, 2023 · 6 comments
Labels
for: external-project For an external project and not something we can fix

Comments

@simasch
Copy link

simasch commented Jan 5, 2023

I'm using Spring Boot 2.7.7

Running

mvn spring-boot:build-image 

produces

Spring Cloud Bindings 1.10.0: Contributing to layer
[INFO]     [creator]         Downloading from https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to contribute spring-cloud-bindings layer
[INFO]     [creator]     unable to get dependency spring-cloud-bindings
[INFO]     [creator]     unable to download https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar
[INFO]     [creator]     could not download https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar: 401
[INFO]     [creator]     ERROR: failed to build: exit status 1

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 5, 2023
@simasch
Copy link
Author

simasch commented Jan 5, 2023

@scottfrederick
Copy link
Contributor

It looks like this is causing the problem: https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023

Yes, that's the cause. The Paketo Spring Boot buildpack is attempting to download the Spring Cloud Bindings library. The problem will need to be resolved by those two projects. We'll work with those projects to come up with a solution.

@scottfrederick scottfrederick closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2023
@scottfrederick scottfrederick added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 5, 2023
@jeisinge
Copy link

jeisinge commented Jan 5, 2023

FYI - A possible work around is available at paketo-buildpacks/spring-boot#225 (comment)

@simasch
Copy link
Author

simasch commented Jan 5, 2023

@jeisinge Thanks. My workaround is to use a Dockerfile. This will be much more reliable.

@scottfrederick scottfrederick changed the title spring-boot:build-image fails with 401 Image building fails when downloading spring-cloud-bindings Jan 5, 2023
@scottfrederick scottfrederick pinned this issue Jan 5, 2023
@scottfrederick
Copy link
Contributor

There is a related Spring Cloud Bindings issue here: spring-cloud/spring-cloud-bindings#71

And a Paketo Spring Boot buildpack issue here: paketo-buildpacks/spring-boot#304

@scottfrederick
Copy link
Contributor

Similar download errors will happen for the following libraries when building images from a plain war file that requires Tomcat to run:

  • tomcat-access-logging-support
  • tomcat-lifecycle-support
  • tomcat-logging-support

See the Paketo Apache Tomcat buildpack issue here: paketo-buildpacks/apache-tomcat#295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

4 participants