multica-ai/multica · error
disk-usage: workspaces root is required
Error message
disk-usage: workspaces root is required
What it means
Error "disk-usage: workspaces root is required" thrown in multica-ai/multica.
Source
Thrown at server/internal/daemon/diskusage.go:158
// ScanDiskUsage walks workspacesRoot and returns the disk-usage report. The
// walk is read-only, never follows symlinks, and counts only regular files.
// artifactPatterns is filtered through the basename-only check used by
// cleanTaskArtifacts, and exact daemon-managed artifact paths are included, so
// the reported "artifact" footprint matches the bytes the GC would actually
// reclaim. A .git subtree counts toward the total but never toward that
// artifact footprint — see taskSize. Missing roots return an empty report
// (not an error) — a daemon that's never run yet has no directory to walk.
//
// The scan is purely local. ParentStatus is left empty; callers that want the
// STATUS column populated run ResolveParentStatuses afterwards.
func ScanDiskUsage(workspacesRoot string, artifactPatterns []string) (DiskUsageReport, error) {
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() {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Set the workspaces root before running disk-usage.
When it happens
Trigger: Thrown at server/internal/daemon/diskusage.go:158 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/3ca6476738876cef.
Report an issue: GitHub.