{"record":{"id":"00933b6cf6e79ae2","repo":"grafana/k6","slug":"file-does-not-exist-s","errorCode":null,"errorMessage":"file does not exist: %s","messagePattern":"file does not exist: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/browser_process.go","lineNumber":177,"sourceCode":"\tdataDir *storage.Dir, logger *log.Logger,\n) (command, error) {\n\tcmd := exec.CommandContext(ctx, path, args...) //nolint:gosec\n\tkillAfterParent(cmd)\n\n\tstdout, err := cmd.StdoutPipe()\n\tif err != nil {\n\t\treturn command{}, fmt.Errorf(\"%w\", err)\n\t}\n\tstderr, err := cmd.StderrPipe()\n\tif err != nil {\n\t\treturn command{}, fmt.Errorf(\"%w\", err)\n\t}\n\n\t// We must start the cmd before calling cmd.Wait, as otherwise the two\n\t// can run into a data race.\n\terr = cmd.Start()\n\tif os.IsNotExist(err) { //nolint:forbidigo\n\t\treturn command{}, fmt.Errorf(\"file does not exist: %s\", path)\n\t}\n\tif err != nil {\n\t\treturn command{}, fmt.Errorf(\"%w\", err)\n\t}\n\tif ctx.Err() != nil {\n\t\treturn command{}, ContextErr(ctx)\n\t}\n\n\tdone := make(chan struct{})\n\tgo func() {\n\t\t// TODO: How to handle these errors?\n\t\tdefer func() {\n\t\t\tif err := dataDir.Cleanup(); err != nil {\n\t\t\t\tlogger.Errorf(\"browser\", \"cleaning up the user data directory: %v\", err)\n\t\t\t}\n\t\t\tclose(done)\n\t\t}()\n","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/browser_process.go#L159-L195","documentation":"exec.Cmd.Start reported os.IsNotExist while spawning the browser binary: the resolved executable path doesn't exist at start time (e.g. deleted between lookup and launch, or a broken container image). The path is echoed in the message.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/browser_process.go:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the browser binary exists in the container/image at that path","Re-install or re-mount Chrome/Chromium","Point K6_BROWSER_EXECUTABLE_PATH to an existing binary"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}