[Bug] Unable to delete node #803

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

Originally created by @pedrompcaetano on GitHub (Sep 23, 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

On a new installation, it is not possible to remove a node.

Expected Behavior

It should be possible to expire and delete a node.

Steps To Reproduce

I've registered 5 hosts via login url method.
Afterwards I've sucessfully expired one node.
Lastly I'd like to delete that node, which is not possible using the following command:
root@vspasr1hscp01:~# docker exec headscale headscale nodes delete -i 5 ? Do you want to remove the node localhost? (y/N) root@vspasr1hscp01:~# ;236R;51R -bash: syntax error near unexpected token `;'

It looks like there is garbage being sent to the terminal and it is not possible to confirm the node deletion.

Environment

- OS: Debian 12.7
- Headscale version: 0.23.0
- Tailscale version: iOS 1.74.0

Runtime environment

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

Anything else?

No response

EDIT: The command used for node deletion was incorrect.
The following command works perfectly:
docker exec -it headscale headscale nodes delete -i 5

Originally created by @pedrompcaetano on GitHub (Sep 23, 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 On a new installation, it is not possible to remove a node. ### Expected Behavior It should be possible to expire and delete a node. ### Steps To Reproduce I've registered 5 hosts via login url method. Afterwards I've sucessfully expired one node. Lastly I'd like to delete that node, which is not possible using the following command: `` root@vspasr1hscp01:~# docker exec headscale headscale nodes delete -i 5 ? Do you want to remove the node localhost? (y/N) root@vspasr1hscp01:~# ;236R;51R -bash: syntax error near unexpected token `;' `` It looks like there is garbage being sent to the terminal and it is not possible to confirm the node deletion. ### Environment ```markdown - OS: Debian 12.7 - Headscale version: 0.23.0 - Tailscale version: iOS 1.74.0 ``` ### Runtime environment - [X] Headscale is behind a (reverse) proxy - [X] Headscale runs in a container ### Anything else? _No response_ EDIT: The command used for node deletion was incorrect. The following command works perfectly: `` docker exec -it headscale headscale nodes delete -i 5 ``
adam added the bug label 2025-12-29 02:24:13 +01:00
adam closed this issue 2025-12-29 02:24:13 +01:00
Author
Owner

@nblock commented on GitHub (Sep 23, 2024):

Can you try: docker exec -it headscale headscale nodes delete -i 5 ? (Adding -it as arguments to docker exec)

@nblock commented on GitHub (Sep 23, 2024): Can you try: `docker exec -it headscale headscale nodes delete -i 5` ? (Adding `-it` as arguments to `docker exec`)
Author
Owner

@pedrompcaetano commented on GitHub (Sep 23, 2024):

It does solve the issue!
Thank you for your fast reply.

Best

@pedrompcaetano commented on GitHub (Sep 23, 2024): It does solve the issue! Thank you for your fast reply. Best
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#803