juanfont/headscale

[Bug] Internal server error on /debug/registration-cache

Open

#2714 opened on Aug 4, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (38,374 stars) (2,104 forks)batch import
CLIbuggood first issueno-stale-bot

Description

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

An internal server error is displayed when /debug/registration-cache is requested and there are pending registrations.

Expected Behavior

Display the current registration cache.

Steps To Reproduce

  1. Start a new, interactive registration. The client shows the usual setup instructions to complete the setup by registering the new node using the headscale CLI
  2. Request the registration-cache of the debug interface
    $ curl http://localhost:9090/debug/registration-cache
    internal server error
    
  3. Notice the corresponding log entry on the server:
    ERR http internal server error error="json: unsupported type: chan *types.Node" code=500
    

Environment

- OS: Debian 12
- Headscale version: 0.26.1
- Tailscale version: 1.84.2

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Debug information

Not required.

Contributor guide