multica-ai/multica · error
disk-usage: read workspaces root: %w
Error message
disk-usage: read workspaces root: %w
What it means
Error "disk-usage: read workspaces root: %w" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/diskusage.go:170
report := DiskUsageReport{
WorkspacesRoot: workspacesRoot,
GeneratedAt: time.Now().UTC(),
ArtifactPatterns: nil,
}
if workspacesRoot == "" {
return report, fmt.Errorf("disk-usage: workspaces root is required")
}
matcher := newArtifactMatcher(artifactPatterns, execenv.ManagedReclaimableArtifactSubpaths())
report.ArtifactPatterns = sortedKeys(matcher.basenames)
report.ManagedArtifactSubpaths = matcher.managedSubpaths()
wsEntries, err := os.ReadDir(workspacesRoot)
if err != nil {
if os.IsNotExist(err) {
return report, nil
}
return report, fmt.Errorf("disk-usage: read workspaces root: %w", err)
}
wsAgg := map[string]*WorkspaceDiskUsage{}
for _, wsEntry := range wsEntries {
if !wsEntry.IsDir() {
continue
}
// The bare-repo cache is not a workspace. Measure it separately rather
// than skipping it outright: it is reclaimed on its own schedule
// (GCRepoTTL) and used to be invisible here, which made the reported
// total disagree with the user's file manager for no stated reason.
if wsEntry.Name() == reposDirName {
report.RepoCacheSizeBytes, report.RepoCacheCount = repoCacheSize(filepath.Join(workspacesRoot, wsEntry.Name()))
continue
}
// Other dot-directories are daemon-internal caches (skill bundles and
// friends), never workspaces. Counting them as workspaces put rows likeView on GitHub (pinned to 2c0912b6ec)
Solutions
- Check that the workspaces root exists and is readable.
When it happens
Trigger: Thrown at server/internal/daemon/diskusage.go:170 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/d265d0ef8c0485af.
Report an issue: GitHub.