Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14700

copydbgetnonce over SSL fails with "socket exception [CONNECT_ERROR]"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Security
    • None
    • ALL
    • Hide

      On Mac OS X on the current master branch, hash 00b5c825, start mongod:

      ./mongod --nojournal --sslOnNormalPorts --sslPEMKeyFile jstests/libs/server.pem --sslCAFile jstests/libs/ca.pem --sslCRLFile jstests/libs/crl.pem --auth

      Connect with the shell:

      ./mongo --ssl --sslPEMKeyFile jstests/libs/client.pem admin

      Create a user:

      > db.createUser({user: 'admin', pwd: 'pwd', roles: [{role: 'root', db: 'admin'}]})

      Run "copydbgetnonce":

      > db.runCommand({copydbgetnonce: 1, fromhost: null})
      {
      	"errmsg" : "exception: socket exception [CONNECT_ERROR] for ",
      	"code" : 9001,
      	"ok" : 0
      }

      Show
      On Mac OS X on the current master branch, hash 00b5c825, start mongod: ./mongod --nojournal --sslOnNormalPorts --sslPEMKeyFile jstests/libs/server.pem --sslCAFile jstests/libs/ca.pem --sslCRLFile jstests/libs/crl.pem --auth Connect with the shell: ./mongo --ssl --sslPEMKeyFile jstests/libs/client.pem admin Create a user: > db.createUser({user: 'admin', pwd: 'pwd', roles: [{role: 'root', db: 'admin'}]}) Run "copydbgetnonce": > db.runCommand({copydbgetnonce: 1, fromhost: null}) { "errmsg" : "exception: socket exception [CONNECT_ERROR] for ", "code" : 9001, "ok" : 0 }

    Description

      When a client connects to mongod over SSL and executes the "copydbgetnonce" command, the server responds with the error:

      {
      	"errmsg" : "exception: socket exception [CONNECT_ERROR] for ",
      	"code" : 9001,
      	"ok" : 0
      }

      The client-server connection itself works.

      Attachments

        Activity

          People

            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: