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

Mongo timeouts to Atlas from tsh db connect #13195

Closed
stevenGravy opened this issue Jun 6, 2022 · 0 comments · Fixed by #13408
Closed

Mongo timeouts to Atlas from tsh db connect #13195

stevenGravy opened this issue Jun 6, 2022 · 0 comments · Fixed by #13408
Assignees
Labels
bug database-access Database access related issues and PRs db/mongo MongoDB related database access issues

Comments

@stevenGravy
Copy link
Contributor

Expected behavior:

A method of increasing the timeout to a MongoDB.

Current behavior:

Users that connect via tsh db connect experience timeouts when connecting to Atlas. This is more pronounced in Teleport Cloud even with AWS Global Balancing enabled. The tsh db connect to a MongoDB atlas DB can experience timeouts since it defaults to 2000 ms in the mongo shell invocation. Note that the direction

Bug details:

  • Teleport version 9.3.3
  • Recreation steps

Open a MongoDB Atlas account. Connect a Teleport cloud instance to it. tsh db connects will connect w/o timing out half the time.

  • Debug logs
$ tsh db connect --db-user=mongouser  mongodb-atlas
Current Mongosh Log ID:	6298cf9b669c3e9914acf0d9
Connecting to:		mongodb://localhost:51230/?directConnection=true&serverSelectionTimeoutMS=2000&tls=true&tlsCertificateKeyFile=%2FUsers%2Fstevenmartinsr%2F.tsh%2Fkeys%2Fskyward.teleport.sh%2Fsteven-db%2Fskyward.teleport.sh%2Fmongodb-atlas-x509.pem&tlsCAFile=%2FUsers%2Fstevenmartinsr%2F.tsh%2Fkeys%2Fskyward.teleport.sh%2Fcas%2Fskyward.teleport.sh.pem&appName=mongosh+1.4.2
MongoServerSelectionError: Server selection timed out after 2000 ms
ERROR: exit status 1
@stevenGravy stevenGravy added bug database-access Database access related issues and PRs db/mongo MongoDB related database access issues labels Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug database-access Database access related issues and PRs db/mongo MongoDB related database access issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants