# \[Self-hosted Mender 1.7\] useradm failed to open mgo session for remote db

**URL:** <https://hub.mender.io/t/self-hosted-mender-1-7-useradm-failed-to-open-mgo-session-for-remote-db/243>\
**Category:** General Discussions\
**Created:** [February 20, 2019, 4:27pm UTC](https://hub.mender.io/t/self-hosted-mender-1-7-useradm-failed-to-open-mgo-session-for-remote-db/243 "2019-02-20T16:27:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [February 20, 2019, 4:27pm UTC](https://hub.mender.io/t/self-hosted-mender-1-7-useradm-failed-to-open-mgo-session-for-remote-db/243/1 "2019-02-20T16:27:52Z")

</div>

I have been using Mongo Atlas for awhile now but on rebuilding i cant seem to reconnect to mongo atlas, so running the command docker exec mender-useradm /usr/bin/useradm create-user --username=admin --password=xxxx fails ive tried running it with --debug but nothing shows any error but i know it can connect because it creates a new collection and sub collection migration\_info. how can i debug this connection?

---

<div class="post-metadata">

**Author:** ![bbbh](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bbbh](https://hub.mender.io/u/bbbh)\
**Post date:** [February 20, 2019, 9:00pm UTC](https://hub.mender.io/t/self-hosted-mender-1-7-useradm-failed-to-open-mgo-session-for-remote-db/243/2 "2019-02-20T21:00:30Z")

</div>

nevermind i have to run useradm --config=/etc/useradm/config.yml --username … and it worked
