JuliusBrussee/caveman · error

executable identity unsupported on

Error message

executable identity unsupported on %s

What it means

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.

Solutions

  1. Run on a supported platform (Linux/Darwin/BSD or Windows)
  2. Add a probe branch for the target GOOS in processExecutable
  3. Treat the error as 'executable identity unavailable' and degrade gracefully (e.g. match by token only)
Defensive patterns

Strategy: fallback

Validate before calling

supported := runtime.GOOS == "windows" || runtime.GOOS == "linux" || runtime.GOOS == "darwin" || strings.HasSuffix(runtime.GOOS, "bsd")
if !supported { log.Printf("executable identity unavailable on %s", runtime.GOOS) }

Try / catch

exe, err := processExecutable(pid)
if err != nil {
    log.Printf("executable identity unavailable: %v", err)
    exe = "" // degrade: match by token/listen only
}

Prevention

When it happens

Trigger: 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).

Common situations: Cross-compiling or running the proxy on an exotic/embedded OS where neither `ps` nor the Windows query API is available.

Understand the failure class

Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.

Related errors


AI-assisted analysis of JuliusBrussee/caveman@3ee70a1026 (2026-09-20). Data as JSON: /api/errors/14d48794b924899e. Report an issue: GitHub.

Appendix: source

Thrown at proxy/internal/runstate/runstate.go:277

		// Windows validate()'s instance probe carries the real liveness
		// weight — a dead proxy cannot return its generation's token.
		return true
	}
	return process.Signal(syscall.Signal(0)) == nil
}

func processExecutable(pid int) (string, error) {
	if runtime.GOOS == "linux" {
		return os.Readlink(filepath.Join("/proc", strconv.Itoa(pid), "exe"))
	}
	if runtime.GOOS == "darwin" {
		out, err := exec.Command("ps", "-o", "comm=", "-p", strconv.Itoa(pid)).Output()
		return strings.TrimSpace(string(out)), err
	}
	if runtime.GOOS == "windows" {
		return processExecutableWindows(pid)
	}
	return "", fmt.Errorf("executable identity unsupported on %s", runtime.GOOS)
}

func instanceMatches(listen, token string) bool {
	if token == "" {
		return false
	}
	host, port, err := net.SplitHostPort(listen)
	if err != nil {
		return false
	}
	// A wildcard bind is reached through loopback, never a corporate proxy or
	// an unspecified remote destination.
	switch host {
	case "", "0.0.0.0":
		host = "127.0.0.1"
	case "::":
		host = "::1"
	}

View on GitHub (pinned to 3ee70a1026)