SCRAM-SHA-1 authentication failed for admin on admin from client 127.0.0.1 ; UserNotFound: Could not find user admin@admin
Does anyone have a similar issue before?
Also, after a crash of the mongod on the STARTUP2, I noticed that the "du -ah /mongodata" returns a much smaller size than when I previously checked. Could someone please explain what's going on here?
Many thanks!
Scarlett
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e866bc7c-3e8d-4cbf-90fc-a22b7bb2e86b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
Hi Scarlett
My only confusion is that during the initial set up, before I added the 2nd node to the replica, I also created the same users on this node, but somehow, during the syncing, I cannot log in. And this behaviour is not consistent, though most of the time, I cannot log in.
User logins are stored in the admin
database. If you subsequently designate this node as a member of a replica set and add it to an existing replica set, this node will then perform an initial sync.
The initial sync process starts by dropping all databases (except local
), which includes that admin
database that contains your user login data.
However, once that node reached the SECONDARY
state, it would have replicated the admin
database from the PRIMARY
, which subsequently allows you to login.
I believe cases where you cannot login into the new node is during the moments where the admin database hasn't yet transferred to the node.
You can verify this behaviour by:
--replSet
parameterrs.add(<node_2 address>)
in node (1)Best regards,
Kevin