meta data for this page
MongoDB connection issues with N4V for Webi
Anonymised summary of support ticket #719255 (2025-07-25)
Symptom
After installing a new version, the application fails to connect to MongoDB, displaying errors such as 'MongooseServerSelectionError: connect ECONNREFUSED' and 'Operation buffering timed out'. MongoDB service appears stopped, but N4V functions despite the issue.
Environment
N4V for Webi with MongoDB integration enabled. MongoDB version 4.x may be affected by configuration issues.
Resolution
- Ensure MongoDB service is started before launching N4V services. Check MongoDB service status in the system services manager and restart it if necessary.
- If MongoDB is not required (e.g., no use of geocoding features), disable MongoDB in the configuration file: Modify 'Use_MongoDB = true' to 'Use_MongoDB = false' in the file located at 'Need4Viz odejs ode_modules eeds4vizackend esourcesackend_config.js'.
- If MongoDB is required and version 4.x is in use, consider upgrading to MongoDB version 7.x, which is the supported version for N4V.
Other resolution
MongoDB is primarily used for geocoding features (e.g., Google Maps integration). Disabling it may limit functionality related to address geocoding but will not affect core N4V operations.