ocaml / infrastructure

WIki to hold the information about the machine resources available to OCaml.org
40 stars 9 forks source link

All Docker builds on worker, leafcutter, fail with ERROR: failed to solve: unlazy requires an applier #111

Closed mtelvers closed 2 months ago

mtelvers commented 2 months ago

Building on leafcutter.caelum.ci.dev
WARNING: experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency.
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 504B done
#1 ...

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.8s

#1 [internal] load build definition from Dockerfile
#1 DONE 1.2s

#3 resolve image config for docker.io/docker/dockerfile:1
#3 DONE 1.0s

#4 docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021
#4 CACHED
Dockerfile:1
--------------------
   1 | >>> # syntax=docker/dockerfile:1
   2 |     
   3 |     FROM ocurrent/opam-staging@sha256:73e5cec0e5555a264053a20e7d326699b2ba6a6e51ccbf976217866f4264ef4b
--------------------
ERROR: failed to solve: unlazy requires an applier
docker-build failed with exit-code 1
2024-04-04 14:01.09: Job failed: Failed: Build failed```
mtelvers commented 2 months ago

The same job does not fail on carpenter which is an identical machine. Both have identical versions of docker.

root@leafcutter:~# docker --version
Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
root@leafcutter:~# docker buildx version
github.com/docker/buildx v0.11.2 9872040b6626fb7d87ef7296fd5b832e8cc2ad17

See also https://github.com/microsoft/vscode-remote-release/issues/8202 and https://github.com/microsoft/vscode-remote-release/issues/9610

Reinstalling docker.io and docker-buildx didn't fix the issue.

Fix from https://fedibird.com/@tateisu/110670191483722052:

service docker stop && service docker start && docker system prune -a --volumes