Skip to content

build: improve error messages for docker driver #2677

build: improve error messages for docker driver

build: improve error messages for docker driver #2677

Triggered via pull request August 16, 2023 15:18
Status Failure
Total duration 8m 27s
Artifacts 2

build.yml

on: pull_request
prepare-binaries
6s
prepare-binaries
buildkit-edge
2m 0s
buildkit-edge
Matrix: binaries
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Failed: tests/TestIntegration: tests/run.go#L267
=== RUN TestIntegration time="2023-08-16T15:24:49Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:41745" run.go:267: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:41745/moby/buildkit:buildx-stable-1 time="2023-08-16T15:24:53Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:41745" run.go:267: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:41745/library/busybox:latest time="2023-08-16T15:24:53Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:41745" run.go:267: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:41745/library/alpine:latest --- FAIL: TestIntegration (4.41s)
Failed: tests/TestIntegration/TestBuildDockerWorkerErrors/worker=docker+containerd: tests/build.go#L328
=== RUN TestIntegration/TestBuildDockerWorkerErrors/worker=docker+containerd === PAUSE TestIntegration/TestBuildDockerWorkerErrors/worker=docker+containerd === CONT TestIntegration/TestBuildDockerWorkerErrors/worker=docker+containerd build.go:328: Error Trace: /src/tests/build.go:328 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:91 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:205 Error: "ERROR: registry cache exporter requires ref\n" does not contain "Cache export is not supported" Test: TestIntegration/TestBuildDockerWorkerErrors/worker=docker+containerd sandbox.go:140: stdout: /usr/bin/dockerd sandbox.go:140: stderr: /usr/bin/dockerd sandbox.go:143: > startCmd 2023-08-16 15:25:17.127419929 +0000 UTC m=+27.353566024 /usr/bin/dockerd --data-root /tmp/integration3688796773/d8rf6puoa14nm/root --exec-root /tmp/dxr/d8rf6puoa14nm --pidfile /tmp/integration3688796773/d8rf6puoa14nm/docker.pid --containerd-namespace d8rf6puoa14nm --containerd-plugins-namespace d8rf6puoa14nmp --host unix:///tmp/docker-integration/d8rf6puoa14nm.sock --config-file /tmp/integration3688796773/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:143: time="2023-08-16T15:25:17.165190752Z" level=info msg="Starting up" sandbox.go:143: time="2023-08-16T15:25:17.166250872Z" level=warning msg="could not change group /tmp/docker-integration/d8rf6puoa14nm.sock to docker: group docker not found" sandbox.go:143: time="2023-08-16T15:25:17.166424976Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/d8rf6puoa14nm.sock)" sandbox.go:143: time="2023-08-16T15:25:17.166442876Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:143: time="2023-08-16T15:25:17.167051188Z" level=info msg="started new containerd process" address=/tmp/dxr/d8rf6puoa14nm/containerd/containerd.sock module=libcontainerd pid=7684 sandbox.go:143: time="2023-08-16T15:25:17.183446802Z" level=info msg="starting containerd" revision=1677a17964311325ed1c31e2c0a3589ce6d5c30d version=v1.7.1 sandbox.go:143: time="2023-08-16T15:25:17.202227661Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203009176Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203060777Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 sandbox.go:143: time="2023-08-16T15:25:17.203194080Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203279482Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203521086Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203562987Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured" sandbox.go:143: time="2023-08-16T15:25:17.203582787Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:17.203712890Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/integration3688796773/d8rf6puoa14nm/root/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 sandbox.go:143: time="2023-08-16T15:25:1
test (docker\+containerd, ./tests)
Process completed with exit code 1.
Failed: tests/TestIntegration: tests/run.go#L267
=== RUN TestIntegration time="2023-08-16T15:24:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:35971" run.go:267: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:35971/moby/buildkit:buildx-stable-1 time="2023-08-16T15:24:56Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:35971" run.go:267: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:35971/library/busybox:latest time="2023-08-16T15:24:56Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:35971" run.go:267: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:35971/library/alpine:latest --- FAIL: TestIntegration (6.47s)
Failed: tests/TestIntegration/TestBuildDockerWorkerErrors/worker=docker: tests/build.go#L334
=== RUN TestIntegration/TestBuildDockerWorkerErrors/worker=docker === PAUSE TestIntegration/TestBuildDockerWorkerErrors/worker=docker === CONT TestIntegration/TestBuildDockerWorkerErrors/worker=docker build.go:334: Error Trace: /src/tests/build.go:334 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:91 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:205 Error: "ERROR: OCI exporter is not supported for the docker driver.\n\nSwitch to a different driver and try again.\n\nLearn more at https://docs.docker.com/go/build-exporters/\n" does not contain "OCI exporter feature is not supported" Test: TestIntegration/TestBuildDockerWorkerErrors/worker=docker sandbox.go:140: stdout: /usr/bin/dockerd sandbox.go:140: stderr: /usr/bin/dockerd sandbox.go:143: > startCmd 2023-08-16 15:25:21.327593753 +0000 UTC m=+30.744992177 /usr/bin/dockerd --data-root /tmp/integration1362003807/dkt4k86oqv8x3/root --exec-root /tmp/dxr/dkt4k86oqv8x3 --pidfile /tmp/integration1362003807/dkt4k86oqv8x3/docker.pid --containerd-namespace dkt4k86oqv8x3 --containerd-plugins-namespace dkt4k86oqv8x3p --host unix:///tmp/docker-integration/dkt4k86oqv8x3.sock --config-file /tmp/integration1362003807/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:143: time="2023-08-16T15:25:21.363667155Z" level=info msg="Starting up" sandbox.go:143: time="2023-08-16T15:25:21.364654674Z" level=warning msg="could not change group /tmp/docker-integration/dkt4k86oqv8x3.sock to docker: group docker not found" sandbox.go:143: time="2023-08-16T15:25:21.364799077Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dkt4k86oqv8x3.sock)" sandbox.go:143: time="2023-08-16T15:25:21.364814877Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:143: time="2023-08-16T15:25:21.365393589Z" level=info msg="started new containerd process" address=/tmp/dxr/dkt4k86oqv8x3/containerd/containerd.sock module=libcontainerd pid=8194 sandbox.go:143: time="2023-08-16T15:25:21.380448082Z" level=info msg="starting containerd" revision=1677a17964311325ed1c31e2c0a3589ce6d5c30d version=v1.7.1 sandbox.go:143: time="2023-08-16T15:25:21.398540834Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399218947Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399242047Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 sandbox.go:143: time="2023-08-16T15:25:21.399334049Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399398950Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399573254Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399590754Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured" sandbox.go:143: time="2023-08-16T15:25:21.399602454Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:143: time="2023-08-16T15:25:21.399711657Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/integration1362003807/dkt4k86oqv8x3/root/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: ski
test (docker, ./tests)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
buildx Expired
576 MB
test-reports Expired
1020 KB