# "error": "create system users: failed to get mongo client

**URL:** <https://forums.percona.com/t/error-create-system-users-failed-to-get-mongo-client/17814>\
**Category:** Percona Operator for MongoDB\
**Created:** [October 3, 2022, 9:29am UTC](https://forums.percona.com/t/error-create-system-users-failed-to-get-mongo-client/17814 "2022-10-03T09:29:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reab](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@reab](https://forums.percona.com/u/reab)\
**Post date:** [October 3, 2022, 9:29am UTC](https://forums.percona.com/t/error-create-system-users-failed-to-get-mongo-client/17814/1 "2022-10-03T09:29:23Z")

</div>

I have a standalone mongodb that I want to migrate to Percona using Replication method as here:[Migrating MongoDB to Kubernetes - Percona Database Performance Blog](https://www.percona.com/blog/migrating-mongodb-to-kubernetes)

The very last step is where I’m having an issue. I have done the Primary Cutover and deleted the standalone replicaset once the repilcation is done. Now I need to manage the cluster by Percona operator. So I updated the cr.yaml file and set ` unmanaged: false`

However, Operator keeps showing this error:

`ERROR controller_psmdb failed to reconcile cluster {"Request.Namespace": "percona-dbs", "Request.Name": "psmdb-db", "replset": "rs0", "error": "create system users: failed to get mongo client: ping mongo: connection() error occured during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed) Authentication failed.", "errorVerbose": "connection() error occured during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism \"SCRAM-SHA-1\": (AuthenticationFailed) Authentication failed.`

It seems it can not connect to mongo client due to authentication issue. See [here](https://github.com/percona/percona-server-mongodb-operator/blob/3ee66ad5f3e02269161b3db6767a8e118dd9ac7f/pkg/controller/perconaservermongodb/mgo.go#L670). What could be the reason?

Thanks

---

<div class="post-metadata">

**Author:** ![reab](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@reab](https://forums.percona.com/u/reab)\
**Post date:** [October 3, 2022, 1:30pm UTC](https://forums.percona.com/t/error-create-system-users-failed-to-get-mongo-client/17814/2 "2022-10-03T13:30:38Z")

</div>

Issue is fixed.

It turns out there’s a syntax issue with user admin

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [October 19, 2022, 6:20pm UTC](https://forums.percona.com/t/error-create-system-users-failed-to-get-mongo-client/17814/3 "2022-10-19T18:20:53Z")

</div>

Hello @reab ,

could you please help me understand what exactly happened? Is it a syntax issue on our end?
