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

Multiple auth servers in config doesn't work if the last on is not reachable. #593

Closed
nmaki opened this issue Oct 26, 2016 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@nmaki
Copy link
Contributor

nmaki commented Oct 26, 2016

I have multiple auth servers listed in my config file. Not all the auth servers are necessarily up so I would expect the service to loop through all the listed auth servers until it can connect to one. I'm only seeing it attempt to connect to the last one though. Lets say I have the following config.
auth_servers: - 10.1.0.2:3025 - 10.1.0.3:3025 - 10.1.0.4:3025 - 10.1.0.5:3025 - 10.1.0.6:3025
Assume 10.1.0.6 is not reachable at the time an ssh server is coming up. An ssh server will loop forever only trying to connect to the last server in the provided list.

@klizhentas
Copy link
Contributor

@nmaki Can you show what's in the authservers.json file in /var/lib/teleport?

@nmaki
Copy link
Contributor Author

nmaki commented Oct 26, 2016

@klizhentas there is no authservers.json in the folder /var/lib/teleport. The node has not joined a cluster yet.

@nmaki
Copy link
Contributor Author

nmaki commented Oct 26, 2016

It looks like this line might be the culprit?

cfg.AuthServers = []utils.NetAddr{*addr}

@kontsevoy
Copy link
Contributor

Closed by #597 (thanks @nmaki)

@kontsevoy kontsevoy added this to the 1.3 milestone Oct 27, 2016
@kontsevoy kontsevoy added the bug label Oct 27, 2016
hatched pushed a commit to hatched/teleport-merge that referenced this issue Nov 30, 2022
hatched pushed a commit that referenced this issue Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants