Unable to join Headscale server, machine IP seems to be empty #30

Closed
opened 2025-12-29 01:20:24 +01:00 by adam · 4 comments
Owner

Originally created by @maddie on GitHub (Sep 6, 2021).

Using Tailscale v1.14.0 here, and when I try to join the network, tailscale up hangs and logs printed by headscale:

Sep 06 06:38:42 headscale headscale[51960]: [GIN] 2021/09/06 - 06:38:42 | 500 |    6.694432ms | 192.168.103.253 | POST     "/machine/8220a4cce5513fc662404da43020abe2eabc3def64d5f38a362b60689466a51d/map"
Sep 06 06:39:01 headscale headscale[51960]: 2021-09-06T06:39:01Z ERR Cannot convert to node error="netaddr.ParseIPPrefix(\"/32\"): ParseIP(\"\"): unable to parse IP" func=getMapResponse
Sep 06 06:39:01 headscale headscale[51960]: 2021-09-06T06:39:01Z ERR Failed to get Map response error="netaddr.ParseIPPrefix(\"/32\"): ParseIP(\"\"): unable to parse IP" handler=PollNetMap id=8220a4cce5513fc662404da43020abe2eabc3def64d5f38a362b60689466a51d machine=test_machine

It seems that headscale fails to get the machine IP here:

123f0fa185/machine.go (L80)

Any pointers?

Originally created by @maddie on GitHub (Sep 6, 2021). Using Tailscale v1.14.0 here, and when I try to join the network, `tailscale up` hangs and logs printed by `headscale`: ``` Sep 06 06:38:42 headscale headscale[51960]: [GIN] 2021/09/06 - 06:38:42 | 500 | 6.694432ms | 192.168.103.253 | POST "/machine/8220a4cce5513fc662404da43020abe2eabc3def64d5f38a362b60689466a51d/map" Sep 06 06:39:01 headscale headscale[51960]: 2021-09-06T06:39:01Z ERR Cannot convert to node error="netaddr.ParseIPPrefix(\"/32\"): ParseIP(\"\"): unable to parse IP" func=getMapResponse Sep 06 06:39:01 headscale headscale[51960]: 2021-09-06T06:39:01Z ERR Failed to get Map response error="netaddr.ParseIPPrefix(\"/32\"): ParseIP(\"\"): unable to parse IP" handler=PollNetMap id=8220a4cce5513fc662404da43020abe2eabc3def64d5f38a362b60689466a51d machine=test_machine ``` It seems that headscale fails to get the machine IP here: https://github.com/juanfont/headscale/blob/123f0fa18516e812ff19ff069d5fb5544768d46c/machine.go#L80 Any pointers?
adam closed this issue 2025-12-29 01:20:24 +01:00
Author
Owner

@juanfont commented on GitHub (Sep 13, 2021):

Are you still having this issue? Where you connected to the official Tailscale.com service in that machine before?

@juanfont commented on GitHub (Sep 13, 2021): Are you still having this issue? Where you connected to the official Tailscale.com service in that machine before?
Author
Owner

@juanfont commented on GitHub (Sep 24, 2021):

Ok. Gonna close this due to inactivity... Let us know if you still face the problem.

@juanfont commented on GitHub (Sep 24, 2021): Ok. Gonna close this due to inactivity... Let us know if you still face the problem.
Author
Owner

@maddie commented on GitHub (Sep 24, 2021):

Sorry, been busy.. I'll test again when I have time, and re-open if there's still issue.

FWIW the node was a freshly installed Ubuntu 20.04 and Tailscale.

@maddie commented on GitHub (Sep 24, 2021): Sorry, been busy.. I'll test again when I have time, and re-open if there's still issue. FWIW the node was a freshly installed Ubuntu 20.04 and Tailscale.
Author
Owner

@diseq commented on GitHub (Sep 27, 2021):

The root cause is an expired pre-auth key.
@juanfont @maddie

@diseq commented on GitHub (Sep 27, 2021): The root cause is an expired pre-auth key. @juanfont @maddie
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#30