juanfont/headscale · error

status netmap to /tmp/control: %w

Error message

status netmap to /tmp/control: %w

What it means

Error "status netmap to /tmp/control: %w" thrown in juanfont/headscale.

Source

Thrown at integration/tsic/tsic.go:998

	command := []string{
		tailscaleBin,
		"status",
		"--json",
	}

	status, raw, err := execJSON[ipnstate.Status](
		t,
		command,
		"executing tailscale status command",
		"unmarshalling tailscale status",
	)
	if err != nil {
		return nil, err
	}

	err = os.WriteFile(fmt.Sprintf("/tmp/control/%s_status.json", t.hostname), []byte(raw), 0o755) //nolint:gosec // test infrastructure log files
	if err != nil {
		return nil, fmt.Errorf("status netmap to /tmp/control: %w", err)
	}

	return status, nil
}

// MustStatus returns the [ipnstate.Status] of the Tailscale instance.
func (t *TailscaleInContainer) MustStatus() *ipnstate.Status {
	status, err := t.Status()
	if err != nil {
		panic(err)
	}

	return status
}

// MustID returns the ID of the Tailscale instance.
func (t *TailscaleInContainer) MustID() types.NodeID {
	status, err := t.Status()

View on GitHub (pinned to 565fd254d0)

Solutions

  1. Inspect the wrapped error for the underlying cause and correct the failing condition (status netmap to /tmp/control); retry the operation after fixing the input, configuration, or environment.

Example fix

Inspect the wrapped error for the underlying cause and correct the failing condition (status netmap to /tmp/control); retry the operation after fixing the input, configuration, or environment.

When it happens

Trigger: Thrown at integration/tsic/tsic.go:998 when the library encounters an invalid state.

Common situations: Fetching the netmap/status for debugging failed. Ensure the node is running and the debug command can reach tailscaled.


AI-assisted analysis of juanfont/headscale@565fd254d0 (2026-08-15). Data as JSON: /api/errors/91c1786859868786. Report an issue: GitHub.