Socket exceptions connecting to MongoDB

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: Connectivity
    • Environment:
      Windows Web Server 2008 R2 (SP1)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have implemented a MongoDB based output cache provider for a hybrid ASP.NET web forms / MVC application.

      The basic provider was modelled on this https://msdn.microsoft.com/en-us/gg650661.aspx

      We modified the code to use the official C# provider (see attached)

      Since deployment, we have seen a number of these exceptions:

      System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <IP ADDRESS>>:27017

      There are no obvious networking issues in our live environment. The MongoDB server is also currently the ASP.NET session state server.

      Any pointers as to how to debug / configuration to check?

            Assignee:
            Craig Wilson
            Reporter:
            Matthew Evans [X]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: