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
Mongodb connect issue #2383
Comments
Thank you for the report. It the log it says something java.net.UnknownHostException for ant-media.1dy4f.azure.mongodb.net There may be a kind of DNS issue? |
thats what i initially though, however looks like it cant connect to replica set using this standalone code works, should i modify the db connect file and build one from source? or is there something i am doing wrong?
|
Thank you. I try to check it out at weekend. |
My colleague(@muratugureminoglu ) will look into this. Before that, I should mention that in order to connect to replicaSet. db.host url should be set to something like this.
|
Tried everything with no success. |
Hi @muratugureminoglu , |
Sure, will try it out, right now we have moved to production use with local mongo db instance with no replica set. |
I'm facing similar issues when trying to run the EE in cluster mode and when Mongo is hosted at Mongo Atlas. I've also tried the suggested It works just fine when I spin up MongoDB instance in DigitalOcean but when I try to use Mongo Atlas service, it simply fails. I've tried with the following:
I'm able to connect to the Mongo Atlas cluster with any of the above URIs using MongoDB Compass app or any other Mongo management app. |
@mekya Any inputs on this? |
Re-opening issue and it'll be scheduled again in this week. |
For MongoDB Atlas, the following works for me: |
However, this seems to work:
Notice the "escaped" slash (/) and ampersand (&) characters. |
Short description
Cant connect to mongodb replica set on cloud atlas
https://cloud.mongodb.com/
Environment
Logs
Place logs on pastebin or elsewhere and put links here
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcat.cluster' defined in class path resource [jee-container.xml]: Cannot create inner bean 'io.antmedia.enterprise.cluster.ClusterStore#6cf0e0ba' of type [io.antmedia.enterprise.cluster.ClusterStore] while setting bean property 'clusterStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.antmedia.enterprise.cluster.ClusterStore#6cf0e0ba' defined in class path resource [jee-container.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.antmedia.enterprise.cluster.ClusterStore]: Constructor threw exception; nested exception is com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=ant-media.1dy4f.azure.mongodb.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: ant-media.1dy4f.azure.mongodb.net: No address associated with hostname}, caused by {java.net.UnknownHostException: ant-media.1dy4f.azure.mongodb.net: No address associated with hostname}}]
The text was updated successfully, but these errors were encountered: