{"record":{"id":"d265d0ef8c0485af","repo":"multica-ai/multica","slug":"disk-usage-read-workspaces-root-w","errorCode":null,"errorMessage":"disk-usage: read workspaces root: %w","messagePattern":"disk-usage: read workspaces root: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/internal/daemon/diskusage.go","lineNumber":170,"sourceCode":"\treport := DiskUsageReport{\n\t\tWorkspacesRoot:   workspacesRoot,\n\t\tGeneratedAt:      time.Now().UTC(),\n\t\tArtifactPatterns: nil,\n\t}\n\tif workspacesRoot == \"\" {\n\t\treturn report, fmt.Errorf(\"disk-usage: workspaces root is required\")\n\t}\n\n\tmatcher := newArtifactMatcher(artifactPatterns, execenv.ManagedReclaimableArtifactSubpaths())\n\treport.ArtifactPatterns = sortedKeys(matcher.basenames)\n\treport.ManagedArtifactSubpaths = matcher.managedSubpaths()\n\n\twsEntries, err := os.ReadDir(workspacesRoot)\n\tif err != nil {\n\t\tif os.IsNotExist(err) {\n\t\t\treturn report, nil\n\t\t}\n\t\treturn report, fmt.Errorf(\"disk-usage: read workspaces root: %w\", err)\n\t}\n\n\twsAgg := map[string]*WorkspaceDiskUsage{}\n\n\tfor _, wsEntry := range wsEntries {\n\t\tif !wsEntry.IsDir() {\n\t\t\tcontinue\n\t\t}\n\t\t// The bare-repo cache is not a workspace. Measure it separately rather\n\t\t// than skipping it outright: it is reclaimed on its own schedule\n\t\t// (GCRepoTTL) and used to be invisible here, which made the reported\n\t\t// total disagree with the user's file manager for no stated reason.\n\t\tif wsEntry.Name() == reposDirName {\n\t\t\treport.RepoCacheSizeBytes, report.RepoCacheCount = repoCacheSize(filepath.Join(workspacesRoot, wsEntry.Name()))\n\t\t\tcontinue\n\t\t}\n\t\t// Other dot-directories are daemon-internal caches (skill bundles and\n\t\t// friends), never workspaces. Counting them as workspaces put rows like","sourceCodeStart":152,"sourceCodeEnd":188,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/diskusage.go#L152-L188","documentation":"Error \"disk-usage: read workspaces root: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/diskusage.go:170 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the workspaces root exists and is readable."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}