rivet deploy build fails with DeadlineExceeded

I am getting this error:
=> ERROR [internal] load metadata for docker.io/library/ubuntu:22.04 30.0s
=> ERROR [internal] load metadata for docker.io/rustlang/rust:nightly 30.0s
------
> [internal] load metadata for docker.io/library/ubuntu:22.04:
------
------
> [internal] load metadata for docker.io/rustlang/rust:nightly:
------
Dockerfile:2
--------------------
1 | # MARK: Rust Builder
2 | >>> FROM rustlang/rust:nightly AS rust_builder
3 | WORKDIR /app
4 | COPY rust/ rust/
--------------------
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: rustlang/rust:nightly: failed to resolve source metadata for docker.io/rustlang/rust:nightly: failed to do request: Head "https://registry-1.docker.io/v2/rustlang/rust/manifests/nightly": dial tcp 3.219.239.5:443: i/o timeout
global_error::ext::AssertionError::Panic cli/src/util/cmd.rs:103:5 panic: Docker image failed to build (exit status: 1)

Validate that Docker is installed and running.
=> ERROR [internal] load metadata for docker.io/library/ubuntu:22.04 30.0s
=> ERROR [internal] load metadata for docker.io/rustlang/rust:nightly 30.0s
------
> [internal] load metadata for docker.io/library/ubuntu:22.04:
------
------
> [internal] load metadata for docker.io/rustlang/rust:nightly:
------
Dockerfile:2
--------------------
1 | # MARK: Rust Builder
2 | >>> FROM rustlang/rust:nightly AS rust_builder
3 | WORKDIR /app
4 | COPY rust/ rust/
--------------------
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: rustlang/rust:nightly: failed to resolve source metadata for docker.io/rustlang/rust:nightly: failed to do request: Head "https://registry-1.docker.io/v2/rustlang/rust/manifests/nightly": dial tcp 3.219.239.5:443: i/o timeout
global_error::ext::AssertionError::Panic cli/src/util/cmd.rs:103:5 panic: Docker image failed to build (exit status: 1)

Validate that Docker is installed and running.
The Docker image builds fine if I use docker build but fails with rivet deploy.
2 Replies
ramon
ramonOP2y ago
I think it is just due to an absurd low time threshold for buildkit [0] which was extended a couple of months ago [1]. How can I upgrade buildkit that rivet cli uses/ [0] https://github.com/moby/buildkit/issues/4327 [1] https://github.com/moby/buildkit/pull/4944 ? updating docker seems to have fixed it
Nathan
Nathan2y ago
ooo that’s a new one. we use the docker in $path, not sure we can do much here unless we’re able to manually override the timeout for older installs.

Did you find this page helpful?