2016-12-09T21:49:57.757+0100 I CONTROL [initandlisten] MongoDB starting : pid=84057 port=31002 dbpath=./db/31002 64-bit host=Christians-MacBook-Pro.local 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] db version v3.2.11 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] git version: 009580ad490190ba33d1c6253ebd8d91808923e4 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] allocator: system 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] modules: none 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] build environment: 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] distarch: x86_64 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] target_arch: x86_64 2016-12-09T21:49:57.758+0100 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 31002 }, replication: { replSet: "rs" }, storage: { dbPath: "./db/31002" }, systemLog: { destination: "file", path: "db/31002.log" } } 2016-12-09T21:49:57.759+0100 I - [initandlisten] Detected data files in ./db/31002 created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2016-12-09T21:49:57.759+0100 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=9G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2016-12-09T21:49:58.232+0100 I STORAGE [initandlisten] Starting WiredTigerRecordStoreThread local.oplog.rs 2016-12-09T21:49:58.233+0100 I STORAGE [initandlisten] The size storer reports that the oplog contains 44525 records totaling to 4674297 bytes 2016-12-09T21:49:58.233+0100 I STORAGE [initandlisten] Sampling from the oplog between Dec 8 18:04:19:1 and Dec 9 21:47:00:2 to determine where to place markers for truncation 2016-12-09T21:49:58.233+0100 I STORAGE [initandlisten] Taking 2 samples and assuming that each section of oplog contains approximately 174340 records totaling to 18302457 bytes 2016-12-09T21:49:58.246+0100 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory './db/31002/diagnostic.data' 2016-12-09T21:49:58.246+0100 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker 2016-12-09T21:49:58.247+0100 I NETWORK [initandlisten] waiting for connections on port 31002 2016-12-09T21:49:58.249+0100 I REPL [ReplicationExecutor] New replica set config in use: { _id: "rs", version: 7, protocolVersion: 1, members: [ { _id: 0, host: "localhost:12345", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 100.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "localhost:31001", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 2, host: "localhost:31002", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId('5849929337536d4b3f1a9485') } } 2016-12-09T21:49:58.249+0100 I REPL [ReplicationExecutor] This node is localhost:31002 in the config 2016-12-09T21:49:58.249+0100 I REPL [ReplicationExecutor] transition to STARTUP2 2016-12-09T21:49:58.249+0100 I REPL [ReplicationExecutor] Starting replication applier threads 2016-12-09T21:49:58.249+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:49:58.249+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:49:58.249+0100 I REPL [ReplicationExecutor] transition to RECOVERING 2016-12-09T21:49:58.250+0100 I REPL [ReplicationExecutor] transition to SECONDARY 2016-12-09T21:49:58.250+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:12345 2016-12-09T21:49:58.250+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:49:58.251+0100 I REPL [ReplicationExecutor] Member localhost:12345 is now in state SECONDARY 2016-12-09T21:49:58.251+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:50:01.576+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60555 #1 (1 connection now open) 2016-12-09T21:50:02.390+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60557 #2 (2 connections now open) 2016-12-09T21:50:02.420+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60559 #3 (3 connections now open) 2016-12-09T21:50:08.257+0100 I REPL [ReplicationExecutor] Member localhost:12345 is now in state PRIMARY 2016-12-09T21:50:13.292+0100 I REPL [ReplicationExecutor] syncing from: localhost:31001 2016-12-09T21:50:13.293+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31001 2016-12-09T21:50:13.294+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31001 2016-12-09T21:50:13.296+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31001 2016-12-09T21:50:43.319+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:50:43.319+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:46.295+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:50:48.320+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state PRIMARY 2016-12-09T21:50:48.335+0100 I REPL [ReplicationExecutor] syncing from: localhost:31001 2016-12-09T21:50:48.336+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31001 2016-12-09T21:50:50.725+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60603 #4 (4 connections now open) 2016-12-09T21:50:50.726+0100 I NETWORK [conn4] end connection 127.0.0.1:60603 (3 connections now open) 2016-12-09T21:50:50.726+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60604 #5 (4 connections now open) 2016-12-09T21:50:50.728+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60606 #6 (5 connections now open) 2016-12-09T21:50:55.709+0100 I NETWORK [conn1] end connection 127.0.0.1:60555 (4 connections now open) 2016-12-09T21:50:55.710+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Failed to close stream: Socket is not connected 2016-12-09T21:50:55.710+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:50:55.710+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:55.710+0100 I ASIO [ReplicationExecutor] dropping unhealthy pooled connection to localhost:31001 2016-12-09T21:50:55.710+0100 I ASIO [ReplicationExecutor] after drop, pool was empty, going to spawn some connections 2016-12-09T21:50:55.710+0100 I ASIO [ReplicationExecutor] Failed to close stream: Socket is not connected 2016-12-09T21:50:55.710+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:50:55.711+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60610 #7 (5 connections now open) 2016-12-09T21:50:55.713+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60615 #8 (6 connections now open) 2016-12-09T21:50:55.713+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:50:55.713+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60619 #9 (7 connections now open) 2016-12-09T21:50:55.714+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:50:55.735+0100 I NETWORK [conn6] end connection 127.0.0.1:60606 (6 connections now open) 2016-12-09T21:51:01.301+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:51:03.324+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:05.679+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:51:05.680+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:51:05.680+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:05.680+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:51:05.681+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:05.681+0100 I REPL [ReplicationExecutor] VoteRequester: Got no vote from localhost:31001 because: already voted for another candidate this term, resp:{ term: 103, voteGranted: false, reason: "already voted for another candidate this term", ok: 1.0 } 2016-12-09T21:51:05.715+0100 I NETWORK [conn5] end connection 127.0.0.1:60604 (5 connections now open) 2016-12-09T21:51:06.306+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:15.683+0100 I REPL [ReplicationExecutor] VoteRequester: Got failed response from localhost:12345: ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:51:15.683+0100 I REPL [ReplicationExecutor] not becoming primary, we received insufficient votes 2016-12-09T21:51:15.715+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:16.311+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:51:25.682+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:25.683+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Operation timed out 2016-12-09T21:51:25.683+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:25.683+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:26.305+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:27.254+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:51:27.255+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:51:27.255+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:27.255+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:51:27.256+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:27.256+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 105 2016-12-09T21:51:27.256+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:51:27.257+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:27.808+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:51:31.316+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:51:31.821+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60648 #10 (6 connections now open) 2016-12-09T21:51:31.822+0100 I NETWORK [conn10] end connection 127.0.0.1:60648 (5 connections now open) 2016-12-09T21:51:31.822+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60649 #11 (6 connections now open) 2016-12-09T21:51:31.824+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60651 #12 (7 connections now open) 2016-12-09T21:51:31.825+0100 I NETWORK [conn11] end connection 127.0.0.1:60649 (6 connections now open) 2016-12-09T21:51:31.825+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60652 #13 (7 connections now open) 2016-12-09T21:51:31.838+0100 I NETWORK [conn13] end connection 127.0.0.1:60652 (6 connections now open) 2016-12-09T21:51:32.844+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60653 #14 (7 connections now open) 2016-12-09T21:51:32.845+0100 I NETWORK [conn14] end connection 127.0.0.1:60653 (6 connections now open) 2016-12-09T21:51:32.845+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60654 #15 (7 connections now open) 2016-12-09T21:51:32.850+0100 I NETWORK [conn15] end connection 127.0.0.1:60654 (6 connections now open) 2016-12-09T21:51:33.632+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60655 #16 (7 connections now open) 2016-12-09T21:51:33.633+0100 I NETWORK [conn16] end connection 127.0.0.1:60655 (6 connections now open) 2016-12-09T21:51:33.633+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60656 #17 (7 connections now open) 2016-12-09T21:51:33.635+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60658 #18 (8 connections now open) 2016-12-09T21:51:40.839+0100 I REPL [ReplicationExecutor] stepping down from primary, because a new term has begun: 106 2016-12-09T21:51:40.839+0100 I REPL [replExecDBWorker-2] transition to SECONDARY 2016-12-09T21:51:40.839+0100 I NETWORK [conn3] end connection 127.0.0.1:60559 (7 connections now open) 2016-12-09T21:51:40.839+0100 I NETWORK [conn12] end connection 127.0.0.1:60651 (7 connections now open) 2016-12-09T21:51:40.839+0100 I NETWORK [conn8] end connection 127.0.0.1:60615 (7 connections now open) 2016-12-09T21:51:40.839+0100 I NETWORK [conn17] end connection 127.0.0.1:60656 (7 connections now open) 2016-12-09T21:51:40.839+0100 I NETWORK [conn7] end connection 127.0.0.1:60610 (7 connections now open) 2016-12-09T21:51:40.840+0100 I NETWORK [conn2] end connection 127.0.0.1:60557 (7 connections now open) 2016-12-09T21:51:40.840+0100 I NETWORK [conn9] end connection 127.0.0.1:60619 (1 connection now open) 2016-12-09T21:51:40.841+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60677 #19 (2 connections now open) 2016-12-09T21:51:40.842+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60681 #20 (3 connections now open) 2016-12-09T21:51:43.322+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:51:43.648+0100 I NETWORK [conn18] SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:60658] 2016-12-09T21:51:45.494+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60704 #21 (3 connections now open) 2016-12-09T21:51:45.685+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:47.256+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:47.256+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:47.256+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:48.323+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:56.285+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state PRIMARY 2016-12-09T21:51:56.870+0100 I REPL [ReplicationExecutor] syncing from: localhost:31001 2016-12-09T21:51:56.872+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31001 2016-12-09T21:51:56.872+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31001 2016-12-09T21:51:56.874+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31001 2016-12-09T21:51:58.326+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:52:05.862+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Failed to close stream: Socket is not connected 2016-12-09T21:52:05.862+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:52:05.862+0100 I ASIO [ReplicationExecutor] dropping unhealthy pooled connection to localhost:31001 2016-12-09T21:52:05.862+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:52:05.862+0100 I ASIO [ReplicationExecutor] after drop, pool was empty, going to spawn some connections 2016-12-09T21:52:05.862+0100 I ASIO [ReplicationExecutor] Failed to close stream: Socket is not connected 2016-12-09T21:52:05.862+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:52:05.865+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:52:05.865+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:52:08.325+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:08.325+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Operation timed out 2016-12-09T21:52:08.325+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:52:10.330+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Couldn't get a connection within the time limit 2016-12-09T21:52:12.112+0100 I NETWORK [conn19] end connection 127.0.0.1:60677 (2 connections now open) 2016-12-09T21:52:13.131+0100 I CONTROL [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends 2016-12-09T21:52:13.131+0100 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture 2016-12-09T21:52:13.134+0100 I REPL [signalProcessingThread] Stopping replication applier threads 2016-12-09T21:52:14.049+0100 I NETWORK [conn20] end connection 127.0.0.1:60681 (1 connection now open) 2016-12-09T21:52:14.931+0100 I CONTROL [signalProcessingThread] now exiting 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets... 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] closing listening socket: 6 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] closing listening socket: 7 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-31002.sock 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] shutdown: going to flush diaglog... 2016-12-09T21:52:14.931+0100 I NETWORK [signalProcessingThread] shutdown: going to close sockets... 2016-12-09T21:52:14.931+0100 I NETWORK [conn21] end connection 127.0.0.1:60704 (0 connections now open) 2016-12-09T21:52:14.931+0100 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down 2016-12-09T21:52:15.062+0100 I STORAGE [signalProcessingThread] shutdown: removing fs lock... 2016-12-09T21:52:15.063+0100 I CONTROL [signalProcessingThread] dbexit: rc: 0