apache / polaris

Apache Polaris, the interoperable, open source catalog for Apache Iceberg
https://polaris.apache.org/
Apache License 2.0
1.07k stars 111 forks source link

[BUG] docker build failure #329

Closed manojmukkamala closed 6 days ago

manojmukkamala commented 1 week ago

Is this a possible security vulnerability?

Describe the bug

Running a fresh docker build based off of main branch: docker build . -t polaris:v20240930 --build-arg ECLIPSELINK=true --build-arg ECLIPSELINK_DEPS=org.postgresql:postgresql:42.7.4

I tried removing the build args but same fate.

Error trace:

[+] Building 20.8s (12/15)                                                                                                                                                                                                                                                     docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                           0.0s
 => => transferring dockerfile: 1.85kB                                                                                                                                                                                                                                                         0.0s
 => [internal] load metadata for registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1726695169                                                                                                                                                                                          0.4s
 => [internal] load metadata for registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1726695192                                                                                                                                                                                                  0.2s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                              0.0s
 => => transferring context: 906B                                                                                                                                                                                                                                                              0.0s
 => [internal] load build context                                                                                                                                                                                                                                                              0.3s
 => => transferring context: 1.93MB                                                                                                                                                                                                                                                            0.3s
 => [stage-1 1/5] FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1726695169@sha256:4c90561565a199aeec97bad3628030c0deede8b797f3899c45c3761d3e242604                                                                                                                            0.0s
 => => resolve registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1726695169@sha256:4c90561565a199aeec97bad3628030c0deede8b797f3899c45c3761d3e242604                                                                                                                                    0.0s
 => CACHED [build 1/5] FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1726695192@sha256:7666303e9b1463b3a42fd43b18367be1a932b4c9aac4684a011332ae1f2840bd                                                                                                                               0.0s
 => => resolve registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1726695192@sha256:7666303e9b1463b3a42fd43b18367be1a932b4c9aac4684a011332ae1f2840bd                                                                                                                                            0.0s
 => CACHED [stage-1 2/5] WORKDIR /app                                                                                                                                                                                                                                                          0.0s
 => [build 2/5] COPY --chown=default:root . /app                                                                                                                                                                                                                                               1.0s
 => [build 3/5] WORKDIR /app                                                                                                                                                                                                                                                                   0.1s
 => [build 4/5] RUN rm -rf build                                                                                                                                                                                                                                                               0.1s
 => ERROR [build 5/5] RUN ./gradlew --no-daemon --info "-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4" -PeclipseLink=true clean prepareDockerDist                                                                                                                                        18.9s
------                                                                                                                                                                                                                                                                                              
 > [build 5/5] RUN ./gradlew --no-daemon --info "-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4" -PeclipseLink=true clean prepareDockerDist:                                                                                                                                                    
