{"record":{"id":"5112709ff5222688","repo":"portainer/portainer","slug":"unable-to-start-exec-process-w","errorCode":null,"errorMessage":"unable to start exec process: %w","messagePattern":"unable to start exec process: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"api/kubernetes/cli/exec.go","lineNumber":95,"sourceCode":"\n\t\tlog.Warn().\n\t\t\tErr(err).\n\t\t\tStr(\"context\", \"StartExecProcess\").\n\t\t\tMsg(\"WebSocket exec failed, falling back to SPDY\")\n\t}\n\n\t// Fall back to SPDY executor\n\texec, err = remotecommand.NewSPDYExecutor(config, \"POST\", req.URL())\n\tif err != nil {\n\t\tparams.ErrChan <- fmt.Errorf(\"unable to create SPDY executor: %w\", err)\n\t\treturn\n\t}\n\n\terr = exec.StreamWithContext(context.TODO(), streamOpts)\n\tif err != nil {\n\t\tvar exitError utilexec.ExitError\n\t\tif !errors.As(err, &exitError) {\n\t\t\tparams.ErrChan <- fmt.Errorf(\"unable to start exec process: %w\", err)\n\t\t\treturn\n\t\t}\n\t}\n\n\tparams.ErrChan <- nil\n}\n","sourceCodeStart":77,"sourceCodeEnd":102,"githubUrl":"https://github.com/portainer/portainer/blob/17e74456ff6e794b9d5439ec3fa06922aa18a3f8/api/kubernetes/cli/exec.go#L77-L102","documentation":"Error \"unable to start exec process: %w\" thrown in portainer/portainer.","triggerScenarios":"Thrown at api/kubernetes/cli/exec.go:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"17e74456ff6e794b9d5439ec3fa06922aa18a3f8","analyzedAt":"2026-08-26T23:09:01.915Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}