Hi
I try it install MongDB Charts on my Centos 7.
My docker version is 19.03.6
After run docker stack deploy -c charts-docker-swarm-19.12.2.yml mongodb-charts
docker service ls always show this:
ID NAME MODE REPLICAS IMAGE PORTS
attyf7r08cx0 mongodb-charts_charts replicated 0/1 Quay *:80->80/tcp, *:443->443/tcp
and docker service log attyf7r08cx0 print nothing!
so I try to run docker run Quay
got this:
parsedArgs
installDir (â/mongodb-chartsâ)
log
salt
productNameAndVersion ({ productName: âMongoDB Charts Frontendâ, version: â1.9.1â })
gitHash (undefined)
supportWidgetAndMetrics (undefined)
tileServer (undefined)
tileAttributionMessage (undefined)
rawFeatureFlags (undefined)
stitchMigrationsLog ({ completedStitchMigrations: })
featureFlags ({})
chartsMongoDBUri failure: ENOENT: no such file or directory, open â/run/secrets/charts-mongodb-uriâ
tokens failure: ENOENT: no such file or directory, open â/mongodb-charts/volumes/keys/charts-tokens.jsonâ
encryptionKeyPath failure: ENOENT: no such file or directory, open â/mongodb-charts/volumes/keys/mongodb-charts.keyâ
lastAppJson ({})
stitchConfigTemplate
libMongoIsInPath (true)
Have anyone got the same errors? And how to fix it ?
Thanks!
hi, @chris, thanks for replying.
I do remember to execute the Step 6:
docker run --rm Quay charts-cli test-connection âmongodb://172.17.0.1â
MongoDB connection URI successfully verified.
Before starting Charts, please create a Docker Secret containing this connection URI using the following command:
echo âmongodb://172.17.0.1â | docker secret create charts-mongodb-uri -
[root@VM-186-157-centos /data/mongodb/mongodb-charts]# echo âmongodb://172.17.0.1â | docker secret create charts-mongodb-uri -
pv92cnbt4hlf9otoqx6ghnged
I followed every step guide and this worked on my Ubuntu18.04LTS.
But it failed on Centos 7.
The errors you saw when you started using docker run are expected, as the volumes and secrets are not mounted when you start this way. It is possible to mount the volumes with additional parameters, but it would likely be easier to figure out why docker stack deploy didnât work.
The most common cause of the 0/1 replicas is that the image is still in the process of being pulled down. Did you try this again once the image was definitely available locally?
Hi, @tomhollander
Thanks for replying.
Before stack deploy, I run docker pull quay.io/mongodb/charts:19.12.2 for getting charts image manually.
Here is my docker images outputs:
REPOSITORY TAG IMAGE ID CREATED SIZE
mongo latest ca8e14b1fda6 2 weeks ago 493MB
quay.io/mongodb/charts 19.12.2 bfd64537eef0 6 months ago 714MB
Do any else images are required for docker stack deploy ?