{"record":{"id":"3b93356b16620f8e","repo":"abiosoft/colima","slug":"error-listing-containers-w","errorCode":null,"errorMessage":"error listing containers: %w","messagePattern":"error listing containers: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"daemon/process/inotify/volumes.go","lineNumber":93,"sourceCode":"\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}()\n\n\treturn nil\n}\n\nfunc (f *inotifyProcess) fetchVolumes(cmdArgs ...string) ([]string, error) {\n\tlog := f.log\n\n\t// fetch all containers\n\tvar containers []string\n\t{\n\t\targs := append([]string{}, cmdArgs...)\n\t\targs = append(args, \"ps\", \"-q\")\n\t\tout, err := f.guest.RunOutput(args...)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error listing containers: %w\", err)\n\t\t}\n\t\tcontainers = strings.Fields(out)\n\t\tif len(containers) == 0 {\n\t\t\treturn nil, nil\n\t\t}\n\t}\n\n\tlog.Tracef(\"found containers %+v\", containers)\n\n\t// fetch volumes\n\tvar resp []struct {\n\t\tMounts []struct {\n\t\t\tSource string `json:\"Source\"`\n\t\t} `json:\"Mounts\"`\n\t}\n\t{\n\t\targs := append([]string{}, cmdArgs...)\n\t\targs = append(args, \"inspect\")","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/abiosoft/colima/blob/c3a5f9184d83a197184f897a9f07eb3c01b3bc88/daemon/process/inotify/volumes.go#L75-L111","documentation":"fetchVolumes first runs `<runtime> ps -q` in the guest to collect running container ids; failure wraps as 'error listing containers'. This is the inner failure beneath errors 108 (docker) and 110 (containerd); it surfaces in the poll goroutine's log, retried every 5 seconds, never fatal.","triggerScenarios":"the runtime CLI exists in the guest but its daemon is not answering (dockerd/containerd down or starting); the guest command fails outright; VM paused/suspended under the daemon.","commonSituations":"runtime installed but not started; guest under heavy load so the command times out; probing right after `colima start` before services are up.","solutions":["confirm the runtime works in the guest: `colima ssh -- docker ps` or `colima ssh -- sudo nerdctl ps`","treat boot-window occurrences as transient — the poll retries","restart colima if every cycle keeps failing"],"exampleFix":null,"handlingStrategy":"retry","validationCode":"if err := guest.RunQuiet(runtimeCLI, \"ps\"); err != nil {\n    return fmt.Errorf(\"runtime %s not responding in guest: %w\", f.runtime, err)\n}","typeGuard":null,"tryCatchPattern":"if out, err := guest.RunOutput(args...); err != nil {\n    return nil, fmt.Errorf(\"error listing containers: %w\", err) // caller logs; poll retries in 5s\n}","preventionTips":["keep the guest runtime running while mount-inotify is enabled","treat repeated 'error listing containers' as a guest runtime problem, not a watcher problem","use `colima ssh` to reproduce the failing guest command directly"],"tags":["docker","containers","guest","transient"],"backgroundTag":null,"analyzedSha":"c3a5f9184d83a197184f897a9f07eb3c01b3bc88","analyzedAt":"2026-08-15T18:58:08.334Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}