[Bug] TLS internal error when attempting to login #734

Closed
opened 2025-12-29 02:23:02 +01:00 by adam · 1 comment
Owner

Originally created by @Noodlez1232 on GitHub (Jun 20, 2024).

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

When trying to use tailscale up or using a different device (e.g. android), the command line locks up, and tailscaled gives the error Received error: fetch control key: Get "https://<host>key?v=95": remote error: tls: internal error

Expected Behavior

tailscale up works, and gives a login URL to use.

Steps To Reproduce

  1. Setup Headscale using NixOS module.
  2. Set services.headscale.package to the package given in the flake in the repo
  3. Set up Headscale behind a Caddy reverse proxy (reverse_proxy localhost:9900)
  4. Try to login

Environment

- OS: NixOS 24.03
- Headscale version: main (also occurs on 0.22.3 and 0.23.0-alpha12)
- Tailscale version: 1.66.4 (also occurs on 1.68.0)

Runtime environment

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

Anything else?

All other TLS works, and when using localhost as the login url, tailscale will login, meaning it has something to do with the reverse proxy. Where my trouble is is that headscale is the only application with this TLS problem.

Originally created by @Noodlez1232 on GitHub (Jun 20, 2024). ### 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 When trying to use `tailscale up` or using a different device (e.g. android), the command line locks up, and tailscaled gives the error `Received error: fetch control key: Get "https://<host>key?v=95": remote error: tls: internal error` ### Expected Behavior `tailscale up` works, and gives a login URL to use. ### Steps To Reproduce 1. Setup Headscale using NixOS module. 2. Set `services.headscale.package` to the package given in the flake in the repo 3. Set up Headscale behind a Caddy reverse proxy (`reverse_proxy localhost:9900`) 4. Try to login ### Environment ```markdown - OS: NixOS 24.03 - Headscale version: main (also occurs on 0.22.3 and 0.23.0-alpha12) - Tailscale version: 1.66.4 (also occurs on 1.68.0) ``` ### Runtime environment - [X] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Anything else? All other TLS works, and when using `localhost` as the login url, tailscale will login, meaning it has something to do with the reverse proxy. Where my trouble is is that headscale is the only application with this TLS problem.
adam added the bug label 2025-12-29 02:23:02 +01:00
adam closed this issue 2025-12-29 02:23:02 +01:00
Author
Owner

@ohdearaugustin commented on GitHub (Jun 20, 2024):

Please for reverse_proxy join discord and discuss there. This is not a bug, rather a support request.
Will close the issue.

@ohdearaugustin commented on GitHub (Jun 20, 2024): Please for reverse_proxy join discord and discuss there. This is not a bug, rather a support request. Will close the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#734