{"record":{"id":"14d48794b924899e","repo":"JuliusBrussee/caveman","slug":"executable-identity-unsupported-on-s","errorCode":null,"errorMessage":"executable identity unsupported on %s","messagePattern":"executable identity unsupported on (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"proxy/internal/runstate/runstate.go","lineNumber":277,"sourceCode":"\t\t// Windows validate()'s instance probe carries the real liveness\n\t\t// weight — a dead proxy cannot return its generation's token.\n\t\treturn true\n\t}\n\treturn process.Signal(syscall.Signal(0)) == nil\n}\n\nfunc processExecutable(pid int) (string, error) {\n\tif runtime.GOOS == \"linux\" {\n\t\treturn os.Readlink(filepath.Join(\"/proc\", strconv.Itoa(pid), \"exe\"))\n\t}\n\tif runtime.GOOS == \"darwin\" {\n\t\tout, err := exec.Command(\"ps\", \"-o\", \"comm=\", \"-p\", strconv.Itoa(pid)).Output()\n\t\treturn strings.TrimSpace(string(out)), err\n\t}\n\tif runtime.GOOS == \"windows\" {\n\t\treturn processExecutableWindows(pid)\n\t}\n\treturn \"\", fmt.Errorf(\"executable identity unsupported on %s\", runtime.GOOS)\n}\n\nfunc instanceMatches(listen, token string) bool {\n\tif token == \"\" {\n\t\treturn false\n\t}\n\thost, port, err := net.SplitHostPort(listen)\n\tif err != nil {\n\t\treturn false\n\t}\n\t// A wildcard bind is reached through loopback, never a corporate proxy or\n\t// an unspecified remote destination.\n\tswitch host {\n\tcase \"\", \"0.0.0.0\":\n\t\thost = \"127.0.0.1\"\n\tcase \"::\":\n\t\thost = \"::1\"\n\t}","sourceCodeStart":259,"sourceCodeEnd":295,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/3ee70a102609e550bd2e68004bf5990a9341c851/proxy/internal/runstate/runstate.go#L259-L295","documentation":"processExecutable probes a process's executable identity, but on the platform it is running on (neither Unix ps-supporting systems nor Windows) no probe is implemented, so it returns this error. It is a build/platform capability guard, not a runtime failure of the queried process.","triggerScenarios":"Calling the runstate instance-matching/path on a GOOS that is not windows and not one of the Unix variants handled by the ps branch (e.g. plan9, js/wasm, aix).","commonSituations":"Cross-compiling or running the proxy on an exotic/embedded OS where neither `ps` nor the Windows query API is available.","solutions":["Run on a supported platform (Linux/Darwin/BSD or Windows)","Add a probe branch for the target GOOS in processExecutable","Treat the error as 'executable identity unavailable' and degrade gracefully (e.g. match by token only)"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"supported := runtime.GOOS == \"windows\" || runtime.GOOS == \"linux\" || runtime.GOOS == \"darwin\" || strings.HasSuffix(runtime.GOOS, \"bsd\")\nif !supported { log.Printf(\"executable identity unavailable on %s\", runtime.GOOS) }","typeGuard":null,"tryCatchPattern":"exe, err := processExecutable(pid)\nif err != nil {\n    log.Printf(\"executable identity unavailable: %v\", err)\n    exe = \"\" // degrade: match by token/listen only\n}","preventionTips":["Restrict deployments to supported GOOS values","Add CI smoke tests for each target platform","Degrade to token-based instance matching when identity probing fails","Document platform support in the README"],"tags":["platform","process-probe"],"backgroundTag":"unsupported-platform","analyzedSha":"3ee70a102609e550bd2e68004bf5990a9341c851","analyzedAt":"2026-09-20T15:53:39.229Z","contentChangedAt":"2026-09-20T15:53:39.229Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}