Error
Error Code:
214
MongoDB Error 214: Authentication Restriction Unmet
Description
MongoDB Error 214, 'Authentication Restriction Unmet', indicates that the authenticated user or connecting client has failed to satisfy one or more configured security restrictions. This typically occurs when a user attempts to connect or perform an action from an unauthorized IP address, or lacks a required role or privilege for the specific operation.
Error Message
Authentication Restriction Unmet
Known Causes
4 known causesUnauthorized IP Address
The client is attempting to connect from an IP address not whitelisted in the MongoDB server's network access configuration.
Insufficient User Roles
The authenticated user lacks the necessary roles or privileges defined for the specific database, collection, or operation being attempted.
Auth Mechanism Restriction
The MongoDB server is configured to only allow specific authentication mechanisms, and the client is attempting to use a disallowed one.
Client Certificate Mismatch
When using x.509 authentication, the client certificate does not meet the required subject name or issuer restrictions.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service