{"id":"8d3cb7c8786e5587","repo":"docker/cli","slug":"command-v-did-not-exit-after-v-stderr-q","errorCode":null,"errorMessage":"command %v did not exit after %v: stderr=%q","messagePattern":"command (.+?) did not exit after (.+?): stderr=%q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/connhelper/commandconn/commandconn.go","lineNumber":151,"sourceCode":"\n\tc.cmdMutex.Lock()\n\tdefer c.cmdMutex.Unlock()\n\n\tvar werr error\n\tif c.cmdExited.Load() {\n\t\twerr = c.cmdWaitErr\n\t} else {\n\t\twerrCh := make(chan error)\n\t\tgo func() { werrCh <- c.cmd.Wait() }()\n\t\tselect {\n\t\tcase werr = <-werrCh:\n\t\t\tc.cmdWaitErr = werr\n\t\t\tc.cmdExited.Store(true)\n\t\tcase <-time.After(10 * time.Second):\n\t\t\tc.stderrMu.Lock()\n\t\t\tstderr := c.stderr.String()\n\t\t\tc.stderrMu.Unlock()\n\t\t\treturn fmt.Errorf(\"command %v did not exit after %v: stderr=%q\", c.cmd.Args, err, stderr)\n\t\t}\n\t}\n\n\tif werr == nil {\n\t\treturn err\n\t}\n\tc.stderrMu.Lock()\n\tstderr := c.stderr.String()\n\tc.stderrMu.Unlock()\n\treturn fmt.Errorf(\"command %v has exited with %v, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s\", c.cmd.Args, werr, stderr)\n}\n\nfunc ignorableCloseError(err error) bool {\n\treturn strings.Contains(err.Error(), os.ErrClosed.Error())\n}\n\nfunc (c *commandConn) Read(p []byte) (int, error) {\n\tn, err := c.stdout.Read(p)","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/connhelper/commandconn/commandconn.go#L133-L169","documentation":"Error \"command %v did not exit after %v: stderr=%q\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/connhelper/commandconn/commandconn.go:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}