Previously working CI Pipeline fails to pull docker image oracle/graalvm-ce

My projects CI Pipeline on gitlab.com is failing today. I first had trouble downloading Maven dependencies from Maven Central. This problem went away after I restarted the pipeline.

Now it is stuck pulling a docker image. This used to work before without problems.
Error Message:

    [0KRunning with gitlab-runner 13.8.0 (775dd39d)
    e[0;me[0K  on docker-auto-scale 72989761
    e[0;msection_start:1611833835:resolve_secrets
    e[0Ke[0Ke[36;1mResolving secretse[0;m
    e[0;msection_end:1611833835:resolve_secrets
    e[0Ksection_start:1611833835:prepare_executor
    e[0Ke[0Ke[36;1mPreparing the "docker+machine" executore[0;m
    e[0;me[0KUsing Docker executor with image oracle/graalvm-ce:20.3.0-java11 ...
    e[0;me[0KPulling docker image oracle/graalvm-ce:20.3.0-java11 ...
    e[0;me[0;33mWARNING: Failed to pull image with policy "always": Error response from daemon: pull access denied for oracle/graalvm-ce, repository does not exist or may require 'docker login' (docker.go:147:0s)
    e[0;msection_end:1611833846:prepare_executor
    e[0Ke[31;1mERROR: Job failed (system failure): failed to pull image "oracle/graalvm-ce:20.3.0-java11" with specified policies [always]: Error response from daemon: pull access denied for oracle/graalvm-ce, repository does not exist or may require 'docker login' (docker.go:147:0s)
    e[0;m

The output from a previous successful run:

    0KRunning with gitlab-runner 13.8.0-rc1 (28e2e34a)
    e[0;me[0K  on docker-auto-scale fa6cab46
    e[0;msection_start:1610538058:resolve_secrets
    e[0Ke[0Ke[36;1mResolving secretse[0;m
    e[0;msection_end:1610538058:resolve_secrets
    e[0Ksection_start:1610538058:prepare_executor
    e[0Ke[0Ke[36;1mPreparing the "docker+machine" executore[0;m
    e[0;me[0KUsing Docker executor with image oracle/graalvm-ce:20.3.0-java11 ...
    e[0;me[0KPulling docker image oracle/graalvm-ce:20.3.0-java11 ...
    e[0;me[0KUsing docker image sha256:0b7b0c4bfba59fac55dc032d46bdf886bcb0fde7539164653e32a4fe420f5522 for oracle/graalvm-ce:20.3.0-java11 with digest oracle/graalvm-ce@sha256:5248e0c353cef025d824c28403f35e3c0d757f1bbcf70eb68ecf35b8787ed77e ...
    e[0;msection_end:1610538097:prepare_executor

Here’s the gitlab ci config for this job:

    build-native-image:
          image: oracle/graalvm-ce:20.3.0-java11
          stage: build-native-image
          script:
            - gu install native-image
            - cd ./modules/backend/lambdas-native-image
            - mkdir -p target/native-image
            #- uname -a
            #- native-image --version
            - native-image --enable-http --enable-https --enable-url-protocols=http,https -Djava.net.preferIPv4Stack=true -H:Name=bootstrap -H:Path=target/native-image -H:+ReportExceptionStackTraces -H:+ReportUnsupportedElementsAtRuntime -H:+AllowIncompleteClasspath -H:ReflectionConfigurationFiles=src/main/conf/reflection.json -H:DynamicProxyConfigurationFiles=src/main/conf/proxy-conf.json -H:ResourceConfigurationFiles=src/main/conf/resources.json -H:IncludeResourceBundles=com.sun.org.apache.xml.internal.res.XMLErrorResources -classpath target/lambdas-native-uber.jar de.sas.cloudcore.lambda.custom.LambdaBootstrap
          artifacts:
            paths:
              - modules/backend/lambdas-native-image/target/native-image/bootstrap
            expire_in: 4 hrs
          only:
            - merge_requests

For some reason the source code formatting doesn’t seem to work correctly for this last part of the post.

Edit by @dnsmichi - multiline code can be rendered with 3 back ticks instead of the 4 space indent. :slight_smile:

```
line 1
line 2
```

Thanks for the hint @dnsmichi !

Hi,

Tried to pull it locally, it either does not exist or requires authorization.

Seems the project got deleted, https://registry.hub.docker.com/r/oracle/graalvm-ce returns a 404. I tried logging in, still gone.

Found this issue: error 404 on dockerhub oracle/graalvm-ce:20.1.0-java11 · Issue #3147 · oracle/graal · GitHub where it says that the registry was moved. Following the docs URL Container Images to docker run -it ghcr.io/graalvm/graalvm-ce:21.0.0 bash which pulls the correct image.

For your code, I’d suggest the following diff:

-image: oracle/graalvm-ce:20.3.0-java11
+image: ghcr.io/graalvm/graalvm-ce:20.3.0-java11

Cheers,
Michael

PS: Discourse supports code tags with diffs.

```diff
-image: oracle/graalvm-ce:20.3.0-java11
+image: ghcr.io/graalvm/graalvm-ce:20.3.0-java11
```

Thanks a lot, you’re right. This was the cause. The name of the image changed as well, but I was able to find he correct one: ghcr.io/graalvm/graalvm-ce:ol7-java11-20.3.0 :slight_smile:

1 Like