-
Type: Question
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Client Side Encryption
-
None
Summary
we are trying to use Mongo DB CSFLE On Java. it works fine on our developer machine on windows. but, however it is not working when we deploy on Linux server. we are getting below error.
com.mongodb.MongoClientException: Exception in encryption library: Exception in encryption library: Timed out after 10000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27020, type=UNKNOWN, state=CONNECTING, exception=
{com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]","severity":"FAIL"}]}
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
MongoDB Java driver : 4.7.1
MongoDB-Crypt : 1.6.1
MongoDB.Bson : 4.7.0
How to Reproduce
Error happens when we deploy on Liunx server. our base image is redhat/ubi8
FROM docker-frameworkimage-rel.prodlb.travp.net/redhat.io/ubi8/openjdk-8:1.14-3
Additional Background
FLE is working fine on developer machine on windows. problem is only with server.
FLE works fine on both windows and Linux on .NET core. problem is only on Java