I am running Enterprise edition in my local system and i want to connect to my Mongodb atlas cluster i tried with the script
change_server_mode.sh '<cluster name>.mogodb.net/?ssl=true' user password
and i am getting below error
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=cluster0.xwgp5.mongodb.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: cluster0.xwgp5.mongodb.net: No address associated with hostname}, caused by {java.net.UnknownHostException: cluster0.xwgp5.mongodb.net: No address associated with hostname}}]
at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:177)
at com.mongodb.internal.connection.SingleServerCluster.getDescription(SingleServerCluster.java:41)
at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:147)
at com.mongodb.client.internal.MongoClientDelegate.createClientSession(MongoClientDelegate.java:98)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.getClientSession(MongoClientDelegate.java:278)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:202)
at com.mongodb.client.internal.MongoCollectionImpl.executeCreateIndexes(MongoCollectionImpl.java:846)
at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:829)
at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:824)
at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:809)
at dev.morphia.IndexHelper.createIndex(IndexHelper.java:362)
at dev.morphia.IndexHelper.createIndex(IndexHelper.java:350)
at dev.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:956)
at dev.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:950)
at io.antmedia.enterprise.cluster.ClusterStore.<init>(ClusterStore.java:55)
at io.antmedia.enterprise.cluster.ClusterStore.<init>(ClusterStore.java:39)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:
Question
Dhruv Patel
Hi,
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Oct 25
2
Top Posters For This Question
Mohit 1 post
Dhruv Patel 1 post
Popular Days
Oct 25 2021
2 posts
1 answer to this question
Recommended Posts