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

Prevent recreation of machines #53

Open
Tom7320 opened this issue Nov 28, 2024 · 4 comments
Open

Prevent recreation of machines #53

Tom7320 opened this issue Nov 28, 2024 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Tom7320
Copy link

Tom7320 commented Nov 28, 2024

Hi everyone,

Last night, my server auto-updated the tsdprox container. After the container restart, tsdproxy (tried) to recreate the already existing machines. The problem with the recreation is either:

  • if the auth key is already expired, creation of the machine fails or
  • the machine gets a different name by adding a suffix like "-1" for example.

Therefore, I would like tsdproxy to prevent the creation of machines that already exist. Is that possible? Another solution could be the use of never expiring OAuth ephemeral nodes?!

Thx a lot for the great software! 😊

@almeidapaulopt almeidapaulopt added enhancement New feature or request good first issue Good for newcomers labels Nov 28, 2024
@tmnyhbs
Copy link

tmnyhbs commented Nov 28, 2024

Came here to say I had this same issue this morning.

I stopped the TSDProxy container and then removed all the created machines from my TS dashboard. Restarted and back to usual.

It made me think of another possibly feature — a TSDProxy script/command to purge all created containers created by TSDProxy from Tailscale. Could be very helpful if the initial issue is hard to avoid ongoing.

@almeidapaulopt
Copy link
Owner

If you activate ephemeral, they will be deleted automatically.

@Tom7320
Copy link
Author

Tom7320 commented Nov 29, 2024

Yes. I know. But as soon as the key expires, this will fail. I am looking for a more “permanent” solution for a couple of my services.

@bronson
Copy link

bronson commented Jan 31, 2025

I have ephemeral activated and still ended up with -1 names. (and ephemeral is the default, right? On my tailscale dashboard, the tsdproxy machines all have the blue label)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

4 participants