I’m trying to install Mongodb Charts on-premises version 19.12 but faced to the following issue apparently regarding ssl certificates but don’t know where is the problem and whether the issue is related to problem in
Here is my situation when following the Official Guide
I’m able to proceed to step 9 and run
docker stack deploy -c charts-docker-swarm-19.12.1.yml mongodb-charts
but Stitch server failed to start and reports:
stitchServerRunning failure: Can't connect to Stitch Server at http://localhost:8080. Too many failed attempts. Last error: connect ECONNREFUSED 127.0.0.1:8080 .
Stitch startup logs using
docker exec -it $(docker container ls --filter name=_charts -q) cat /mongodb-charts/logs/stitch-startup.log
reads: error starting up servers: tls: private key does not match public key
Here are some more info:
metadatadatabase of Charts is located on the same Mongodb replica-set where the data exists.
- The replica has 5 members (Mongodb version is 4.0.14) and is created across 3 different regions on the cloud.
- Access to the replica is protected using
x509 auth mechanismis enabled. The connection works fine using
Nodejs Mongoosedriver as well
- The machine that hosts Mongodb Charts is able to successfully connect to the replica set using both
sslclientcertificatekeyfileparameters in its connection URI. The output of script that tests the connection string confirms this. (according to the output of Step 5) MongoDB connection URI successfully verified
- On my replica set I can see that a new database named
metadatais created by the Charts whenever I launch the container but the other databases are still missing:
I’m confused why the test connection script reports a valid URI and passes the ssl certificates to the replicaset properly but the main container fails to use it and discontinues the operation specially when the logs clearly shows that
Mongodb is reachable and in practice I can see that it could add a new database to the replica successfully.
Any ideas/suggestions/thoughts would be greatly appreciated!