I am trying to install MongoDB charts on my local (MacBook)
>cd mongodb-charts
>docker swarm init
>docker pull quay.io/mongodb/charts:19.12.1
>docker run --rm quay.io/mongodb/charts:19.12.1 charts-cli test-connection 'mongodb://username:password@hostname:27017/DATABASE?replicaSet=rd0&authSource=admin'
MongoDB connection URI successfully verified.
>echo "mongodb://username:password@hostname:27017/DATABASE?replicaSet=rd0&authSource=admin" | docker secret create charts-mongodb-uri -
>docker stack deploy -c charts-docker-swarm-19.12.1.yml mongodb-charts
Creating network mongodb-charts_backend
Creating service mongodb-charts_charts
>docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
44nfwa84c9ug mongodb-charts_charts replicated 1/1 quay.io/mongodb/charts:19.12.1 *:80->80/tcp, *:443->443/tcp
>docker exec -it $(docker container ls --filter name=_charts -q) charts-cli add-user --first-name "Admin" --last-name "Admin" --email "admin@optum.com" --password "admin1234" --role "UserAdmin"
add-user command error: An error occurred authenticating: request to http://localhost:8080/api/admin/v3.0/auth/providers/local-userpass/login failed, reason: connect ECONNREFUSED 127.0.0.1:8080
docker service logs 44nfwa84c9ug
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | parsedArgs
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | installDir (‘/mongodb-charts’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | log
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | salt
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | productNameAndVersion ({ productName: ‘MongoDB Charts Frontend’, version: ‘1.9.1’ })
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | gitHash (‘1a46f17f’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | supportWidgetAndMetrics (‘off’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | tileServer (undefined)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | tileAttributionMessage (undefined)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | rawFeatureFlags (undefined)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | encryptionKeyPath
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | featureFlags ({})
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | tokens
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchMigrationsLog ({ completedStitchMigrations: [ ‘stitch-1332’, ‘stitch-1897’, ‘stitch-2041’, ‘migrateStitchProductFlag’, ‘stitch-2041-local’, ‘stitch-2046-local’, ‘stitch-2055’, ‘multiregion’, ‘dropStitchLogLogIndexStarted’ ] })
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | chartsMongoDBUri
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchConfigTemplate
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | lastAppJson ({ stitchAppId: ‘5eab6b1a0ce2af366132fc26’, stitchClientAppId: ‘mongodb-charts-jhyce’, stitchGroupId: ‘5eab6b190ce2af366132fc14’, gitHash: ‘1a46f17f’, tenantId: ‘1f7ac5f8-7f37-4e8d-8796-5b3d70e498e8’, featureFlags: {}, tileAttributionMessage: ‘’, appName: ‘MongoDB Charts Frontend’, appVersion: ‘1.9.1’, deployDate: ‘Fri, 15 May 2020 16:42:36 GMT’, target: ‘on-prem’, telemetry: { enabled: false, stitch: { appId: ‘datawarehouseprod-compass-nqnxw’ }, intercom: { appId: ‘w5bmt65h’, enabled: true, panelEnabled: true } } })
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | existingInstallation (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | tenantId (‘1f7ac5f8-7f37-4e8d-8796-5b3d70e498e8’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | libMongoIsInPath (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | mongoDBReachable (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchMigrationsExecuted (‘not required’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | minimumVersionRequirement (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchConfig
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchConfigWritten (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchChildProcess
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | indexesCreated (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchServerRunning (true)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchAdminCreated (false)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | lastKnownVersion (‘1.9.1’)
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | existingClientAppIds ()
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | migrationsExecuted ({})
mongodb-charts_charts.1.lydkoixon6e7@docker-desktop | stitchUnconfigured failure: app “mongodb-charts-jhyce” not found. To reconfigure Charts with a fresh database, delete the mongodb-charts_keys volume and deploy again.
We are using MongoDB Version 4.0.5 community edition
How to fix this? @tomhollander any suggestion?