{"record":{"id":"6ca3f065de46ed16","repo":"chenhg5/cc-connect","slug":"restart-kickstart-w","errorCode":null,"errorMessage":"restart kickstart: %w","messagePattern":"restart kickstart: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"daemon/launchd.go","lineNumber":157,"sourceCode":"\n\t// launchd bootout is asynchronous; retry bootstrap with backoff\n\t// to avoid \"Bootstrap failed: 5\" race condition.\n\tvar out string\n\tvar err error\n\tfor i := 0; i < 3; i++ {\n\t\tif i > 0 {\n\t\t\ttime.Sleep(500 * time.Millisecond)\n\t\t}\n\t\tout, err = runLaunchctl(\"bootstrap\", domain, plistPath)\n\t\tif err == nil {\n\t\t\tbreak\n\t\t}\n\t}\n\tif err != nil {\n\t\treturn fmt.Errorf(\"restart: %s (%w)\", out, err)\n\t}\n\tif _, err := runLaunchctl(\"kickstart\", \"-kp\", target); err != nil {\n\t\treturn fmt.Errorf(\"restart kickstart: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc (*launchdManager) Status() (*Status, error) {\n\tst := &Status{Platform: \"launchd\"}\n\n\tplistPath := launchdPlistPath()\n\tif _, err := os.Stat(plistPath); err != nil {\n\t\treturn st, nil\n\t}\n\tst.Installed = true\n\n\t_, _, out, ok := loadedLaunchdTarget()\n\tif !ok {\n\t\treturn st, nil\n\t}\n","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/daemon/launchd.go#L139-L175","documentation":"Restart completed the bootout/bootstrap cycle but the final launchctl kickstart -kp (kill and restart the service) failed. Wraps the exec error so callers know the service may still be running the old binary or be stopped.","triggerScenarios":"Thrown at daemon/launchd.go:157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the service's log files for the startup failure","Verify plist program/program-arguments are still valid"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}