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

Cluster dosen't start when passing username and password with -u and -p flags #4242

Closed
Mohit-3196 opened this issue Jun 13, 2022 · 1 comment
Assignees

Comments

@Mohit-3196
Copy link
Contributor

Short description

When using mongodb+srv URI to start AMS in cluster mode with ./start.sh by passing -u username and -p password filed, the cluster doesn't start and gives Bootstrap exception.

Environment

  • Ant Media Server version: v2.4.3

Steps to reproduce

  1. Create an Atlas database with mongodb+srv URI
  2. Run the ./start.sh script with sudo ./start.sh -m cluster -h mongodb+srv:// -u username -p password

Expected behavior

Server should start in cluster mode.

Actual behavior

Server gives Bootstrap exception and doesn't start in cluster mode.

@muratugureminoglu
Copy link
Collaborator

muratugureminoglu commented Sep 5, 2022

Hi @Mohit-3196 When I test it, it works properly when I use mongodb+srv://<username>:<password>@<url> cluster URL like this. This is how the cluster URL should be used in MongoDB Atlas.

It would be better if you also share the ant-media-server.log file.

./start.sh -m cluster -h mongodb+srv://<username>:<password>@<url>
sudo ./change_server_mode.sh cluster mongodb+srv://<username>:<password>@<url>

Reference URL: https://resources.antmedia.io/docs/using-mongodb-atlas-with-mongodbsrv-uri

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

No branches or pull requests

3 participants