are disabled. When they are enable I can connect to atlas and everything works. In the Atlas logs it seem that it receives an connection and then client immediately disconnects.
The error I constantly get is:
No suitable servers found (serverSelectionTryOnce set): [TLS handshake failed: Failed certificate verification calling hello on 'xxx.mongodb.net:27017'] [TLS handshake failed: Failed certificate verification calling hello on 'xxx.mongodb.net:27017'] [TLS handshake failed: Failed certificate verification calling hello on 'xxx.mongodb.net:27017']
I"m using docker alpine3.19 and php 8.3.7 ran on AWS linux2.
I have tried everything that came to my mind (and that has any reference on google) from checking if ssl is installed properly, downloading certificates and putting them to the ssl configs and providing cert file. My network config in the Atlas UI allows connecting from my IP ranges, downgrading PHP lib version, changing connection strings and trying out different options but none of it works.
My config on atlas does not require ca files and it used to work like that up until the big upgrade.
Does someone have any idea what can cause this error and possibly how to solve it?
This seems to be a case of SSL certificates not accessible / incorrect.
It maybe the case that your PHP environment doesn’t have the correct location for certificates. Could you run below command from your PHP environment and cross check the certificates location?
Ok I got it, i had to specify ca file path for the connection string, now when I have done that i get the similar error just a little bit less expressive:
failed certificate just became connection error
No suitable servers found (serverSelectionTryOnce set): [connection error calling hello on 'xxx.yyy.mongodb.net:27017'] [connection error calling hello on 'xxx.yyy.mongodb.net:27017'] [connection error calling hello on 'xxx.yyy.mongodb.net:27017']
At least we know it resolves the names in the cluster and certificate must be fine now but I’m not really sure how to debug this connection error string
There are no ssl errors which indicates that the problem might be somewhere in the PHP driver.
When running very minimal PHP script to reproduce it i get the ssl error every time but when doing the same with very minimal Node.js app it goes perfectly. So there must be something about php lib
The issue was in the libressl that my docker build was using, I replaced it with the openSSL and all of the sudden it started working like a charm. I guess mongo driver for php had some issues with compiling ssl layer or something related libressl.
Heloo everybody. I am a newbie in coding. We started using mongoDb together with MongoDb Compass and it was working until last week.
Now if I try to connect, I get the following message:
1357226088960:error:10000438:SSL routines:OPENSSL_internal:TLSV1_ALERT_INTERNAL_ERROR:…/…/third_party/boringssl/src/ssl/tls_record.cc:592:SSL alert number 80
I have abosolutely no idea what that means and how to deal with the issue. A while searching, this thread is what I found that I thought could be similar to what I am facing.
However, I have to admit that I could not understand how it was resolved at all.
Could somebody please help me resolve my issue? Thanks and have a nice day!
Hi Alex, Jhoney, sorry for the late reply. It seems like the email app on my mac also is having some issues. I just noticed it this morning.
Anyway, I was also already able to solve my mongoDB compass issue with the help of a friend. Apparently, my ISP changes my IP address regularly causing the failed connection.
Going to the “Network Access” under “Data Services” in cloud.mongodb and then clicking on the link “Add Current IP Address” took care of my issue.
Just the same, thanks a lot for your time and looking at my issue.