Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve error message on node joining a cluster with existing state #10108

Closed
klizhentas opened this issue Feb 2, 2022 · 1 comment · Fixed by #11550
Closed

Improve error message on node joining a cluster with existing state #10108

klizhentas opened this issue Feb 2, 2022 · 1 comment · Fixed by #11550
Assignees
Labels
bug c-pg Internal Customer Reference getting-started Features and bugs for beginner users, individuals, OSS users

Comments

@klizhentas
Copy link
Contributor

klizhentas commented Feb 2, 2022

Description

What happened:

  • Node has been joined to existing cluster.
  • User has tried to join a node to a different cluster.

Node has failed and reported an unclear error

User Message: Get "https://teleport.cluster.local/v2/domain": x509: certificate is valid for *.teleport-staging.example.com, teleport-staging.example.com, not abc1234fgwaetfaegfa.teleport.cluster.local] service/connect.go:867
DEBU [PROC:1]    Failed to connect to Auth Server through tunnel. error:[Get "https://teleport.cluster.local/v2/domain": ssh: handshake
failed: ssh: no authorities for hostname: example.com:443] proxy-addr:example.com:443 service/connect.go:868

ERRO [PROC:1]    Node failed to establish connection to cluster: Failed to connect to Auth Server directly or over tunnel, no methods remaining.. service/connect.go:68

Instead, a node should report more clear error:

This node is already a member of a cluster `cluster-name`. To re-join the node, remove `/var/lib/teleport` and try again.

Server Details

  • Teleport version (run teleport version):
  • Server OS (e.g. from /etc/os-release):
  • Where are you running Teleport? (e.g. AWS, GCP, Dedicated Hardware):
  • Additional details:

Client Details

  • Tsh version (tsh version):
  • Computer OS (e.g. Linux, macOS, Windows):
  • Browser version (for UI-related issues):
  • Installed via (e.g. apt, yum, brew, website download):
  • Additional details:

Debug Logs

Please include or attach debug logs, when appropriate. Obfuscate sensitive information!

  • Start Teleport with --debug flag (teleport --debug)
  • Run tsh with --debug flag (tsh --debug)
@klizhentas klizhentas added the bug label Feb 2, 2022
@klizhentas klizhentas added the getting-started Features and bugs for beginner users, individuals, OSS users label Feb 2, 2022
@russjones russjones assigned hatched and unassigned russjones Feb 2, 2022
@webvictim
Copy link
Contributor

webvictim commented Feb 4, 2022

This is pretty much a duplicate of our favourite #2838

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug c-pg Internal Customer Reference getting-started Features and bugs for beginner users, individuals, OSS users
Projects
None yet
5 participants