Error
Error Code:
13388
MongoDB Error 13388: Stale Configuration Data
Description
Error 13388, 'Stale Config,' indicates that a `mongos` router has detected its cached configuration metadata is out of sync with the actual state of the sharded cluster's configuration servers. This typically occurs in sharded environments when there are issues with the config server replica set or network communication.
Error Message
Stale Config
Known Causes
4 known causesConfig Server Replica Set Issues
The configuration server replica set may be unhealthy, with no primary elected, members down, or data inconsistencies, leading to outdated cluster metadata.
Network Connectivity Problems
Intermittent or persistent network issues between the `mongos` router and the configuration servers can prevent updates to the cached configuration.
Clock Skew Among Servers
Significant time differences (clock skew) between configuration servers or between `mongos` and config servers can lead to inconsistencies in timestamps and stale data.
Manual Config Data Manipulation
Direct, unauthorized modifications to the configuration database (e.g., `config.collections`) can corrupt metadata and cause staleness.
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