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

mongod crashes when rs.initiate() called without arguments

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.7.5
    • Replication, Stability
    • None
    • OS X 10.6.6, 32bit prebuilt server from website
    • OS X

    Description

      monogd dies when issuing 'rs.initiate()' from shell. Would have expected an error message but not death.

      ./bin/mongod --replSet sample --port 23001 --dbpath /data --auth --keyFile /data/replicaPassphrase.txt --oplogSize=200 --smallfiles --rest --fork --logpath /data/log/sample.log

      ./bin/mongo --port 23001
      MongoDB shell version: 1.7.5
      connecting to: 127.0.0.1:23001/test
      > rs.initiate();
      Thu Feb 10 10:15:53 DBClientCursor::init call() failed
      Thu Feb 10 10:15:53 query failed : admin.$cmd

      { replSetInitiate: undefined }

      to: 127.0.0.1:23001
      Thu Feb 10 10:15:53 Error: error doing query: failed shell/collection.js:150
      Thu Feb 10 10:15:53 trying reconnect to 127.0.0.1:23001
      Thu Feb 10 10:15:53 reconnect 127.0.0.1:23001 failed couldn't connect to server 127.0.0.1:23001

      From the log file:

      Thu Feb 10 10:15:47 [initandlisten] MongoDB starting : pid=30903 port=23001 dbpath=/data/nz1-e 32-bit

        • NOTE: This is a development version (1.7.5) of MongoDB.
        • Not recommended for production.

      Thu Feb 10 10:15:47 [initandlisten] db version v1.7.5, pdfile version 4.5
      Thu Feb 10 10:15:47 [initandlisten] git version: 7ccac7109dccc0384b761f6b02b9788342c5eabb
      Thu Feb 10 10:15:47 [initandlisten] sys info: Darwin broadway.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40
      Thu Feb 10 10:15:47 [initandlisten] waiting for connections on port 23001
      Thu Feb 10 10:15:47 [websvr] web admin interface listening on port 24001
      Thu Feb 10 10:15:47 [initandlisten] connection accepted from 127.0.0.1:50457 #1
      Thu Feb 10 10:15:47 [startReplSets] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)
      Thu Feb 10 10:15:47 [startReplSets] replSet info you may need to run replSetInitiate – rs.initiate() in the shell – if that is not already done
      Thu Feb 10 10:15:50 [initandlisten] connection accepted from 127.0.0.1:50458 #2
      Thu Feb 10 10:15:53 [conn2] replSet replSetInitiate admin command received from client
      Thu Feb 10 10:15:53 [conn2] note: no users configured in admin.system.users, allowing localhost access
      Thu Feb 10 10:15:53 [conn2] replSet info initiate : no configuration specified. Using a default configuration for the set
      Thu Feb 10 10:15:53 [conn2] replSet created this configuration for initiation : { _id: "sample", members: [

      { _id: 0, host: "blah.local:23001" }

      ] }
      Thu Feb 10 10:15:53 [conn2] replSet replSetInitiate config object parses ok, 1 members specified
      Thu Feb 10 10:15:53 [initandlisten] connection accepted from 10.211.55.2:50459 #3
      Thu Feb 10 10:15:53 [conn2] replSet replSetInitiate all members seem up
      Thu Feb 10 10:15:53 [conn2] ******
      Thu Feb 10 10:15:53 [conn2] creating replication oplog of size: 200MB...
      Thu Feb 10 10:15:53 Got signal: 6 (Abort trap).

      Thu Feb 10 10:15:53 Backtrace:
      0x47008c 0x9700e46b 0xffffffff 0x46a43b 0x47108b 0x47187a 0x47350b 0x2176
      0 mongod 0x0047008c _ZN5mongo10abruptQuitEi + 396
      1 libSystem.B.dylib 0x9700e46b _sigtramp + 43
      2 ??? 0xffffffff 0x0 + 4294967295
      3 mongod 0x0046a43b _ZN5mongo6listenEi + 219
      4 mongod 0x0047108b _ZN5mongo14_initAndListenEiPKc + 2171
      5 mongod 0x0047187a _ZN5mongo13initAndListenEiPKc + 42
      6 mongod 0x0047350b main + 4939
      7 mongod 0x00002176 start + 54

      Thu Feb 10 10:15:53 dbexit:
      Thu Feb 10 10:15:53 [initandlisten] shutdown: going to close listening sockets...

      This is on OS X 10.6.6, 32bit binary. Haven't tried on other environments.

      Attachments

        1. runBug.sh
          0.6 kB
        2. test.js
          0.3 kB

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            mikec Mike Copley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: