dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

Name Conflict cause "Authentication failed" #98

Closed pynixwang closed 5 years ago

pynixwang commented 6 years ago

when mongo name same as app name(such as admin) will cause "Authentication failed", maybe dokku connect to app container, not mongo container.

josegonzalez commented 6 years ago

Can you show a quick way for me to reproduce this (the exact steps, not just a description)?

pynixwang commented 6 years ago

image

as show in picture, I have an app called admin, and create mongo named admin, no extra info printed and error when connecting, another name is ok, I do not know it conflict with admin app or just admin is a special word.

josegonzalez commented 6 years ago

Can you do:

dokku --force mongo:destroy admin
dokku --trace apps:create admin

And gist the output for me? I think admin is maybe a reserved word in mongodb, and thats why you are seeing errors.

pynixwang commented 6 years ago

https://gist.github.com/pynixwang/d55e587ec83516edc5b49116428522e3

pynixwang commented 6 years ago

command should be mongo:create

pynixwang commented 6 years ago

maybe admin can not be a db name.