tilt-dev / tilt-dev/tilt

Odd grpc error

Open
#6,434 3 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

From John in tilt slack-

Hey, I'm having trouble with my setup and I'm not sure how to debug it. Basically I'm seeing the error

 Build Failed: failed to dial gRPC: unable to upgrade to h2c, received 404

when running a docker_build, however running tilt docker --built . works fine. I am using minikube in rootless podman so I suspect there is something about that setup which is causing issues. Here is the output of doctor:

 Tilt: v0.33.20, built 2024-09-03
 System: linux-amd64
 ---
 Docker
 - Host: unix:///run/user/1000/podman/podman.sock
 - Server Version: 5.2.2
 - API Version: 1.41
 - Builder: 2
 ---
 Kubernetes
 - Env: minikube
 - Context: minikube
 - Cluster Name: minikube
 - Namespace: default
 - Container Runtime: containerd
 - Version: v1.30.0
 - Cluster Local Registry: none
 - 

Usually i'd expect tilt to detect that podman doesn't support buildkits grpc protocol and fallback to the rest protocol.

Might be related to recent updates to docker client libs

Current workaround is to set DOCKER_BUILDKIT=0 in the env

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported docker_build failure with minikube and rootless Podman, then compare it with docker --built . and the DOCKER_BUILDKIT=0 workaround. Done means the docker_build path handles this environment without requiring that workaround, while preserving the existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, grpc, kubernetes, linux
Domain
build-system, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.