Skip to content

Commit

Permalink
Show the user the actual data directory to remove when trying to join…
Browse files Browse the repository at this point in the history
… to the wrong cluster. (#11754)
  • Loading branch information
hatched committed Apr 6, 2022
1 parent 53aa486 commit 3b2e2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (process *TeleportProcess) connect(role types.SystemRole) (conn *Connector,
// made. So provide a more user friendly error as a hint of what
// they can do to resolve the issue.
if strings.Contains(err.Error(), "certificate signed by unknown authority") {
process.log.Error("Was this node already registered to a different cluster? To join this node to a new cluster, remove `/var/lib/teleport` and try again")
process.log.Errorf("Was this node already registered to a different cluster? To join this node to a new cluster, remove `%s` and try again", process.Config.DataDir)
}
return nil, trace.Wrap(err)
}
Expand Down

0 comments on commit 3b2e2d4

Please # to comment.