juanfont/headscale

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

开放

#2,714 创建于 2025年8月4日

 (0 条评论) (0 个反应) (0 位负责人)Go (2,104 个派生)batch import
CLIbuggood first issueno-stale-bot

仓库指标

星标
 (38,374 个星标)
PR 合并指标
 (平均合并 1天 11小时) (30 天内合并 33 个 PR)

描述

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.

贡献者指南