Jump to content
  • 0

Switch to mongodb for Enterprise edition


Dhruv Patel
 Share

Question

Hi,

    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:

Regards,
Dhruv
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi Dhruv,

There is a known issue with regards to +srv connections for MongoDB atlas https://github.com/ant-media/Ant-Media-Server/pull/3557
The same has been fixed and is available to test in the latest snapshot. If you would like I can share the snapshot version with you.

--
Best Regards,
Mohit Dubey 

 

Link to comment
Share on other sites

 Share


×
×
  • Create New...