{"record":{"id":"59857f9ae04e56ff","repo":"bcicen/ctop","slug":"cannot-pause-container-v","errorCode":null,"errorMessage":"cannot pause container: %v","messagePattern":"cannot pause container: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"connector/manager/docker.go","lineNumber":133,"sourceCode":"func (dc *Docker) Pause() error {\n\tif err := dc.client.PauseContainer(dc.id); err != nil {\n\t\treturn fmt.Errorf(\"cannot pause container: %v\", err)\n\t}\n\treturn nil\n}","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/bcicen/ctop/blob/59f00dd6aaebf48f3bc501e174f75f815c2619f0/connector/manager/docker.go#L115-L151","documentation":"Wraps the error from the Docker Remote API's PauseContainer call in Docker.Pause. It fires when the container cannot be frozen with the cgroups freezer — the container is already paused, is not running, or the daemon/kernel does not support pausing.","triggerScenarios":"Thrown at connector/manager/docker.go:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check container state first; pausing an already-paused or stopped container fails","Ensure the container is running (inspect it) before pausing","Verify kernel/cgroup freezer support on the host","Surface the wrapped daemon error to the user with the container ID"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"59f00dd6aaebf48f3bc501e174f75f815c2619f0","analyzedAt":"2026-09-02T23:34:03.832Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T02:17:09.455Z"}