Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable use of mongodb with credentials enforced (--auth) #5

Closed
referup-tarantegui opened this issue Sep 20, 2016 · 1 comment
Closed

Comments

@referup-tarantegui
Copy link

referup-tarantegui commented Sep 20, 2016

A mongodb stack with statsd container attached works fine. But when I'm enabling the use of credentials with --auth in mongodb. The statsd container remains in status restarting, these are the logs:

Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: goroutine 10 [running]:
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: panic(0x7d7140, 0xc8200b8bc0)
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: #011/usr/local/go/src/runtime/panic.go:481 +0x3e6
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: main.serverStatus(0xc8200171d0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: #011/usr/src/mgo-statsd/main.go:97 +0x2e1
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: main.main.func1(0xc820050740, 0x3b9aca00, 0xc8200171d0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x7ffe6cd82cfc, ...)
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: #011/usr/src/mgo-statsd/main.go:298 +0xc5
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: created by main.main
Sep 20 11:45:00 mongo1 docker/e50ce927e4ac[913]: #011/usr/src/mgo-statsd/main.go:307 +0xbe
Sep 20 11:45:07 mongo1 docker/e50ce927e4ac[913]: panic: not authorized on admin to execute command { serverStatus: 1 }

Can you provide some info for the use of credentials with statsd container.

@referup-tarantegui
Copy link
Author

I've seen that on --help

  -mongo_pass string
        MongoDB Password
  -mongo_user string
        MongoDB User

I'm closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant