dboissier / mongo4idea

MongoDB integration in Intellij
Apache License 2.0
975 stars 109 forks source link

Not able to connect for mongo server via pycharm #187

Open srinidhiupadhya opened 7 years ago

srinidhiupadhya commented 7 years ago

I installed mongo in one of vm. Through this remote IP i am connecting my mongo db. So I tried to add new mongo db server to it. So I gave proper auth and SSL. But I was getting the below exception.

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=192.168.127.143:27020, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present}, caused by {java.security.cert.CertificateException: No subject alternative names present}}]

So is there any other files to install or can any of you please tell me how can I solve this problem. As I am new to this, it will be very useful for me if anyone could answer it or can I solution if it is already known issue.

Thanks,

dboissier commented 7 years ago

Hi,

my understanding of the above message is a SSL issue. Is your certificate trusted?

srinidhiupadhya commented 7 years ago

Hi,

Thank you for your comment. Yes my certificate is trusted. I connected to mongo chef. It is working fine. But I couldn't connect to mongo db from pycharm. So I tried to connect it with remote ip and Installed all the required library. it is authenticated and ssl enabled. But everytime I am getting same error.

Thanks,

srinidhiupadhya commented 7 years ago

Hi,

Can anyone help me regarding this issue please?

Thanks

srinidhiupadhya commented 7 years ago

Hi, This could be the ssl connection issue. I was able to connect same configuration in studio 3t.