부트 이미지 빌드 잡에서 간헐적으로 다운로드에 실패하는 문제
버그
(선택) 에픽
(필수) 요약
- 외부 서버에 파일 다운로드에 실패하여 job 실패
(필수) 재현 단계
- 모름. 서버 상태가 안좋은건지 임시 차단이 걸린건지 모르겠는데 그냥 가끔씩 랜덤으로 다운로드에 실패함
(필수) 예상되는 올바른 동작
- 부트 이미지가 외부 의존 문제로 실패하지 않고 정상적으로 빌드되어야 함
- 매번 외부 서버에서 다운로드 받지 말고, 내부망에 의존성 캐시를 두고 거기서 받게 해야할 듯
(필수) 버그로 추측되는 현재 동작
- 깃헙에 bell-sw liberica jre 릴리즈 파일 다운로드에 실패하여 이미지 빌드에 실패함
(선택) 관련 로그 및 스크린샷
(선택) 환경 정보
환경 정보 확장
$ gradle bootBuildImage ${GRADLE_CACHE_ARGS} --publishImage ${PROPERTY_REGISTRY} ${PROPERTY_IMAGE} ${PROPERTY_DOCKER} Starting a Gradle Daemon (subsequent builds will be faster) > Task :compileKotlin FROM-CACHE > Task :compileJava NO-SOURCE > Task :processResources > Task :classes > Task :bootJarMainClassName > Task :bootJar > Task :bootBuildImage Building image 'registry.bellsoft.net/connected-life/bell-safe-house-api/39-local_k8s_dev_env_setup:latest' > Pulling builder image 'docker.io/paketobuildpacks/builder:base' .................................................. > Pulled builder image 'paketobuildpacks/builder@sha256:d00e4cc8aa0f40d47e8b67bbd152436b9c89f96dbba46f6adf9d39777950d149' > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' .................................................. > Pulled run image 'paketobuildpacks/run@sha256:d1b1fb1c0549f92c0810382707155469753dda01b2a7722dfab4dd25859e543a' > Executing lifecycle version v0.14.1 > Using build cache volume 'pack-cache-d5ba7156c01f.build' > Running creator [creator] Previous image with name "registry.bellsoft.net/connected-life/bell-safe-house-api/39-local_k8s_dev_env_setup:latest" not found [creator] ===> DETECTING [creator] 6 of 24 buildpacks participating [creator] paketo-buildpacks/ca-certificates 3.2.5 [creator] paketo-buildpacks/bellsoft-liberica 9.4.1 [creator] paketo-buildpacks/syft 1.16.0 [creator] paketo-buildpacks/executable-jar 6.2.5 [creator] paketo-buildpacks/dist-zip 5.2.5 [creator] paketo-buildpacks/spring-boot 5.15.0 [creator] ===> RESTORING [creator] ===> BUILDING [creator] [creator] Paketo CA Certificates Buildpack 3.2.5 [creator] https://github.com/paketo-buildpacks/ca-certificates [creator] Launch Helper: Contributing to layer [creator] Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper [creator] [creator] Paketo BellSoft Liberica Buildpack 9.4.1 [creator] https://github.com/paketo-buildpacks/bellsoft-liberica [creator] Build Configuration: [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted) [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE [creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE [creator] $BP_JVM_VERSION 17.* the Java version [creator] Launch Configuration: [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT) [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR) [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX) [creator] $BPL_JMX_PORT 5000 configure the JMX port [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation [creator] $JAVA_TOOL_OPTIONS the JVM launch flags [creator] Using Java version 17.* from BP_JVM_VERSION [creator] BellSoft Liberica JRE 17.0.4: Contributing to layer [creator] Downloading from https://github.com/bell-sw/Liberica/releases/download/17.0.4+8/bellsoft-jre17.0.4+8-linux-amd64.tar.gz [creator] unable to invoke layer creator [creator] unable to get dependency jre [creator] unable to download https://github.com/bell-sw/Liberica/releases/download/17.0.4+8/bellsoft-jre17.0.4+8-linux-amd64.tar.gz [creator] unable to request https://github.com/bell-sw/Liberica/releases/download/17.0.4+8/bellsoft-jre17.0.4+8-linux-amd64.tar.gz [creator] Get "https://github.com/bell-sw/Liberica/releases/download/17.0.4+8/bellsoft-jre17.0.4+8-linux-amd64.tar.gz": read tcp 172.17.0.2:58928->20.200.245.247:443: read: connection reset by peer [creator] ERROR: failed to build: exit status 1 > Task :bootBuildImage FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':bootBuildImage'. > Builder lifecycle 'creator' failed with status code 51 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3m 56s 5 actionable tasks: 4 executed, 1 from cache
Edited by Bell