The first thing I’d check is whether the Charts image has been pulled down successfully. You can do this by running docker pull quay.io/mongodb/charts:19.12.2 before trying to deploy the stack. I’ve seen behaviour similar to what you’ve described when there are problems pulling the image due to network problems, low disk space, etc.
If you imported the image this way, I’d say it is no longer tied to its quay.io registry name. If you execute docker images it will show the expected names for all images. For example here are some of mine:
REPOSITORY TAG IMAGE ID CREATED SIZE
mongodb-charts-dev latest 683b657d6295 16 hours ago 656MB
mongo latest fb58c9bbce4e 3 days ago 493MB
mongo <none> ba0c2ff8d362 8 weeks ago 492MB
quay.io/mongodb/charts 19.12.2 bfd64537eef0 4 months ago 714MB
alpine latest a24bb4013296 5 months ago 5.57MB
If your Charts image is showing as just charts (or something else) instead of quay.io/mongodb/charts you’ll need to update your compose file to reference the local image name.
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)
I am seeing 3 errors here. However, i was able to generate a docker secret (charts-mongodb-uri) as part of the setup process. So not sure why i am seeing an error related to it. And i have no clue about the other 2 errors.
Thanks @Tej_R. The errors here are expected - when the container is run directly it doesn’t have access to the secrets or volumes. However this did confirm that the image itself is installed correctly.
After re-reading your initial post I picked up that you’re using Docker 1.13.1. This is a very old version, and as per the Charts documentation you need to be using version 17.06 or higher. So I suspect that may be why it’s not working.
Also in case you missed the announcement, please note that the on-prem release of Charts will only be supported until September 2021.
Looks like i am left with no other options. My company only allows us to use RHEL servers and Windows Server 2012 R2.
The docker version supported on RHEL is only 1.13.1. So, looks like this option is not viable.
I was researching on the possibility of setting up MongoDB and Charts on Windows Server 2012 R2. I can set up MongoDB v4.2 but looks like docker isn’t supported on 2012.
I saw the announcement about retirement of on-prem charts after Sep 2021. I felt, it would have been better if there wasn’t a dependency on docker for Charts.