microservices-with-spring-sectionwise-code icon indicating copy to clipboard operation
microservices-with-spring-sectionwise-code copied to clipboard

Getting "status code 51" error while building image using builderpack

Open gsrmarch opened this issue 3 years ago • 1 comments

[INFO] [creator] Using Java version 11.* from BP_JVM_VERSION [INFO] [creator] BellSoft Liberica JRE 11.0.16: Contributing to layer [INFO] [creator] Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz [INFO] [creator] unable to invoke layer creator [INFO] [creator] unable to get dependency jre [INFO] [creator] unable to download https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz [INFO] [creator] unable to request https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz [INFO] [creator] Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/115621629/142e6bf7-81d2-44e7-b8e3-10b9ec7f168b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220817%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220817T063014Z&X-Amz-Expires=300&X-Amz-Signature=2820afcafd4c0673afed0864ef33f2557d541f716f4f6c6566fd5df660422f46&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=115621629&response-content-disposition=attachment%3B%20filename%3Dbellsoft-jre11.0.16%2B8-linux-amd64.tar.gz&response-content-type=application%2Foctet-stream": x509: certificate signed by unknown authority [INFO] [creator] ERROR: failed to build: exit status 1 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 44.459 s [INFO] Finished at: 2022-08-17T02:30:15-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.2:build-image (default-cli) on project cards: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.7.2:build-image failed: Builder lifecycle 'creator' failed with status code 51 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

gsrmarch avatar Aug 17 '22 06:08 gsrmarch

Seems this will happen when you try to run the command behind the corporate network. More details can be identified in the below link. Please try to generate inside a personal laptop, with no VPNs, no corporate network.

https://github.com/paketo-buildpacks/bellsoft-liberica/issues/3

eazybytes avatar Aug 17 '22 12:08 eazybytes