You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent failed to get state for index errors #6111
These sorts of errors have been happening occasionally (~1 / day) in our CI approximately since we switched over everything to our shared runners:
Error: input:1: pipeline.pipeline.container.export failed to solve for container publish: failed to compute cache key: failed to get state for index 0 on copy /runc /usr/local/bin/runc
If we can repro the error and get useful data will move to the upstream issue (or just send PR w/ fix). Creating this to track in case anyone hits it and searches for the error message.
The fact that it seems to have only started once we switched to the shared runner is notable. My immediate gut reaction is that it probably has something to do with concurrent solves that overlap in vertexes since that's proven to be a fairly tricky + error prone codepath in buildkit and is something that would have not happened previously before switching to the shared runners.
I also get "failed to compute cache key" errors in CI on K8 with the runner, but I get a different "source":
cause: ClientError: resolve: container: withRegistryAuth: build: publish: failed to solve for container publish: failed to compute cache key: failed to unmount /tmp/containerd-mount922630576: failed to unmount target /tmp/containerd-mount922630576: device or resource busy: {"response":{"errors":[{"message":"resolve: container: withRegistryAuth: build: publish: failed to solve for container publish: failed to compute cache key: failed to unmount /tmp/containerd-mount922630576: failed to unmount target /tmp/containerd-mount922630576: device or resource busy"}]
The worst of this seems to be resolved by #7295, so going to take this out of the milestone, but worth leaving open until the upstream fix is resolved.
We've been running with this fix in place for a while and haven't seen it since (used to happen 1 or a few times a day). So I'll close this out until proven otherwise.
Activity
matiasinsaurralde commentedon Nov 21, 2023
Have been observing it in the past days too: https://github.com/dagger/dagger/actions/runs/6937495840/job/18871658791?pr=6136
gerhard commentedon Jan 31, 2024
I know that we've been seeing these for a while, want to resume tracking them so that we have a better idea of how often they happen:
gerhard commentedon Feb 1, 2024
https://github.com/dagger/dagger/actions/runs/7734943604/job/21103510867#step:6:882
gerhard commentedon Mar 12, 2024
Just hit this again while releasing
0.10.2: https://github.com/dagger/dagger/actions/runs/8253625814/job/22575935633?pr=6871#step:6:772mckinnsb commentedon Apr 12, 2024
I also get "failed to compute cache key" errors in CI on K8 with the runner, but I get a different "source":
helderco commentedon Apr 19, 2024
Whelp! This error is happening a lot in Python tests:
That copy comes from here:
dagger/sdk/python/runtime/main.go
Lines 202 to 206 in d3a11cf
Seems to be more frequent with the tests around the lock file. See anything wrong here?
dagger/core/integration/module_python_test.go
Lines 638 to 711 in d3a11cf
Maybe this is a simpler case to debug and figure this out.
sipsma commentedon Apr 19, 2024
Just FYI I'm attempting to debug this and the other (possibly related)
inconsistent graph stateerrors here: #7128sipsma commentedon Apr 26, 2024
More details in #7128, but ended up being able to very consistently repro this locally and figured out the bug upstream, fix there moby/buildkit#4887
Will leave this open until we've picked up the upstream fix, done a release with it, upgraded CI runners and confirmed that the errors are gone now
gerhard commentedon Apr 30, 2024
Yes!
FTR, the new CI runners for Engine & CLI are
16 CPUs&128GB RAM, so this is less likely to occur for those CI jobs.All other CI runners are still bunching around a single Engine, so we can expect this to continue being an issue.
💪
jedevc commentedon May 7, 2024
The worst of this seems to be resolved by #7295, so going to take this out of the milestone, but worth leaving open until the upstream fix is resolved.
sipsma commentedon Jun 5, 2024
We've been running with this fix in place for a while and haven't seen it since (used to happen 1 or a few times a day). So I'll close this out until proven otherwise.
jedevc commentedon May 28, 2025
Just seen this again in #10483.
https://v3.dagger.cloud/dagger/traces/531b0e1d0f5091068680253756c79298?span=fea0480a79cbb9e1