Troubleshooting MongoDB connection refused error in N4V FOR WEBI extensions

Anonymised summary of support ticket #295033 (2024-08-14)

Symptom

Error 'MongooseServerSelectionError: connect ECONNREFUSED' occurs when N4V FOR WEBI extensions (Node.js components) attempt to connect to a MongoDB instance on port 27017.

Environment

N4V FOR WEBI extensions running on Node.js, SAP BusinessObjects Web Intelligence 4.x, MongoDB instance (default port 27017).

Resolution

  1. Verify MongoDB service is running and accessible from the server hosting N4V FOR WEBI extensions.
  2. Check network connectivity between the Node.js server and MongoDB server (firewall, routing, etc.).
  3. Ensure MongoDB is configured to accept connections on port 27017 (default configuration).
  4. Review MongoDB authentication settings if applicable (username/password, roles).
  5. For SAP BusinessObjects 4.3 SP03 with BI LaunchPad integration, enable high trace logging in CMC -> Applications -> BI Launch pad -> Trace log settings and restart Tomcat to generate detailed logs.
  6. For direct /biprws access (RESTful API/SDK programs), set Log_Level=High in biprws.properties (located in INSTALLDIR/tomcat/webapps/biprws/WEB-INF/config/custom) and restart Tomcat. Logs will be generated in INSTALLDIR/tomcat with format TraceLog__.glf.
  7. For older versions (4.2, 4.3 SP00-SP02), check alternative log locations: $HOME/SBOP* or /sap_bobj/tomcat/bin/SBOPWebapp_BIlaunchpad* (Windows) / SBOP_biprws* (Windows) / $HOME/SBOP* (UNIX).

Other resolution

If the issue persists, collect MongoDB server logs and N4V FOR WEBI extension logs for further analysis.