Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to delete node #2147

Closed
4 tasks done
pedrompcaetano opened this issue Sep 23, 2024 · 2 comments
Closed
4 tasks done

[Bug] Unable to delete node #2147

pedrompcaetano opened this issue Sep 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pedrompcaetano
Copy link

pedrompcaetano commented 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

@pedrompcaetano pedrompcaetano added the bug Something isn't working label Sep 23, 2024
@nblock
Copy link
Contributor

nblock commented Sep 23, 2024

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

@pedrompcaetano
Copy link
Author

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

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants