docker exec -it \ $(docker container ls --filter name=_charts -q) \ charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<us...@example.com>" --password "<Password>" \ --role "<UserAdmin|User>"
sudo docker service logs mongodb-charts_charts.1.m3bgt3z2dunzqwv57e2pzhwmaecho "mongodb://host.docker.internal" | docker secret create charts-mongodb-uri -mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
docker exec -it \ $(docker container ls --filter name=_charts -q) \ charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<us...@example.com>" --password "<Password>" \ --role "<UserAdmin|User>"
add-user command error: An error occurred creating a user: An error occurred setting up the StitchMongoDBService: request to http://localhost:8080/api/admin/v3.0/auth/providers/local-userpass/login failed, reason: connect ECONNREFUSED 127.0.0.1:8080
sudo docker service logs mongodb-charts_charts
I get:
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ encryptionKeyPath
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ tokens
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfigTemplate
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfig
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfigWritten (true)
mongodb-charts_charts.1.v4c54g93fdpm@user | ✖ mongoDBReachable failure: Can't connect to MongoDB at mongodb://admin:pass...@127.0.0.1:27017/companies. Too many failed attempts. Last error: Password contains an illegal unescaped character
However, I don't have any illegal characters in the password....
I also used the following commands when installing:
sudo docker swarm initdocker pull quay.io/mongodb/charts:v0.9.0sudo mv charts-docker-compose-v0.9.0.yml ./mongodb-chartsdocker stack deploy -c charts-docker-compose-v0.9.0.yml mongodb-charts
Any ideas?
Hi Tom,I am getting a variant of the same error. When I run:
docker exec -it \ $(docker container ls --filter name=_charts -q) \ charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<us...@example.com>" --password "<Password>" \ --role "<UserAdmin|User>"I get:add-user command error: An error occurred creating a user: An error occurred setting up the StitchMongoDBService: request to http://localhost:8080/api/admin/v3.0/auth/providers/local-userpass/login failed, reason: connect ECONNREFUSED 127.0.0.1:8080
And when I check using:sudo docker service logs mongodb-charts_chartsI get:
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ encryptionKeyPath
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ tokens
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfigTemplate
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfig
mongodb-charts_charts.1.v4c54g93fdpm@user | ✔ stitchConfigWritten (true)
mongodb-charts_charts.1.v4c54g93fdpm@user | ✖ mongoDBReachable failure: Can't connect to MongoDB at mongodb://admin:password@127.0.0.1:27017/companies. Too many failed attempts. Last error: Password contains an illegal unescaped character
However, I don't have any illegal characters in the password....
I also used the following commands when installing:
sudo docker swarm init
Any ideas?
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/36cfda3b-b663-4551-9128-379b6399cc6a%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
Docker Version Host OS Hostname to use ------------------------------------------------------------- 18.03 Windows or MacOS host.docker.internal 17.06-17.12 MacOS docker.for.mac.localhost 17.06-17.12 Windows docker.for.win.localhost 17.06-18.03 Linux 172.17.0.1Tabular views of data is not supported in beta but it's something we'll be starting work on very soon.
db.survey_results_public.aggregate([{$group:{_id:"$IDE", count:{$sum:1}}}, {$sort:{count:-1}}])
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/64795977-7216-4f18-9e8f-bb79b6b154db%40googlegroups.com.
I managed to overcome that issue. However after I created user successfully, I could not access to the mongodb charts web application.
On Thu, 4 Apr 2019 at 06:02, 'Tom Hollander' via mongodb-user <mongod...@googlegroups.com> wrote:
--Hi Duc -Looking at your screenshot, I think you are using curly quotes as parameters to the command. Please make sure you are using regular straight quotes by typing them directly into the terminal rather than copy/pasting from another editor.Tom
On Thursday, April 4, 2019 at 8:53:52 AM UTC+11, Duc Nguyen wrote:Hi Tom,
I did as what the tutorial told and had this error in the image which told me to provide a valid email address.
I dont know how to solve this because I had tried multiple times. Hope you can help
Thank you
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.


Hi - yes we've had a few people report that. I'm guessing you're running MongoDB 3.4? If so please note the following from the install docs:If you run Charts with MongoDB version 3.4 as the metadata database, be sure to start mongod with the enableMajorityReadConcern option enabled. Later versions have this option enabled by default, but in version 3.4 you must set it manually or add it to a configuration file.We plan on modifying the installer to detect this situation in future versions, but if you follow this step it should work OK.
Tom
On Thursday, April 4, 2019 at 1:01:25 PM UTC+11, Duc Nguyen wrote:
I managed to overcome that issue. However after I created user successfully, I could not access to the mongodb charts web application.
On Thu, 4 Apr 2019 at 06:02, 'Tom Hollander' via mongodb-user <mongod...@googlegroups.com> wrote:
--Hi Duc -Looking at your screenshot, I think you are using curly quotes as parameters to the command. Please make sure you are using regular straight quotes by typing them directly into the terminal rather than copy/pasting from another editor.Tom
On Thursday, April 4, 2019 at 8:53:52 AM UTC+11, Duc Nguyen wrote:Hi Tom,
I did as what the tutorial told and had this error in the image which told me to provide a valid email address.
I dont know how to solve this because I had tried multiple times. Hope you can help
Thank you
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/64795977-7216-4f18-9e8f-bb79b6b154db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/84575d67-c1e1-4563-84c0-6fe4ff159f98%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/64795977-7216-4f18-9e8f-bb79b6b154db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
CHARTS_MONGODB_URI environment variable within
the container" but no success.