Unicon-ELIAS 18 - Resolving "Could not establish connection to MongoDB Server" error after updating ELIAS 18

book

Article ID: CTX695868

calendar_today

Updated On:

Description

Solution:

  • Restart the "Scout Enterprise ELIAS" Service:
    • Go to Services on the server
    • Locate and restart the Scout Enterprise ELIAS service
  • Verify MongoDB Hostname and Port:
    • If the error persists, confirm the MongoDB hostname and port configuration
    • Try setting the hostname as localhost:27017 (default MongoDB port)
    • Restart the Scout Enterprise ELIAS service after making changes
  • Check Database Name:
    • Ensure the database name in the configuration is correct
    • By default, the database is named Elias-Database. However, some configurations may use a custom name, such as Elias
  • Further Assistance:
    • If the issue remains unresolved, contact support and send the mongod.cfg file located in the MongoDB installation folder:
      C:\Program Files\MongoDB\Server\6.0\bin\mongod.cfg


    • and  mongod.log file located in the MongoDB installation folder
      C:\Program Files\MongoDB\Server\6.0\log\mongod.log
    • This files can allow support to review the MongoDB port and other configurations.

Issue/Introduction

After updating ELIAS 18, users may encounter the following error message:

"Could not establish connection to mongodb server."

This issue can occur when using internal MongoDB and even if the MongoDB server service is running normally.

 

Additional Information

Confirming the correct hostname, port, and database name, followed by a service restart, should resolve the connection issue in most cases.