dagger/dagger · error
sync persisted hit owner leases: %w
Error message
sync persisted hit owner leases: %w
What it means
After decoding a persisted cache hit, syncing the result's snapshot owner leases (SyncResultSnapshotOwnerLeases) failed. The wrapped error comes from the lease-sync path (beginning an operation or reconciling links); the decoded value is usable, but its snapshot ownership could not be re-established against the current session.
Source
Thrown at dagql/cache_persistence_import.go:695
decodedShared := decoded.cacheSharedResult()
if decodedShared != nil {
res.sessionResourceHandle = decodedShared.sessionResourceHandle
if decodedShared.requiredSessionResources != nil {
res.requiredSessionResources = decodedShared.requiredSessionResources.Copy()
} else if decodedShared.sessionResourceHandle == "" {
res.requiredSessionResources = nil
}
}
res.persistedEnvelope = nil
c.tracePersistedPayloadDecoded(ctx, res, state.persistedEnvelope)
}
res.payloadMu.Unlock()
if onReleaser, ok := UnwrapAs[OnReleaser](decoded); ok {
res.onRelease = joinOnRelease(c.resultSnapshotLeaseCleanup(res), onReleaser.OnRelease)
}
resolver = decodeResolver
if err := c.syncResultSnapshotLeases(ctx, res); err != nil {
err = fmt.Errorf("sync persisted hit owner leases: %w", err)
finishPersistDecode(err)
return nil, err
}
finishPersistDecode(nil)
}
}
View on GitHub (pinned to 82ba2681db)
When it happens
Trigger: Thrown at dagql/cache_persistence_import.go:695 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of dagger/dagger@82ba2681db (2026-09-05).
Data as JSON: /api/errors/02985a6596421588.
Report an issue: GitHub.