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

Open
opened 2025-12-29 02:28:08 +01:00 by adam · 0 comments
Owner

Originally created by @nblock on GitHub (Aug 4, 2025).

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.

Originally created by @nblock on GitHub (Aug 4, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] 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 ```console $ 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 ```markdown - 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.
adam added the buggood first issueno-stale-bot labels 2025-12-29 02:28:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1077