Fails with code 400 or 404
Summary
All builds fail with a client code of 400, or a backend code of 404.
Steps to reproduce
Install GitLab, GitLab CI, and GitLab Container Registry behind Apache HTTP Proxy.
.gitlab-ci.yml
.gitlab-ci.yml
docker-build:
image: docker:stable
stage: build
variables:
DOCKER_HOST: tcp://docker:2375
#DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
services:
- docker:dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" --password-stdin
script:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- mkdir -p $HOME/.docker/cli-plugins
- wget https://github.com/docker/buildx/releases/download/v0.7.1/buildx-v0.7.1.linux-arm64 -O $HOME/.docker/cli-plugins/docker-buildx
- chmod a+rwx $HOME/.docker/cli-plugins/docker-buildx
- docker buildx create --name $CI_COMMIT_REF_SLUG
- docker buildx inspect $CI_COMMIT_REF_SLUG --bootstrap
- docker buildx use $CI_COMMIT_REF_SLUG
- docker buildx build --push -t $CI_REGISTRY_IMAGE${tag} .
rules:
- if: $CI_COMMIT_BRANCH
exists:
- Dockerfile
Dockerfile
FROM ubuntu:20.04
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install bash
SHELL [ "/bin/bash", "-c" ]
CMD [ "/bin/bash", "-c" ]
Actual behavior
It fails.
Expected behavior
It finishes.
Relevant logs and/or screenshots
job log
[0KRunning with gitlab-runner 14.7.0 (98daeee0)[0;m
[0K on xxxxxxxxxxxx xxxxxxxxxx[0;m
section_start:1645221343:prepare_executor
[0K[0K[36;1mPreparing the "docker" executor[0;m[0;m
[0KUsing Docker executor with image docker:stable ...[0;m
[0KStarting service docker:dind ...[0;m
[0KPulling docker image docker:dind ...[0;m
[0KUsing docker image sha256:be435b54cd392da632ac2c026657537d6559f9a9faf496f22bb1ef7f9a97ea17 for docker:dind with digest docker@sha256:6f2ae4a5fd85ccf85cdd829057a34ace894d25d544e5e4d9f2e7109297fedf8d ...[0;m
[0KWaiting for services to be up and running...[0;m
[0;33m*** WARNING:[0;m Service runner-m8c2luf1-project-60-concurrent-0-78d5e7035b550f18-docker-0 probably didn't start properly.
Health check error:
service "runner-m8c2luf1-project-60-concurrent-0-78d5e7035b550f18-docker-0-wait-for-service" timeout
Health check container logs:
Service container logs:
2022-02-18T21:55:45.038608508Z time="2022-02-18T21:55:45.038482027Z" level=info msg="Starting up"
2022-02-18T21:55:45.039923473Z time="2022-02-18T21:55:45.039499111Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
2022-02-18T21:55:45.039938873Z time="2022-02-18T21:55:45.039659232Z" level=warning msg="Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network." host="tcp://0.0.0.0:2375"
2022-02-18T21:55:45.039945193Z time="2022-02-18T21:55:45.039682912Z" level=warning msg="Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there!" host="tcp://0.0.0.0:2375"
2022-02-18T21:55:46.040220516Z time="2022-02-18T21:55:46.039774714Z" level=warning msg="Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message" host="tcp://0.0.0.0:2375"
2022-02-18T21:55:46.040249836Z time="2022-02-18T21:55:46.040089435Z" level=warning msg="Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network" host="tcp://0.0.0.0:2375"
2022-02-18T21:55:46.040253996Z time="2022-02-18T21:55:46.040100196Z" level=warning msg="You can override this by explicitly specifying '--tls=false' or '--tlsverify=false'" host="tcp://0.0.0.0:2375"
2022-02-18T21:55:46.040257156Z time="2022-02-18T21:55:46.040108316Z" level=warning msg="Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release" host="tcp://0.0.0.0:2375"
2022-02-18T21:56:01.046997650Z time="2022-02-18T21:56:01.046521688Z" level=info msg="libcontainerd: started new containerd process" pid=33
2022-02-18T21:56:01.047023610Z time="2022-02-18T21:56:01.046635609Z" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-02-18T21:56:01.047027210Z time="2022-02-18T21:56:01.046646209Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-02-18T21:56:01.047030210Z time="2022-02-18T21:56:01.046674609Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-02-18T21:56:01.047033770Z time="2022-02-18T21:56:01.046689449Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-02-18T21:56:01.057739853Z time="2022-02-18T21:56:01.057627413Z" level=info msg="starting containerd" revision=7b11cfaabd73bb80907dd23182b9347b4245eb5d version=v1.4.12
2022-02-18T21:56:01.079326060Z time="2022-02-18T21:56:01.079040978Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
2022-02-18T21:56:01.079346340Z time="2022-02-18T21:56:01.079170859Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085124203Z time="2022-02-18T21:56:01.085010962Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085349804Z time="2022-02-18T21:56:01.085270963Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085377484Z time="2022-02-18T21:56:01.085308643Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085384764Z time="2022-02-18T21:56:01.085327204Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
2022-02-18T21:56:01.085433284Z time="2022-02-18T21:56:01.085392084Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085516044Z time="2022-02-18T21:56:01.085468244Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085707805Z time="2022-02-18T21:56:01.085633885Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085860206Z time="2022-02-18T21:56:01.085809565Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
2022-02-18T21:56:01.085867566Z time="2022-02-18T21:56:01.085834246Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
2022-02-18T21:56:01.085910806Z time="2022-02-18T21:56:01.085876926Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
2022-02-18T21:56:01.085922806Z time="2022-02-18T21:56:01.085893486Z" level=info msg="metadata content store policy set" policy=shared
2022-02-18T21:56:01.094438800Z time="2022-02-18T21:56:01.094334120Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
2022-02-18T21:56:01.094459120Z time="2022-02-18T21:56:01.094366320Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
2022-02-18T21:56:01.094462480Z time="2022-02-18T21:56:01.094412480Z" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094491160Z time="2022-02-18T21:56:01.094448920Z" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094508560Z time="2022-02-18T21:56:01.094470520Z" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094512440Z time="2022-02-18T21:56:01.094488680Z" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094552840Z time="2022-02-18T21:56:01.094500680Z" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094604561Z time="2022-02-18T21:56:01.094580961Z" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094637161Z time="2022-02-18T21:56:01.094612441Z" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094710801Z time="2022-02-18T21:56:01.094646881Z" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.094732881Z time="2022-02-18T21:56:01.094665401Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
2022-02-18T21:56:01.094908762Z time="2022-02-18T21:56:01.094853962Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
2022-02-18T21:56:01.095009722Z time="2022-02-18T21:56:01.094969202Z" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
2022-02-18T21:56:01.098186015Z time="2022-02-18T21:56:01.095411604Z" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
2022-02-18T21:56:01.098203335Z time="2022-02-18T21:56:01.095465604Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
2022-02-18T21:56:01.098206975Z time="2022-02-18T21:56:01.095523524Z" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098209935Z time="2022-02-18T21:56:01.095539644Z" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098212735Z time="2022-02-18T21:56:01.095550884Z" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098215535Z time="2022-02-18T21:56:01.095560604Z" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098231615Z time="2022-02-18T21:56:01.095571045Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098234695Z time="2022-02-18T21:56:01.095582605Z" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098237415Z time="2022-02-18T21:56:01.095593085Z" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098240135Z time="2022-02-18T21:56:01.095603365Z" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098242735Z time="2022-02-18T21:56:01.095613205Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
2022-02-18T21:56:01.098245535Z time="2022-02-18T21:56:01.095871846Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098248295Z time="2022-02-18T21:56:01.095892166Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098251135Z time="2022-02-18T21:56:01.095907846Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098263335Z time="2022-02-18T21:56:01.095917766Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
2022-02-18T21:56:01.098266855Z time="2022-02-18T21:56:01.096138127Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
2022-02-18T21:56:01.098269495Z time="2022-02-18T21:56:01.096228647Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
2022-02-18T21:56:01.098272175Z time="2022-02-18T21:56:01.096274327Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
2022-02-18T21:56:01.098274735Z time="2022-02-18T21:56:01.096293247Z" level=info msg="containerd successfully booted in 0.039695s"
2022-02-18T21:56:01.101714429Z time="2022-02-18T21:56:01.101583189Z" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-02-18T21:56:01.101732949Z time="2022-02-18T21:56:01.101620789Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-02-18T21:56:01.101736509Z time="2022-02-18T21:56:01.101641909Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-02-18T21:56:01.101740229Z time="2022-02-18T21:56:01.101650909Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-02-18T21:56:01.102710953Z time="2022-02-18T21:56:01.102562313Z" level=info msg="parsed scheme: \"unix\"" module=grpc
2022-02-18T21:56:01.102729193Z time="2022-02-18T21:56:01.102619273Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
2022-02-18T21:56:01.102733073Z time="2022-02-18T21:56:01.102636633Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
2022-02-18T21:56:01.102736673Z time="2022-02-18T21:56:01.102646433Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
2022-02-18T21:56:01.103530916Z time="2022-02-18T21:56:01.103454396Z" level=error msg="No zfs dataset found for root" backingFS=extfs root=/var/lib/docker storage-driver=zfs
2022-02-18T21:56:01.199572341Z time="2022-02-18T21:56:01.199446420Z" level=warning msg="Your kernel does not support CPU realtime scheduler"
2022-02-18T21:56:01.199596941Z time="2022-02-18T21:56:01.199473580Z" level=warning msg="Your kernel does not support cgroup blkio weight"
2022-02-18T21:56:01.199600581Z time="2022-02-18T21:56:01.199479780Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
2022-02-18T21:56:01.199765421Z time="2022-02-18T21:56:01.199630741Z" level=info msg="Loading containers: start."
2022-02-18T21:56:01.247940534Z time="2022-02-18T21:56:01.247822254Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address"
2022-02-18T21:56:01.274202439Z time="2022-02-18T21:56:01.274106759Z" level=info msg="Loading containers: done."
2022-02-18T21:56:01.286439608Z time="2022-02-18T21:56:01.286319488Z" level=warning msg="Not using native diff for overlay2, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled" storage-driver=overlay2
2022-02-18T21:56:01.286543049Z time="2022-02-18T21:56:01.286477688Z" level=info msg="Docker daemon" commit=459d0df graphdriver(s)=overlay2 version=20.10.12
2022-02-18T21:56:01.286657809Z time="2022-02-18T21:56:01.286614409Z" level=info msg="Daemon has completed initialization"
2022-02-18T21:56:01.344777882Z time="2022-02-18T21:56:01.344668881Z" level=info msg="API listen on /var/run/docker.sock"
2022-02-18T21:56:01.350293864Z time="2022-02-18T21:56:01.350144663Z" level=info msg="API listen on [::]:2375"
[0;33m*********[0;m
[0KPulling docker image docker:stable ...[0;m
[0KUsing docker image sha256:84e3a507c27b0c540bd884fdb65e3f60490f8ab107694148261ee97ac266fd86 for docker:stable with digest docker@sha256:fd4d028713fd05a1fb896412805daed82c4a0cc84331d8dad00cb596d7ce3e3a ...[0;m
section_end:1645221376:prepare_executor
[0Ksection_start:1645221376:prepare_script
[0K[0K[36;1mPreparing environment[0;m[0;m
Running on runner-xxxxxxxxxxx-project-60-concurrent-0 via xxxxxxxxxxxxx...
section_end:1645221377:prepare_script
[0Ksection_start:1645221377:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
[32;1mFetching changes with git depth set to 20...[0;m
Reinitialized existing Git repository in /builds/redstonewizard08/creative/.git/
[32;1mChecking out xxxxxxx as main...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1645221377:get_sources
[0Ksection_start:1645221377:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
[0KUsing docker image sha256:84e3a507c27b0c540bd884fdb65e3f60490f8ab107694148261ee97ac266fd86 for docker:stable with digest docker@sha256:fd4d028713fd05a1fb896412805daed82c4a0cc84331d8dad00cb596d7ce3e3a ...[0;m
[32;1m$ echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" --password-stdin[0;m
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[32;1m$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then # collapsed multi-line command[0;m
Running on default branch 'main': tag = 'latest'
[32;1m$ mkdir -p $HOME/.docker/cli-plugins[0;m
[32;1m$ wget https://github.com/docker/buildx/releases/download/v0.7.1/buildx-v0.7.1.linux-arm64 -O $HOME/.docker/cli-plugins/docker-buildx[0;m
Connecting to github.com (140.82.113.3:443)
Connecting to objects.githubusercontent.com (185.199.110.133:443)
saving to '/root/.docker/cli-plugins/docker-buildx'
docker-buildx 0% | | 287k 0:02:37 ETA
docker-buildx 100% |********************************| 44.5M 0:00:00 ETA
'/root/.docker/cli-plugins/docker-buildx' saved
[32;1m$ chmod a+rwx $HOME/.docker/cli-plugins/docker-buildx[0;m
[32;1m$ docker buildx create --name $CI_COMMIT_REF_SLUG[0;m
main
[32;1m$ docker buildx inspect $CI_COMMIT_REF_SLUG --bootstrap[0;m
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 3.6s done
#1 creating container buildx_buildkit_main0
#1 creating container buildx_buildkit_main0 0.7s done
#1 DONE 4.3s
Name: main
Driver: docker-container
Nodes:
Name: main0
Endpoint: tcp://docker:2375
Status: running
Platforms: linux/arm64, linux/amd64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
[32;1m$ docker buildx use $CI_COMMIT_REF_SLUG[0;m
[32;1m$ docker buildx build --push -t $CI_REGISTRY_IMAGE${tag} .[0;m
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 194B done
#1 DONE 0.1s
#2 [internal] load .dockerignore
#2 transferring context:
#2 transferring context: 2B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/ubuntu:20.04
#3 DONE 0.6s
#4 [1/2] FROM docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be
#4 resolve docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be 0.1s done
#4 DONE 0.0s
#4 [1/2] FROM docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be
#4 sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 3.15MB / 27.17MB 0.2s
#4 sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 9.44MB / 27.17MB 0.3s
#4 sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 19.92MB / 27.17MB 0.5s
#4 sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 27.17MB / 27.17MB 0.6s
#4 sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 27.17MB / 27.17MB 0.8s done
#4 extracting sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca
#4 extracting sha256:bbf2fb66fa6e06dd46eb26f518f93171ee7c48be68aafb213aa7c2c12f4018ca 0.5s done
#4 DONE 1.3s
#5 [2/2] RUN apt-get update && apt-get -y upgrade && apt-get -y install bash
#5 0.339 Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
#5 0.757 Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
#5 0.862 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]
#5 0.958 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
#5 1.061 Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [1234 kB]
#5 1.265 Get:6 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1317 B]
#5 1.266 Get:7 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [11.1 MB]
#5 1.659 Get:8 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [139 kB]
#5 1.699 Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [9079 B]
#5 1.701 Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1072 kB]
#5 1.709 Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [3933 B]
#5 1.710 Get:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [1384 kB]
#5 1.723 Get:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [24.7 kB]
#5 1.724 Get:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [50.8 kB]
#5 1.724 Get:15 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [778 kB]
#5 1.777 Get:16 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [3694 B]
#5 1.778 Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [3254 B]
#5 1.812 Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [1013 kB]
#5 2.264 Fetched 17.4 MB in 2s (8346 kB/s)
#5 2.264 Reading package lists...
#5 2.952 Reading package lists...
#5 3.579 Building dependency tree...
#5 3.727 Reading state information...
#5 3.752 Calculating upgrade...
#5 3.954 The following packages will be upgraded:
#5 3.954 base-files bsdutils fdisk libblkid1 libfdisk1 libmount1 libsmartcols1
#5 3.955 libuuid1 mount util-linux
#5 4.123 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 4.123 Need to get 1870 kB of archives.
#5 4.123 After this operation, 33.8 kB of additional disk space will be used.
#5 4.123 Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 base-files arm64 11ubuntu5.5 [60.4 kB]
#5 4.368 Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 bsdutils arm64 1:2.34-0.1ubuntu9.3 [60.1 kB]
#5 4.421 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libblkid1 arm64 2.34-0.1ubuntu9.3 [129 kB]
#5 4.528 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libuuid1 arm64 2.34-0.1ubuntu9.3 [19.3 kB]
#5 4.534 Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libfdisk1 arm64 2.34-0.1ubuntu9.3 [160 kB]
#5 4.591 Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libmount1 arm64 2.34-0.1ubuntu9.3 [140 kB]
#5 4.625 Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libsmartcols1 arm64 2.34-0.1ubuntu9.3 [93.0 kB]
#5 4.641 Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 fdisk arm64 2.34-0.1ubuntu9.3 [114 kB]
#5 4.658 Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 util-linux arm64 2.34-0.1ubuntu9.3 [983 kB]
#5 4.757 Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 mount arm64 2.34-0.1ubuntu9.3 [112 kB]
#5 4.881 debconf: delaying package configuration, since apt-utils is not installed
#5 4.910 Fetched 1870 kB in 1s (2342 kB/s)
#5 4.941 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 4.945 Preparing to unpack .../base-files_11ubuntu5.5_arm64.deb ...
#5 4.965 Unpacking base-files (11ubuntu5.5) over (11ubuntu5.4) ...
#5 5.013 Setting up base-files (11ubuntu5.5) ...
#5 5.030 Installing new version of config file /etc/issue ...
#5 5.033 Installing new version of config file /etc/issue.net ...
#5 5.040 Installing new version of config file /etc/lsb-release ...
#5 5.185 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.189 Preparing to unpack .../bsdutils_1%3a2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.199 Unpacking bsdutils (1:2.34-0.1ubuntu9.3) over (1:2.34-0.1ubuntu9.1) ...
#5 5.238 Setting up bsdutils (1:2.34-0.1ubuntu9.3) ...
#5 5.277 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.282 Preparing to unpack .../libblkid1_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.298 Unpacking libblkid1:arm64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.340 Setting up libblkid1:arm64 (2.34-0.1ubuntu9.3) ...
#5 5.375 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.379 Preparing to unpack .../libuuid1_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.390 Unpacking libuuid1:arm64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.424 Setting up libuuid1:arm64 (2.34-0.1ubuntu9.3) ...
#5 5.461 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.465 Preparing to unpack .../libfdisk1_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.475 Unpacking libfdisk1:arm64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.529 Preparing to unpack .../libmount1_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.544 Unpacking libmount1:arm64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.589 Setting up libmount1:arm64 (2.34-0.1ubuntu9.3) ...
#5 5.626 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.630 Preparing to unpack .../libsmartcols1_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.641 Unpacking libsmartcols1:arm64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.684 Setting up libsmartcols1:arm64 (2.34-0.1ubuntu9.3) ...
#5 5.718 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 5.722 Preparing to unpack .../fdisk_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.733 Unpacking fdisk (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.789 Preparing to unpack .../util-linux_2.34-0.1ubuntu9.3_arm64.deb ...
#5 5.811 Unpacking util-linux (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 5.964 Setting up util-linux (2.34-0.1ubuntu9.3) ...
#5 6.313 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 4120 files and directories currently installed.)
#5 6.317 Preparing to unpack .../mount_2.34-0.1ubuntu9.3_arm64.deb ...
#5 6.329 Unpacking mount (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
#5 6.378 Setting up libfdisk1:arm64 (2.34-0.1ubuntu9.3) ...
#5 6.388 Setting up mount (2.34-0.1ubuntu9.3) ...
#5 6.397 Setting up fdisk (2.34-0.1ubuntu9.3) ...
#5 6.406 Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
#5 6.512 Reading package lists...
#5 7.149 Building dependency tree...
#5 7.293 Reading state information...
#5 7.500 bash is already the newest version (5.0-6ubuntu1.1).
#5 7.500 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#5 DONE 8.2s
#6 exporting to image
#6 exporting layers
#6 exporting layers 2.2s done
#6 ...
#7 [auth] redstonewizard08/creative:pull,push token for reg.git.xxxxxxxxxxxxx:443
#7 DONE 0.0s
#6 exporting to image
#6 exporting manifest sha256:5da48001d3b9f08940537ec7b276f0821557aba788e43c3aa34a3fde129bf556 0.0s done
#6 exporting config sha256:79304007308f0f65cd4b60ab2ae4c3b600e9300c3d0142cfb596ec2d97608eed done
#6 pushing layers
#6 ...
#8 [auth] redstonewizard08/creative:pull,push token for reg.git.xxxxxxxxxxxxx:443
#8 DONE 0.0s
#9 [auth] redstonewizard08/creative:pull,push token for reg.git.xxxxxxxxxxxxx:443
#9 DONE 0.0s
#6 exporting to image
#6 pushing layers 0.3s done
#6 ERROR: failed to copy: unexpected status: 400 Bad Request
------
> exporting to image:
------
error: failed to solve: failed to copy: unexpected status: 400 Bad Request
section_end:1645221397:step_script
[0Ksection_start:1645221397:cleanup_file_variables
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
section_end:1645221398:cleanup_file_variables
[0K[31;1mERROR: Job failed: exit code 1
[0;m
Environment description
docker info
┌──(ubuntu@xxxxxxxxxxxx)-[~]
└─$ docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
Server:
Containers: 10
Running: 8
Paused: 0
Stopped: 2
Images: 527
Server Version: 20.10.12
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.11.0-1028-oracle
Operating System: Ubuntu 20.04.3 LTS
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 23.43GiB
Name: nosadnile-main-1
ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
┌──(ubuntu@xxxxxxxxxxxx)-[~]
└─$
config.toml contents
concurrent = 1
check_interval = 0
[session_server]
listen_address = "[::]:8093"
advertise_address = "localhost:8093"
session_timeout = 1800
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "as-xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "ssh"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.ssh]
user = "ubuntu"
password = "n0sadn1l3"
host = "dns.nosadnile.net"
port = "22"
identity_file = "/home/ubuntu/.ssh/id_rsa"
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[[runners]]
name = "xxxxxxxxxxxxxx"
url = "https://git.xxxxxxxxxx.xxx/"
token = "xxxxxxxxxxxxxxxxxxxx"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu:20.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
Used GitLab Runner version
┌──(ubuntu@xxxxxxxxxxxxxxxx)-[~/docker-registry]
└─$ gitlab-runner --version
Version: 14.7.0
Git revision: 98daeee0
Git branch: 14-7-stable
GO version: go1.17.5
Built: 2022-01-19T17:11:48+0000
OS/Arch: linux/arm64
┌──(ubuntu@xxxxxxxxxxxxxxxx)-[~/docker-registry]
└─$
Possible fixes
I don't know. I believe this is an issue with the Docker registry.
Edited by RedstoneWizard08