Discussion:
Error creating charts users on mongo chart installation
(too old to reply)
m***@gmail.com
2018-11-28 17:35:00 UTC
Permalink
Im at stage 11 of the chart installation.

docker exec -it \ $(docker container ls --filter name=_charts -q) \
charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email
"<***@example.com>" --password "<Password>" \ --role "<UserAdmin|User>"


The above command is producing this error

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



when i run : sudo docker service logs mo_charts


i get this


Password:

***@linuxkit-025000000001 | ✔ parsedArgs

***@linuxkit-025000000001 | ✔ installDir
('/mongodb-charts')

***@linuxkit-025000000001 | ✔ log

***@linuxkit-025000000001 | ✔ existingInstallation
(true)

***@linuxkit-025000000001 | ✔ salt

***@linuxkit-025000000001 | ✔
productNameAndVersion ({ productName: 'MongoDB Charts', version: '0.10.0' })

***@linuxkit-025000000001 | ✔ gitHash ('872b2a4f')

***@linuxkit-025000000001 | ✔
supportWidgetAndMetrics ('on')

***@linuxkit-025000000001 | ✔
chartsTestAdminCreated

***@linuxkit-025000000001 | ✔ encryptionKeyPath

***@linuxkit-025000000001 | ✔ lastKnownVersion
('0.9.0')

***@linuxkit-025000000001 | ✔ chartsMongoDBUri

***@linuxkit-025000000001 | ✔ tokens

***@linuxkit-025000000001 | ✔ stitchConfigTemplate

***@linuxkit-025000000001 | ✔ stitchConfig

***@linuxkit-025000000001 | ✔ libMongoIsInPath
(true)

***@linuxkit-025000000001 | ✔ stitchConfigWritten
(true)

***@linuxkit-025000000001 | ✖ mongoDBReachable
failure: Can't connect to MongoDB at <Verified connection string URI from
step 5>. Too many failed attempts. Last error: Invalid schema, expected
`mongodb` or `mongodb+srv`




Any ideas what the issues could be?
--
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 mongodb-***@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/ab50018e-61e8-42d6-8ff7-ade3e6b14cf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Tom Hollander' via mongodb-user
2018-11-28 21:50:57 UTC
Permalink
Hey -

If you look at the error, it seems you used the exact string "<Verified
connection string URI from step 5>" as your URI. When you created the
secret you needed to replace this with the actual URI you wanted.
Please delete the secret using *docker secret rm charts-mongodb-uri* and
recreate it with the correct value, and then try deploying again.

Tom

On Thursday, November 29, 2018 at 8:11:55 AM UTC+11, marcmcgarryarm1234
Post by m***@gmail.com
Im at stage 11 of the chart installation.
docker exec -it \ $(docker container ls --filter name=_charts -q) \
charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<
The above command is producing this error
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
when i run : sudo docker service logs mo_charts
i get this
('/mongodb-charts')
existingInstallation (true)
productNameAndVersion ({ productName: 'MongoDB Charts', version: '0.10.0' })
supportWidgetAndMetrics ('on')
chartsTestAdminCreated
('0.9.0')
stitchConfigTemplate
(true)
stitchConfigWritten (true)
failure: Can't connect to MongoDB at <Verified connection string URI from
step 5>. Too many failed attempts. Last error: Invalid schema, expected
`mongodb` or `mongodb+srv`
Any ideas what the issues could be?
--
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 mongodb-***@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/f78777d2-87e5-43ff-948a-4aa8cfed920e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-11-29 11:38:21 UTC
Permalink
Hi Tom,
Thanks for getting back to me. I tried *docker secret rm charts-mongodb-uri* however
i got the following error

Error response from daemon: rpc error: code = InvalidArgument desc = secret
'charts-mongodb-uri' is in use by the following service: mo_charts


When i try to remove the mongochart image from docker it keeps bringing
itself back up again without me directing it to.


Any idea what my issues could be?
Post by 'Tom Hollander' via mongodb-user
Hey -
If you look at the error, it seems you used the exact string "<Verified
connection string URI from step 5>" as your URI. When you created the
secret you needed to replace this with the actual URI you wanted.
Please delete the secret using *docker secret rm charts-mongodb-uri* and
recreate it with the correct value, and then try deploying again.
Tom
On Thursday, November 29, 2018 at 8:11:55 AM UTC+11, marcmcgarryarm1234
Post by m***@gmail.com
Im at stage 11 of the chart installation.
docker exec -it \ $(docker container ls --filter name=_charts -q) \
charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<
"<UserAdmin|User>"
The above command is producing this error
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
when i run : sudo docker service logs mo_charts
i get this
('/mongodb-charts')
existingInstallation (true)
productNameAndVersion ({ productName: 'MongoDB Charts', version: '0.10.0' })
supportWidgetAndMetrics ('on')
chartsTestAdminCreated
('0.9.0')
stitchConfigTemplate
(true)
stitchConfigWritten (true)
failure: Can't connect to MongoDB at <Verified connection string URI from
step 5>. Too many failed attempts. Last error: Invalid schema, expected
`mongodb` or `mongodb+srv`
Any ideas what the issues could be?
--
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 mongodb-***@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/59e0e0d6-25f0-423f-82a6-811ebdf7a94d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-11-29 13:40:53 UTC
Permalink
Hi Tom

Got the issue sorted thanks to your help. Much appreciated!
Post by 'Tom Hollander' via mongodb-user
Hey -
If you look at the error, it seems you used the exact string "<Verified
connection string URI from step 5>" as your URI. When you created the
secret you needed to replace this with the actual URI you wanted.
Please delete the secret using *docker secret rm charts-mongodb-uri* and
recreate it with the correct value, and then try deploying again.
Tom
On Thursday, November 29, 2018 at 8:11:55 AM UTC+11, marcmcgarryarm1234
Post by m***@gmail.com
Im at stage 11 of the chart installation.
docker exec -it \ $(docker container ls --filter name=_charts -q) \
charts-cli add-user --first-name "<First>" --last-name "<Last>" \ --email "<
"<UserAdmin|User>"
The above command is producing this error
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
when i run : sudo docker service logs mo_charts
i get this
('/mongodb-charts')
existingInstallation (true)
productNameAndVersion ({ productName: 'MongoDB Charts', version: '0.10.0' })
supportWidgetAndMetrics ('on')
chartsTestAdminCreated
('0.9.0')
stitchConfigTemplate
(true)
stitchConfigWritten (true)
failure: Can't connect to MongoDB at <Verified connection string URI from
step 5>. Too many failed attempts. Last error: Invalid schema, expected
`mongodb` or `mongodb+srv`
Any ideas what the issues could be?
--
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 mongodb-***@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/57e0ddf3-feda-4466-bb63-27a5eba458f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...