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

SSL mongos, add non-ssl shard, no informative message, mongos crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      ubuntu@ip-10-227-118-139:~/mongodb-linux-x86_64-subscription-ubuntu1104-2.4.0-rc0$ ./bin/mongod --dbpath ./data/ --replSet rs1 
      Tue Feb 26 14:05:28.943 [initandlisten] MongoDB starting : pid=10791 port=27017 dbpath=./data/ 64-bit host=ip-10-227-118-139

      mongos> sh.addShard("rs1/ip-10-227-197-90")
      {
      	"ok" : 0,
      	"errmsg" : "couldn't connect to new shard socket exception [CONNECT_ERROR] for rs1/ip-10-227-197-90:27017"
      }
      mongos> sh.addShard("rs1/ip-10-227-197-90")
      Tue Feb 26 14:04:53.309 DBClientCursor::init call() failed
      Tue Feb 26 14:04:53.310 Error: error doing query: failed src/mongo/shell/query.js:78
      Tue Feb 26 14:04:53.310 trying reconnect to 127.0.0.1:27017
      Tue Feb 26 14:04:53.311 reconnect 127.0.0.1:27017 failed couldn't connect to server 127.0.0.1:27017
      > 

      Tue Feb 26 14:04:53.292 [conn5]   Fatal Assertion 16697
      0x9fa853 0x9a9c93 0x9e76bd 0x9e94e4 0x9e1a91 0x6ba4a5 0x6bb115 0x6bb8f9 0x6cd0b8 0x6cd601 0x6d3cdb 0x6d3ea8 0x6bb965 0x6a9b4e 0x766149 0x8f5e40 0x899ea4 0x90cb23 0x8a4746 0x9359c0 
       ./bin/mongos(_ZN5mongo15printStackTraceERSo+0x23) [0x9fa853]
       ./bin/mongos(_ZN5mongo13fassertFailedEi+0x63) [0x9a9c93]
       ./bin/mongos(_ZN5mongo10SSLManager12_ssl_connectEP6ssl_st+0x6d) [0x9e76bd]
       ./bin/mongos(_ZN5mongo10SSLManager7connectEi+0x24) [0x9e94e4]
       ./bin/mongos(_ZN5mongo6Socket6secureEPNS_10SSLManagerE+0x31) [0x9e1a91]
       ./bin/mongos(_ZN5mongo18DBClientConnection8_connectERSs+0x415) [0x6ba4a5]
       ./bin/mongos(_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortERSs+0xc5) [0x6bb115]
       ./bin/mongos(_ZNK5mongo16ConnectionString7connectERSsd+0x429) [0x6bb8f9]
       ./bin/mongos(_ZN5mongo17ReplicaSetMonitor25_populateHosts_inSetsLockERKSt6vectorINS_11HostAndPortESaIS2_EE+0x1b8) [0x6cd0b8]
       ./bin/mongos(_ZN5mongo17ReplicaSetMonitorC1ERKSsRKSt6vectorINS_11HostAndPortESaIS4_EE+0x1d1) [0x6cd601]
       ./bin/mongos(_ZN5mongo17ReplicaSetMonitor14createIfNeededERKSsRKSt6vectorINS_11HostAndPortESaIS4_EE+0xfb) [0x6d3cdb]
       ./bin/mongos(_ZN5mongo18DBClientReplicaSetC2ERKSsRKSt6vectorINS_11HostAndPortESaIS4_EEd+0x178) [0x6d3ea8]
       ./bin/mongos(_ZNK5mongo16ConnectionString7connectERSsd+0x495) [0x6bb965]
       ./bin/mongos(_ZN5mongo16DBConnectionPool3getERKSsd+0xbe) [0x6a9b4e]
       ./bin/mongos(_ZN5mongo18ScopedDbConnection29getInternalScopedDbConnectionERKSsd+0x79) [0x766149]
       ./bin/mongos(_ZN5mongo4Grid8addShardEPSsRKNS_16ConnectionStringExRSs+0xb0) [0x8f5e40]
       ./bin/mongos(_ZN5mongo11dbgrid_cmds8AddShard3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x464) [0x899ea4]
       ./bin/mongos(_ZN5mongo7Command22execCommandClientBasicEPS0_RNS_11ClientBasicEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x973) [0x90cb23]
       ./bin/mongos(_ZN5mongo7Command20runAgainstRegisteredEPKcRNS_7BSONObjERNS_14BSONObjBuilderEi+0x216) [0x8a4746]
       ./bin/mongos(_ZN5mongo14SingleStrategy7queryOpERNS_7RequestE+0x470) [0x9359c0]
      Tue Feb 26 14:04:53.299 [conn5] 
       
      ***aborting after fassert() failure
       
       
      Received signal 6
      Backtrace: 0x9f9472 0x7fc9943ad4a0 0x7fc9943ad425 0x7fc9943b0b8b 0x9a9cce 0x9e76bd 0x9e94e4 0x9e1a91 0x6ba4a5 0x6bb115 0x6bb8f9 0x6cd0b8 0x6cd601 0x6d3cdb 0x6d3ea8 0x6bb965 0x6a9b4e 0x766149 0x8f5e40 0x899ea4 
      ./bin/mongos(_ZN5mongo17printStackAndExitEi+0x62)[0x9f9472]
      /lib/x86_64-linux-gnu/libc.so.6(+0x364a0)[0x7fc9943ad4a0]
      /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35)[0x7fc9943ad425]
      /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b)[0x7fc9943b0b8b]
      ./bin/mongos(_ZN5mongo13fassertFailedEi+0x9e)[0x9a9cce]
      ./bin/mongos(_ZN5mongo10SSLManager12_ssl_connectEP6ssl_st+0x6d)[0x9e76bd]
      ./bin/mongos(_ZN5mongo10SSLManager7connectEi+0x24)[0x9e94e4]
      ./bin/mongos(_ZN5mongo6Socket6secureEPNS_10SSLManagerE+0x31)[0x9e1a91]
      ./bin/mongos(_ZN5mongo18DBClientConnection8_connectERSs+0x415)[0x6ba4a5]
      ./bin/mongos(_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortERSs+0xc5)[0x6bb115]
      ./bin/mongos(_ZNK5mongo16ConnectionString7connectERSsd+0x429)[0x6bb8f9]
      ./bin/mongos(_ZN5mongo17ReplicaSetMonitor25_populateHosts_inSetsLockERKSt6vectorINS_11HostAndPortESaIS2_EE+0x1b8)[0x6cd0b8]
      ./bin/mongos(_ZN5mongo17ReplicaSetMonitorC1ERKSsRKSt6vectorINS_11HostAndPortESaIS4_EE+0x1d1)[0x6cd601]
      ./bin/mongos(_ZN5mongo17ReplicaSetMonitor14createIfNeededERKSsRKSt6vectorINS_11HostAndPortESaIS4_EE+0xfb)[0x6d3cdb]
      ./bin/mongos(_ZN5mongo18DBClientReplicaSetC2ERKSsRKSt6vectorINS_11HostAndPortESaIS4_EEd+0x178)[0x6d3ea8]
      ./bin/mongos(_ZNK5mongo16ConnectionString7connectERSsd+0x495)[0x6bb965]
      ./bin/mongos(_ZN5mongo16DBConnectionPool3getERKSsd+0xbe)[0x6a9b4e]
      ./bin/mongos(_ZN5mongo18ScopedDbConnection29getInternalScopedDbConnectionERKSsd+0x79)[0x766149]
      ./bin/mongos(_ZN5mongo4Grid8addShardEPSsRKNS_16ConnectionStringExRSs+0xb0)[0x8f5e40]
      ./bin/mongos(_ZN5mongo11dbgrid_cmds8AddShard3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x464)[0x899ea4]
      ===

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gregor Gregor Macadam
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: