Knowledge Article 119471

Return
  • Title

    MongoDB Driver Error: Unable to Connect to Server Local Host
  • Description

    You may see an error message in the UI that contains the following phrase:

    “MongoDB.Driver.MongoConnectionException: Unable to connect to server localhost:27017”

    Restarting the MongoDB service does not solve this issue.

    This issue is most likely caused by inconsistencies in one or both of the following files:

    MongoDB.Bson.dll
    MongoDB.Driver.dll

    To ensure this is indeed the issue, review your Core log files for the driver-related information presence:

    ERROR 2013-03-27T11:00:26 [177] – WCFClientBase.EncapsulatedException ()
    Caught an exception deserializing encapsulated exception of type ‘Replay.Core.Contracts.Storage.StorageConnectionException’
    System.Runtime.Serialization.SerializationException: Unable to find assembly ‘MongoDB.Driver, Version=1.4.2.4500, Culture=neutral, PublicKeyToken=f686731cfb9cc103′.

  • Resolution

    To resolve this issue, complete the folllowing steps:

    • Stop the Core Service.
    • Rename the original MongoDB file and move it to another folder (by default it is located on C:\Program Files\AppRecovery\Core\CoreService).
    • Run a Core Repair.
    • Restart the Core Service and ensure that events are working.

    You may also remove the inconsistent DLL files and repair the Core installation, provided you have not applied any custom binaries to your installation.

Product(s):
AppAssure
5.3.7, 5.3.6, 5.3.5, 5.3.4, 5.3.3, 5.3.2, 5.3.1, 5.3, 5.2

Topic(s):
Technical Solutions

Article History:
Created on: 1/27/2014
Last Update on: 2/22/2014

Feedback submitted.

Did this article help?

[Select Rating]

Thank you for your rating!

Close

Request or Create a KB Article »