0.120   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                                                                                                                                                                               
0.120                                  Dload  Upload   Total   Spent    Left  Speed                                                                                                                                                                                                                 
100   167  100   167    0     0   1546      0 --:--:-- --:--:-- --:--:--  1546                                                                                                                                                                                                                      
100    64  100    64    0     0    226      0 --:--:-- --:--:-- --:--:--   226                                                                                                                                                                                                                      
0.419   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.419                                  Dload  Upload   Total   Spent    Left  Speed
100 43583  100 43583    0     0   409k      0 --:--:-- --:--:-- --:--:--  409k
0.587 Downloading https://services.gradle.org/distributions/gradle-8.10.2-bin.zip
1.098 .............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%.............100%
3.771 Initialized native services in: /home/default/.gradle/native
3.775 Initialized jansi services in: /home/default/.gradle/native
3.881 
3.881 Welcome to Gradle 8.10.2!
3.881 
3.881 Here are the highlights of this release:
3.881  - Support for Java 23
3.881  - Faster configuration cache
3.881  - Better configuration cache reports
3.881 
3.881 For more details see https://docs.gradle.org/8.10.2/release-notes.html
3.881 
3.882 Received JVM installation metadata from '/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-1.el9.aarch64': {JAVA_HOME=/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-1.el9.aarch64, JAVA_VERSION=21.0.4, JAVA_VENDOR=Red Hat, Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.4+7-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.4+7-LTS, VM_VENDOR=Red Hat, Inc., OS_ARCH=aarch64}
3.882 To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
3.883 Starting process 'Gradle build daemon'. Working directory: /home/default/.gradle/daemon/8.10.2 Command: /usr/lib/jvm/java-21-openjdk-21.0.4.0.7-1.el9.aarch64/bin/java -XX:MaxMetaspaceSize=768m --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xms2g -Xmx4g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/default/.gradle/wrapper/dists/gradle-8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/gradle-daemon-main-8.10.2.jar -javaagent:/home/default/.gradle/wrapper/dists/gradle-8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/agents/gradle-instrumentation-agent-8.10.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10.2
3.883 Successfully started process 'Gradle build daemon'
4.381 An attempt to start the daemon took 0.446 secs.
4.381 The client will now receive all logging from the daemon (pid: 67). The daemon log file: /home/default/.gradle/daemon/8.10.2/daemon-67.out.log
4.381 Daemon will be stopped at the end of the build 
4.581 Using 8 worker leases.
4.581 Configuration on demand is an incubating feature.
4.681 Received JVM installation metadata from '/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-1.el9.aarch64': {JAVA_HOME=/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-1.el9.aarch64, JAVA_VERSION=21.0.4, JAVA_VENDOR=Red Hat, Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.4+7-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.4+7-LTS, VM_VENDOR=Red Hat, Inc., OS_ARCH=aarch64}
4.881 Watching the file system is configured to be enabled if available
4.881 Not watching /app since the file system is not supported
4.881 File system watching is active
5.181 Starting Build
5.181 Generating /home/default/.gradle/caches/8.10.2/generated-gradle-jars/gradle-api-8.10.2.jar
9.581 Cannot use Kotlin build script compile avoidance with /home/default/.gradle/caches/8.10.2/generated-gradle-jars/gradle-api-8.10.2.jar: class org/gradle/internal/extensions/stdlib/AutoCloseableExtensionsKt: inline fun useToRun(): compile avoidance is not supported with public inline functions
10.28 Cannot use Kotlin build script compile avoidance with /home/default/.gradle/wrapper/dists/gradle-8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/gradle-kotlin-dsl-extensions-8.10.2.jar: class org/gradle/kotlin/dsl/GradleApiKotlinDslExtensions_1cbh1oqkvm762j10e96dawuh5Kt: inline fun domainObjectContainer(): compile avoidance is not supported with public inline functions
10.28 Cannot use Kotlin build script compile avoidance with /home/default/.gradle/wrapper/dists/gradle-8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/gradle-kotlin-dsl-8.10.2.jar: class org/gradle/kotlin/dsl/ArtifactHandlerScope: inline fun invoke(): compile avoidance is not supported with public inline functions
10.28 Caching disabled for Kotlin DSL script compilation (Settings/TopLevel/stage1) because:
10.28   Build cache is disabled
12.88 Caching disabled for Kotlin DSL accessors for settings 'app' because:
12.88   Build cache is disabled
12.88 Caching disabled for Kotlin DSL script compilation (Settings/TopLevel/stage2) because:
12.88   Build cache is disabled
13.48 Settings evaluated using settings file '/app/settings.gradle.kts'.
13.48 Using local directory build cache for the root build (location = /home/default/.gradle/caches/build-cache-1, removeUnusedEntriesAfter = 7 days).
13.48 Not watching /app/build-logic since the file system is not supported
13.48 Build cache key for Kotlin DSL script compilation (Settings/TopLevel/stage1) is 6aa17b1080677be63df300480b821639
13.68 Stored cache entry for Kotlin DSL script compilation (Settings/TopLevel/stage1) with cache key 6aa17b1080677be63df300480b821639
13.98 Caching disabled for generation of dependency accessors for libs because:
13.98   Not worth caching.
14.38 Projects loaded. Root project using build file '/app/build.gradle.kts'.
14.38 Included projects: [root project 'polaris', project ':aggregated-license-report', project ':polaris-core', project ':polaris-eclipselink', project ':polaris-service']
14.38 Caching disabled for generation of dependency accessors for baselibs because:
14.38   Not worth caching.
16.38 
16.38 > Configure project :polaris-build-logic
16.38 Evaluating project ':polaris-build-logic' using build file '/app/build-logic/build.gradle.kts'.
16.38 Build cache key for Kotlin DSL version catalog plugin accessors for classpath '2ee43e102ed4fdc1dd4a677bc6789b28' is d3b7baac27edb22bc2ba587695972932
16.38 Stored cache entry for Kotlin DSL version catalog plugin accessors for classpath '2ee43e102ed4fdc1dd4a677bc6789b28' with cache key d3b7baac27edb22bc2ba587695972932
16.38 Build cache key for Kotlin DSL plugin specs accessors for classpath '2ee43e102ed4fdc1dd4a677bc6789b28' is 923ba3c2e79d5e01d44b179e4732be86
16.38 Stored cache entry for Kotlin DSL plugin specs accessors for classpath '2ee43e102ed4fdc1dd4a677bc6789b28' with cache key 923ba3c2e79d5e01d44b179e4732be86
16.38 Build cache key for Kotlin DSL script compilation (Project/TopLevel/stage1) is fcede9bb8ec1e674dce20772f0ca7286
16.38 Stored cache entry for Kotlin DSL script compilation (Project/TopLevel/stage1) with cache key fcede9bb8ec1e674dce20772f0ca7286
16.38 Downloading https://plugins.gradle.org/m2/org/gradle/kotlin/kotlin-dsl/org.gradle.kotlin.kotlin-dsl.gradle.plugin/4.5.0/org.gradle.kotlin.kotlin-dsl.gradle.plugin-4.5.0.pom to /home/default/.gradle/.tmp/gradle_download3112339139151883249bin
16.38 Resource missing. [HTTP HEAD: https://plugins.gradle.org/m2/org/gradle/kotlin/kotlin-dsl/org.gradle.kotlin.kotlin-dsl.gradle.plugin/4.5.0/org.gradle.kotlin.kotlin-dsl.gradle.plugin-4.5.0.jar]
16.38 Downloading https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/4.5.0/gradle-kotlin-dsl-plugins-4.5.0.pom to /home/default/.gradle/.tmp/gradle_download3695938197964340704bin
16.38 Downloading https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/4.5.0/gradle-kotlin-dsl-plugins-4.5.0.module to /home/default/.gradle/.tmp/gradle_download10322050199855592695bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-sam-with-receiver/1.9.24/kotlin-sam-with-receiver-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download11949809010877956493bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-assignment/1.9.24/kotlin-assignment-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download17883712733665927144bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.9.24/kotlin-gradle-plugin-api-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download8193870129122698104bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugins-bom/1.9.24/kotlin-gradle-plugins-bom-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download15222335843229725045bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.9.24/kotlin-gradle-plugin-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download9297164589882175696bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugins-bom/1.9.24/kotlin-gradle-plugins-bom-1.9.24.module to /home/default/.gradle/.tmp/gradle_download13212458152838886551bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.9.24/kotlin-gradle-plugin-api-1.9.24.module to /home/default/.gradle/.tmp/gradle_download278097712508080219bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-sam-with-receiver/1.9.24/kotlin-sam-with-receiver-1.9.24.module to /home/default/.gradle/.tmp/gradle_download9457988935737615887bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.9.24/kotlin-gradle-plugin-1.9.24.module to /home/default/.gradle/.tmp/gradle_download12049029137647872691bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-assignment/1.9.24/kotlin-assignment-1.9.24.module to /home/default/.gradle/.tmp/gradle_download2226569815217624424bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib/1.9.24/kotlin-stdlib-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download5921974846685211172bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib/1.9.24/kotlin-stdlib-1.9.24.module to /home/default/.gradle/.tmp/gradle_download11851102621664158044bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-model/1.9.24/kotlin-gradle-plugin-model-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download16311308074617018549bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-idea/1.9.24/kotlin-gradle-plugin-idea-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download6706188642938625162bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-idea-proto/1.9.24/kotlin-gradle-plugin-idea-proto-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download14343641585127724024bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-util-klib/1.9.24/kotlin-util-klib-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download12287098580248076280bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-android-extensions/1.9.24/kotlin-android-extensions-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download13233118845108098454bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-model/1.9.24/kotlin-gradle-plugin-model-1.9.24.module to /home/default/.gradle/.tmp/gradle_download294429433384495583bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-build-tools-api/1.9.24/kotlin-build-tools-api-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download13375492019072527741bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-klib-commonizer-api/1.9.24/kotlin-klib-commonizer-api-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download11722063507335706315bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.9.24/kotlin-scripting-compiler-embeddable-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download13867558230683456307bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-compiler-runner/1.9.24/kotlin-compiler-runner-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download9235890318813288376bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-embeddable/1.9.24/kotlin-scripting-compiler-impl-embeddable-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download1741272193494537552bin
16.38 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-idea/1.9.24/kotlin-gradle-plugin-idea-1.9.24.module to /home/default/.gradle/.tmp/gradle_download4117774219261155166bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.9.24/kotlin-compiler-embeddable-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download12967859305948933807bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-tooling-core/1.9.24/kotlin-tooling-core-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download12888143910735555608bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-annotations/1.9.24/kotlin-gradle-plugin-annotations-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download6211815101419842665bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-native-utils/1.9.24/kotlin-native-utils-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download14596785842292576370bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-project-model/1.9.24/kotlin-project-model-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download13943615200448557468bin
16.39 Downloading https://plugins.gradle.org/m2/org/jetbrains/annotations/13.0/annotations-13.0.pom to /home/default/.gradle/.tmp/gradle_download9287559426630444869bin
16.48 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-util-io/1.9.24/kotlin-util-io-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download1449150428559909651bin
16.48 Downloading https://plugins.gradle.org/m2/org/jetbrains/intellij/deps/trove4j/1.0.20200330/trove4j-1.0.20200330.pom to /home/default/.gradle/.tmp/gradle_download4045467202652162498bin
16.48 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-daemon-embeddable/1.9.24/kotlin-daemon-embeddable-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download9153006733725273986bin
16.58 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-daemon-client/1.9.24/kotlin-daemon-client-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download113468790370614351bin
16.58 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.5.0/kotlinx-coroutines-core-jvm-1.5.0.pom to /home/default/.gradle/.tmp/gradle_download6965714205455364711bin
16.58 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.5.0/kotlinx-coroutines-core-jvm-1.5.0.module to /home/default/.gradle/.tmp/gradle_download14951138953296544452bin
16.68 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.9.24/kotlin-scripting-jvm-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download3728612862775480221bin
16.68 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-common/1.9.24/kotlin-scripting-common-1.9.24.pom to /home/default/.gradle/.tmp/gradle_download17973510997940386114bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-model/1.9.24/kotlin-gradle-plugin-model-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download13378767687543044236bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.9.24/kotlin-gradle-plugin-api-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download2594969307892263867bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/annotations/13.0/annotations-13.0.jar to /home/default/.gradle/.tmp/gradle_download9929171418549424072bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/1.9.24/kotlin-gradle-plugin-api-1.9.24-gradle82.jar to /home/default/.gradle/.tmp/gradle_download5906126424216510023bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib/1.9.24/kotlin-stdlib-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download2244876487343464927bin
16.78 Downloading https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/4.5.0/gradle-kotlin-dsl-plugins-4.5.0.jar to /home/default/.gradle/.tmp/gradle_download13067204508280929669bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-assignment/1.9.24/kotlin-assignment-1.9.24-gradle82.jar to /home/default/.gradle/.tmp/gradle_download9189519252899499680bin
16.78 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-sam-with-receiver/1.9.24/kotlin-sam-with-receiver-1.9.24-gradle82.jar to /home/default/.gradle/.tmp/gradle_download1554770205080505574bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-idea-proto/1.9.24/kotlin-gradle-plugin-idea-proto-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download14776933299966322185bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-idea/1.9.24/kotlin-gradle-plugin-idea-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download14656447612151380924bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.9.24/kotlin-gradle-plugin-1.9.24-gradle82.jar to /home/default/.gradle/.tmp/gradle_download12117535565642791322bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-klib-commonizer-api/1.9.24/kotlin-klib-commonizer-api-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download9547921332311467276bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-native-utils/1.9.24/kotlin-native-utils-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download4725588246713908083bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-util-klib/1.9.24/kotlin-util-klib-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download10622467134972617615bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-build-tools-api/1.9.24/kotlin-build-tools-api-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download15066236650491773265bin
16.88 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-android-extensions/1.9.24/kotlin-android-extensions-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download1102191297881475458bin
16.98 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-compiler-runner/1.9.24/kotlin-compiler-runner-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download6902559500743983442bin
16.98 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.9.24/kotlin-compiler-embeddable-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download4048797024190950753bin
16.98 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.9.24/kotlin-scripting-compiler-embeddable-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download7953171791306251031bin
16.98 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-embeddable/1.9.24/kotlin-scripting-compiler-impl-embeddable-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download7941226915023705954bin
17.08 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-annotations/1.9.24/kotlin-gradle-plugin-annotations-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download6231797195657365145bin
17.08 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-util-io/1.9.24/kotlin-util-io-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download9069724537314452069bin
17.08 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-project-model/1.9.24/kotlin-project-model-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download13253287141369947462bin
17.08 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-tooling-core/1.9.24/kotlin-tooling-core-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download9718147108627998807bin
17.08 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-daemon-embeddable/1.9.24/kotlin-daemon-embeddable-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download16852661795046375815bin
17.18 Downloading https://plugins.gradle.org/m2/org/jetbrains/intellij/deps/trove4j/1.0.20200330/trove4j-1.0.20200330.jar to /home/default/.gradle/.tmp/gradle_download14316440318324639185bin
17.18 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.9.24/kotlin-scripting-jvm-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download5824309605794783409bin
17.18 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.5.0/kotlinx-coroutines-core-jvm-1.5.0.jar to /home/default/.gradle/.tmp/gradle_download14620608413889637754bin
17.18 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-daemon-client/1.9.24/kotlin-daemon-client-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download7281271361885742428bin
17.28 Downloading https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-common/1.9.24/kotlin-scripting-common-1.9.24.jar to /home/default/.gradle/.tmp/gradle_download15230286539963177485bin
18.68 
18.68 FAILURE: Build failed with an exception.
18.68 
18.68 * What went wrong:
18.68 A problem occurred configuring project ':polaris-build-logic'.
18.68 > Could not resolve all artifacts for configuration ':polaris-build-logic:classpath'.
18.68    > Could not download kotlin-gradle-plugin-1.9.24-gradle82.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24)
18.68       > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.9.24/kotlin-gradle-plugin-1.9.24-gradle82.jar'.
18.68          > Failed to move file '/home/default/.gradle/.tmp/gradle_download12117535565642791322bin' into filestore at 'org.jetbrains.kotlin/kotlin-gradle-plugin/1.9.24/b6f5f875b19f9240f2e83e00f6f2b9dff1ebc2c3/kotlin-gradle-plugin-1.9.24-gradle82.jar' 
18.68             > Failed to create directory '/home/default/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/1.9.24/b6f5f875b19f9240f2e83e00f6f2b9dff1ebc2c3'
18.68    > Could not download kotlin-compiler-embeddable-1.9.24.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.24)
18.68       > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.9.24/kotlin-compiler-embeddable-1.9.24.jar'.
18.68          > Failed to move file '/home/default/.gradle/.tmp/gradle_download4048797024190950753bin' into filestore at 'org.jetbrains.kotlin/kotlin-compiler-embeddable/1.9.24/78dab849090e6c5e2eadb6e59a11cdc28fb67a08/kotlin-compiler-embeddable-1.9.24.jar' 
18.68             > Failed to create directory '/home/default/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.9.24/78dab849090e6c5e2eadb6e59a11cdc28fb67a08'
18.68    > Could not download kotlin-scripting-jvm-1.9.24.jar (org.jetbrains.kotlin:kotlin-scripting-jvm:1.9.24)
18.68       > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-scripting-jvm/1.9.24/kotlin-scripting-jvm-1.9.24.jar'.
18.68          > Failed to move file '/home/default/.gradle/.tmp/gradle_download5824309605794783409bin' into filestore at 'org.jetbrains.kotlin/kotlin-scripting-jvm/1.9.24/f179cc31fb89102c0e229c23b7d852d9840e13c7/kotlin-scripting-jvm-1.9.24.jar' 
18.68             > Failed to create directory '/home/default/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-jvm/1.9.24/f179cc31fb89102c0e229c23b7d852d9840e13c7'
18.68 
18.68 * Try:
18.68 > Run with --stacktrace option to get the stack trace.
18.68 > Run with --debug option to get more log output.
18.68 > Run with --scan to get full insights.
18.68 > Get more help at https://help.gradle.org.
18.68 
18.68 BUILD FAILED in 18s
18.68 Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
------
Dockerfile:35
--------------------
  33 |     
  34 |     # Build the rest catalog
  35 | >>> RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
  36 |     
  37 |     FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1726695169
--------------------
ERROR: failed to solve: process "/bin/sh -c ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+\"-PeclipseLinkDeps=$ECLIPSELINK_DEPS\"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist" did not complete successfully: exit code: 1

To Reproduce

No response

Actual Behavior

No response

Expected Behavior

No response

Additional context

No response

System information

No response

MonkeyCanCode commented 6 days ago

@manojmukkamala quick test on local with latest code show it is working for my machine. May need more info to debug this.

manojmukkamala commented 6 days ago

oh! let me try pruning by docker build cache.

manojmukkamala commented 6 days ago

I apologize, this was an issue on my side. clearing docker build cache and starting from scratch fixed it. Thanks for looking into it though.

Btw, it would be cool if there is a hosted docker image for polaris so we don't have to deal with building stuff locally.

ebyhr commented 6 days ago

it would be cool if there is a hosted docker image for polaris

@manojmukkamala I totally agree with you! Can we close this issue and continue in https://github.com/apache/polaris/issues/152?

manojmukkamala commented 6 days ago

sure!