connection attempts to machine/map failed #832

Closed
opened 2025-12-29 02:24:37 +01:00 by adam · 2 comments
Owner

Originally created by @cg31 on GitHub (Oct 14, 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

My setup worked well before, after upgrading to tailscale 1.76 and headscale 0.23 (and the latest main branch).

Then suddenly all machines has this error message in "sudo systemctl status tailscaled":
[...]: Received error: PollNetMap: Post "https://xx.xx.x.x:8182/machine/map": connection attempts aborted by context: context deadline exceeded
[...]: control: controlhttp: forcing port 443 dial due to recent noise dial

the server port is configured as:
server_url: http://127.0.0.1:443
listen_addr: 0.0.0.0:8182

Some machines still are working even after this error, but some can't.

Are there some suggestions to debug it?

Expected Behavior

The error fixed.

Steps To Reproduce

sudo systemctl status tailscaled

Environment

- OS: Ubuntu 24.04
- Headscale version: 0.23
- Tailscale version: 1.76.0

Runtime environment

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

Anything else?

No response

Originally created by @cg31 on GitHub (Oct 14, 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 My setup worked well before, after upgrading to tailscale 1.76 and headscale 0.23 (and the latest main branch). Then suddenly all machines has this error message in "sudo systemctl status tailscaled": [...]: Received error: PollNetMap: Post "https://xx.xx.x.x:8182/machine/map": connection attempts aborted by context: context deadline exceeded [...]: control: controlhttp: forcing port 443 dial due to recent noise dial the server port is configured as: server_url: http://127.0.0.1:443 listen_addr: 0.0.0.0:8182 Some machines still are working even after this error, but some can't. Are there some suggestions to debug it? ### Expected Behavior The error fixed. ### Steps To Reproduce sudo systemctl status tailscaled ### Environment ```markdown - OS: Ubuntu 24.04 - Headscale version: 0.23 - Tailscale version: 1.76.0 ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:24:37 +01:00
adam closed this issue 2025-12-29 02:24:38 +01:00
Author
Owner

@cg31 commented on GitHub (Oct 14, 2024):

When I run curl https://xx.xx.x.x:8182/machine/map, I get this error:
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to xx.xx.x.x:8182/machine/map

It seems like a SSL certificate issue, is it reuiqred to setup TLS?

@cg31 commented on GitHub (Oct 14, 2024): When I run curl https://xx.xx.x.x:8182/machine/map, I get this error: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to xx.xx.x.x:8182/machine/map It seems like a SSL certificate issue, is it reuiqred to setup TLS?
Author
Owner

@cg31 commented on GitHub (Oct 14, 2024):

I found the solution...

I have to reset server to http://xx.xx.x.x:8182 by running tailscale up --login-server=http://xx.xx.x.x:8182

It was set as http before, but it seems tailscale turns to use https now.

@cg31 commented on GitHub (Oct 14, 2024): I found the solution... I have to reset server to http://xx.xx.x.x:8182 by running tailscale up --login-server=http://xx.xx.x.x:8182 It was set as http before, but it seems tailscale turns to use https now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#832