dokku-mongodb-plugin icon indicating copy to clipboard operation
dokku-mongodb-plugin copied to clipboard

mongoexport issue

Open nkalkounis opened this issue 11 years ago • 1 comments
trafficstars

I keep receiving a code 18 "auth fails" when trying to run mongoexport...any tips on connecting to dokku mongodb instance with mongoexport?

nkalkounis avatar May 13 '14 00:05 nkalkounis

I just ran into this issue two days ago actually - You need to specify --authenticationDatabase admin otherwise mongo authenticates against the the database you're trying to import/export (unless this is what you want not what you're expecting)

If you are trying to export as the admin then the next thing to know is the admin password is in $DOKKU_ROOT/.mongodb/admin_pw (or something like that, that's off the top of my head) so you will want to add -u admin -p (copy and paste the password or cat $DOKKU_ROOT/.mongodb/admin_pw)

edude03 avatar May 13 '14 14:05 edude03