-
Notifications
You must be signed in to change notification settings - Fork 14
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
No suitable servers found (serverselectiontryonce
set)
#2
Comments
Did you enter valid information in the config file? |
The config file information seems valid. I have downgraded to php 5.6 and using this library with the same information in config file and it works. |
Was there any information behind: " (serverselectiontryonce set)"? There should be a list of the server hosts it tried. Something like:
|
Ah, I see what the problem is. The problem is that if you have set the replicateset to a value that's not the name of a replicateset it can't connect: Simply remove the line in the config file should do the trick! |
`An uncaught Exception was encountered
Type: MongoDB\Driver\Exception\ConnectionTimeoutException
Message: No suitable servers found (
serverselectiontryonce
set)Filename: /var/www/html/application/vendor/mongodb/mongodb/src/Collection.php
Line Number: 438
Backtrace:
File: /var/www/html/application/vendor/mongodb/mongodb/src/Collection.php
Line: 438
Function: selectServer`
The text was updated successfully, but these errors were encountered: