Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-854

Remote server has closed the connection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Works as Designed
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: pecl-mongo
    • Labels:
      None
    • Environment:
      Client: Ubuntu x64, Mongo::VERSION === 1.4.1
      Server: Ubuntu x32, standalone server (v2.4.4) with authentication
    • # Replies:
      17
    • Last comment by Customer:
      true

      Description

      After server upgrade to 2.4.4 connections started failing at random with the "Remote server has closed the connection" exception. Server logs show nothing out of the ordinary. Bug doesn't seem to occur when requests are done on the same machine as the server.

      Might be somehow related to PHP-654 but this one happens with higher frequency.

      PHP log:

      Array
      (
          [0] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42317700
                  [message] => Parsing mongodb://domain.com:27017
                  [level] => 2
                  [module] => 16
              )
       
          [1] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42328500
                  [message] => - Found node: domain.com:27017
                  [level] => 2
                  [module] => 16
              )
       
          [2] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42331000
                  [message] => - Connection type: STANDALONE
                  [level] => 2
                  [module] => 16
              )
       
          [3] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42333100
                  [message] => - Found option 'username': 'user-name'
                  [level] => 2
                  [module] => 16
              )
       
          [4] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42334700
                  [message] => - Found option 'password': 'password?'
                  [level] => 2
                  [module] => 16
              )
       
          [5] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42336200
                  [message] => - Found option 'db': 'user-name'
                  [level] => 2
                  [module] => 16
              )
       
          [6] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42358000
                  [message] => mongo_get_read_write_connection: finding a STANDALONE connection
                  [level] => 2
                  [module] => 2
              )
       
          [7] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42360000
                  [message] => found connection domain.com:27017;-;user-name/user-name/3fe112babcc1682bddfc4831a271a3e4;2520 (looking for domain.com:27017;-;user-name/user-name/3fe112babcc1682bddfc4831a271a3e4;2520)
                  [level] => 4
                  [module] => 2
              )
       
          [8] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42360900
                  [message] => is_ping: pinging domain.com:27017;-;user-name/user-name/3fe112babcc1682bddfc4831a271a3e4;2520
                  [level] => 2
                  [module] => 2
              )
       
          [9] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42368200
                  [message] => mongo_connection_destroy: Destroying connection object for domain.com:27017;-;user-name/user-name/3fe112babcc1682bddfc4831a271a3e4;2520
                  [level] => 4
                  [module] => 2
              )
       
          [10] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42369400
                  [message] => mongo_connection_destroy: Closing socket for domain.com:27017;-;user-name/user-name/3fe112babcc1682bddfc4831a271a3e4;2520.
                  [level] => 4
                  [module] => 2
              )
       
          [11] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42372500
                  [message] => Couldn't connect to 'domain.com:27017': Remote server has closed the connection
                  [level] => 1
                  [module] => 2
              )
       
          [12] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42373800
                  [message] => finding candidate servers
                  [level] => 4
                  [module] => 1
              )
       
          [13] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42374500
                  [message] => - all servers
                  [level] => 4
                  [module] => 1
              )
       
          [14] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42375200
                  [message] => filter_connections: adding connections:
                  [level] => 4
                  [module] => 1
              )
       
          [15] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42375800
                  [message] => filter_connections: done
                  [level] => 4
                  [module] => 1
              )
       
          [16] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42376500
                  [message] => limiting by seeded/discovered servers
                  [level] => 4
                  [module] => 1
              )
       
          [17] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42377500
                  [message] => limiting by seeded/discovered servers: done
                  [level] => 4
                  [module] => 1
              )
       
          [18] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42378200
                  [message] => limiting by credentials
                  [level] => 4
                  [module] => 1
              )
       
          [19] => Array
              (
                  [date] => 2013-06-12 13:12:33.0.42378800
                  [message] => limiting by credentials: done
                  [level] => 4
                  [module] => 1
              )
       
      )

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bjori Hannes Magnusson
              Reporter:
              karolis@iwsolutions.ie Karolis Daužickas
              Participants:
              Last commenter:
              Walid
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 6 weeks, 2 days ago
                Date of 1st Reply: