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

fix: agent tailscale server reestablish connection #575

Merged
merged 1 commit into from
May 17, 2024

Conversation

Tpuljak
Copy link
Member

@Tpuljak Tpuljak commented May 17, 2024

Agent Tailscale Server Reestablish Connection

Description

This PR fixes the agent tailscale server connection reestablishing. The server now performs a health check every 5 seconds and, if it fails, attempts to reconnect. The reconnection process involves getting a new network key and initializing a new tailscale connection.

  • This change requires a documentation update
  • I have made corresponding changes to the documentation

Related Issue(s)

Closes #522

Notes

To test this PR:

  1. Create a workspace
  2. Stop the Daytona Server for more than 5 minutes
  3. Start the Daytona Server
  4. Attempt to connect to the workspace project with daytona ssh

Signed-off-by: Toma Puljak <toma.puljak@hotmail.com>
@Tpuljak Tpuljak requested a review from a team as a code owner May 17, 2024 08:45
@Tpuljak Tpuljak merged commit 6e9a899 into main May 17, 2024
5 checks passed
@Tpuljak Tpuljak deleted the agent-tailscale-reestablish-conn branch May 17, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projects that have a broken tailscale connection for more than 5 minutes can not reestablish it
3 participants