[Bug] <title>Can't log in. Could not get the create map update error="tailNode, failed to create FQDN: failed to create valid FQDN: node has no given name" #955

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

Originally created by @yinkaisheng on GitHub (Feb 25, 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

Hi,
Today all my clients(windows, android, ios) can't log in to the headscale server.

Server displayed (tail -f /var/log/syslog)

Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 INF home/runner/work/headscale/headscale/hscontrol/poll.go:634 > node has connected, mapSession: 0xc0001cd200, chan: 0xc0000c2150 node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true
Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 ERR home/runner/work/headscale/headscale/hscontrol/poll.go:654 > Could not get the create map update error="tailNode, failed to create FQDN: failed to create valid FQDN: node has no given name" node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true
Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 INF home/runner/work/headscale/headscale/hscontrol/poll.go:634 > node has disconnected, mapSession: 0xc0001cd200, chan: 0xc0000c2150 node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true

Image

Windows clients(version 1.80.0) displayed EOF or hanged forever when run

tailscale up --accept-dns=false --accept-routes --force-reauth=true --login-server=http://host:ip --authkey=xxxx --unattended --hostname=myname

Image

Previously logged-in clients can still be used normally, but if they log out using tailscale logout, they will not be able to log in again using tailscale up.

Tsnet(version 1.78.3) applications displayed

2025/02/25 12:23:37 TsInternal control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=true; authURL=false
2025/02/25 12:23:37 TsInternal control: [v1] No AuthURL
2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: authRoutine-success: state:authenticated
2025/02/25 12:23:37 TsInternal control: [v1] restartMap: synced=false
2025/02/25 12:23:37 TsInternal control: [v1] authRoutine: state:authenticated; goal=nil paused=false
2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: context done.
2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated
2025/02/25 12:23:37 TsInternal [v1] authReconfig: netmap not yet valid. Skipping.
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=false ep=[]
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[]
2025/02/25 12:23:37 TsInternal control: [v1] successful lite map update in 14ms
2025/02/25 12:23:37 TsInternal control: mapRoutine: [v1] backoff: 6 msec
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: EOF
2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: mapRoutine1: state:authenticated
2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[]
2025/02/25 12:23:37 TsInternal [v1] Received error: EOF
2025/02/25 12:23:37 TsInternal control: mapRoutine: [v1] backoff: 35 msec
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: EOF
2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: mapRoutine1: state:authenticated
2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated
2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[]
2025/02/25 12:23:37 TsInternal [v1] Received error: EOF

What's wrong? What should I do?

Expected Behavior

Clients can log in.

Steps To Reproduce

I didn't do anything. I just waited until today.

Environment

- OS: Ubuntu 20.04.6 LTS
- Headscale version: v0.24.0-beta.2.
- Tailscale version: 1.80.0, 1.78.3

Runtime environment

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

Anything else?

No response

Originally created by @yinkaisheng on GitHub (Feb 25, 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 Hi, Today all my clients(windows, android, ios) can't log in to the headscale server. Server displayed (`tail -f /var/log/syslog`) ``` Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 INF home/runner/work/headscale/headscale/hscontrol/poll.go:634 > node has connected, mapSession: 0xc0001cd200, chan: 0xc0000c2150 node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 ERR home/runner/work/headscale/headscale/hscontrol/poll.go:654 > Could not get the create map update error="tailNode, failed to create FQDN: failed to create valid FQDN: node has no given name" node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true Feb 25 12:28:20 ecm-f329 headscale[81449]: 2025-02-25T12:28:20+08:00 INF home/runner/work/headscale/headscale/hscontrol/poll.go:634 > node has disconnected, mapSession: 0xc0001cd200, chan: 0xc0000c2150 node=yks-hypc3 node.id=2857 omitPeers=false readOnly=false stream=true ``` ![Image](https://github.com/user-attachments/assets/2c77f2b4-366d-4707-aa17-45635b3429b8) Windows clients(version 1.80.0) displayed EOF or hanged forever when run ``` tailscale up --accept-dns=false --accept-routes --force-reauth=true --login-server=http://host:ip --authkey=xxxx --unattended --hostname=myname ``` ![Image](https://github.com/user-attachments/assets/deca1c84-4e86-4c1f-a2f9-d7226b388ea6) Previously logged-in clients can still be used normally, but if they log out using `tailscale logout`, they will not be able to log in again using `tailscale up`. Tsnet(version 1.78.3) applications displayed ``` 2025/02/25 12:23:37 TsInternal control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=true; authURL=false 2025/02/25 12:23:37 TsInternal control: [v1] No AuthURL 2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: authRoutine-success: state:authenticated 2025/02/25 12:23:37 TsInternal control: [v1] restartMap: synced=false 2025/02/25 12:23:37 TsInternal control: [v1] authRoutine: state:authenticated; goal=nil paused=false 2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: context done. 2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated 2025/02/25 12:23:37 TsInternal [v1] authReconfig: netmap not yet valid. Skipping. 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=false ep=[] 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[] 2025/02/25 12:23:37 TsInternal control: [v1] successful lite map update in 14ms 2025/02/25 12:23:37 TsInternal control: mapRoutine: [v1] backoff: 6 msec 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: EOF 2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: mapRoutine1: state:authenticated 2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[] 2025/02/25 12:23:37 TsInternal [v1] Received error: EOF 2025/02/25 12:23:37 TsInternal control: mapRoutine: [v1] backoff: 35 msec 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: EOF 2025/02/25 12:23:37 TsInternal control: [v1] sendStatus: mapRoutine1: state:authenticated 2025/02/25 12:23:37 TsInternal control: [v1] mapRoutine: state:authenticated 2025/02/25 12:23:37 TsInternal control: [v1] PollNetMap: stream=true ep=[] 2025/02/25 12:23:37 TsInternal [v1] Received error: EOF ``` What's wrong? What should I do? ### Expected Behavior Clients can log in. ### Steps To Reproduce I didn't do anything. I just waited until today. ### Environment ```markdown - OS: Ubuntu 20.04.6 LTS - Headscale version: v0.24.0-beta.2. - Tailscale version: 1.80.0, 1.78.3 ``` ### 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:26:41 +01:00
adam closed this issue 2025-12-29 02:26:41 +01:00
Author
Owner

@yinkaisheng commented on GitHub (Feb 25, 2025):

We may find the root cause.
A user with the hostname '蛋定无忧' has caused the issue. The user's given_name is empty.
Clients can log in after we deleting the user manually.
Can Headscale handle non-English hostnames better?

Image

@yinkaisheng commented on GitHub (Feb 25, 2025): We may find the root cause. A user with the hostname '蛋定无忧' has caused the issue. The user's given_name is empty. Clients can log in after we deleting the user manually. Can Headscale handle non-English hostnames better? ![Image](https://github.com/user-attachments/assets/82ba2ae6-0e35-46d2-8cd5-1c8455c07f00)
Author
Owner

@nblock commented on GitHub (Feb 25, 2025):

Can Headscale handle non-English hostnames better?

A prototype/idea is here: https://github.com/juanfont/headscale/pull/2383

Its a duplicate of: https://github.com/juanfont/headscale/issues/2343

@nblock commented on GitHub (Feb 25, 2025): > Can Headscale handle non-English hostnames better? A prototype/idea is here: https://github.com/juanfont/headscale/pull/2383 Its a duplicate of: https://github.com/juanfont/headscale/issues/2343
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#955