2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] MongoDB starting : pid=84056 port=31001 dbpath=./db/31001 64-bit host=Christians-MacBook-Pro.local 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] db version v3.2.11 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] git version: 009580ad490190ba33d1c6253ebd8d91808923e4 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] allocator: system 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] modules: none 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] build environment: 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] distarch: x86_64 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] target_arch: x86_64 2016-12-09T21:49:56.922+0100 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 31001 }, replication: { replSet: "rs" }, storage: { dbPath: "./db/31001" }, systemLog: { destination: "file", path: "db/31001.log" } } 2016-12-09T21:49:56.923+0100 I - [initandlisten] Detected data files in ./db/31001 created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2016-12-09T21:49:56.923+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:57.397+0100 I STORAGE [initandlisten] Starting WiredTigerRecordStoreThread local.oplog.rs 2016-12-09T21:49:57.397+0100 I STORAGE [initandlisten] The size storer reports that the oplog contains 44525 records totaling to 4674297 bytes 2016-12-09T21:49:57.397+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:57.397+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:57.411+0100 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory './db/31001/diagnostic.data' 2016-12-09T21:49:57.411+0100 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker 2016-12-09T21:49:57.411+0100 I NETWORK [initandlisten] waiting for connections on port 31001 2016-12-09T21:49:57.412+0100 W NETWORK [ReplicationExecutor] Failed to connect to 127.0.0.1:31002, reason: errno:61 Connection refused 2016-12-09T21:49:57.413+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:57.413+0100 I REPL [ReplicationExecutor] This node is localhost:31001 in the config 2016-12-09T21:49:57.413+0100 I REPL [ReplicationExecutor] transition to STARTUP2 2016-12-09T21:49:57.413+0100 I REPL [ReplicationExecutor] Starting replication applier threads 2016-12-09T21:49:57.413+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:49:57.413+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:57.413+0100 I REPL [ReplicationExecutor] transition to RECOVERING 2016-12-09T21:49:57.413+0100 I REPL [ReplicationExecutor] transition to SECONDARY 2016-12-09T21:49:57.414+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:57.414+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:57.414+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:57.414+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:12345 2016-12-09T21:49:57.415+0100 I REPL [ReplicationExecutor] Member localhost:12345 is now in state SECONDARY 2016-12-09T21:49:57.415+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:57.415+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:57.415+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:57.416+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:57.416+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:58.248+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60546 #1 (1 connection now open) 2016-12-09T21:49:58.248+0100 I NETWORK [conn1] end connection 127.0.0.1:60546 (0 connections now open) 2016-12-09T21:49:58.250+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60551 #2 (1 connection now open) 2016-12-09T21:50:01.575+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60553 #3 (2 connections now open) 2016-12-09T21:50:02.418+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:50:02.420+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:50:02.420+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:50:12.424+0100 I REPL [ReplicationExecutor] Member localhost:12345 is now in state PRIMARY 2016-12-09T21:50:12.451+0100 I REPL [ReplicationExecutor] syncing from: localhost:12345 2016-12-09T21:50:12.453+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:12345 2016-12-09T21:50:12.453+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:12345 2016-12-09T21:50:12.456+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:12345 2016-12-09T21:50:13.293+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60569 #4 (3 connections now open) 2016-12-09T21:50:13.293+0100 I NETWORK [conn4] end connection 127.0.0.1:60569 (2 connections now open) 2016-12-09T21:50:13.294+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60570 #5 (3 connections now open) 2016-12-09T21:50:13.295+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60572 #6 (4 connections now open) 2016-12-09T21:50:42.481+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:50:42.481+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:45.602+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:50:45.602+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:50:45.602+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:45.603+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:50:45.603+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:45.604+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 102 2016-12-09T21:50:45.604+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:50:45.604+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:50:46.490+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:50:47.460+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.319+0100 I NETWORK [conn5] end connection 127.0.0.1:60570 (3 connections now open) 2016-12-09T21:50:48.336+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60601 #7 (4 connections now open) 2016-12-09T21:50:48.336+0100 I NETWORK [conn7] end connection 127.0.0.1:60601 (3 connections now open) 2016-12-09T21:50:48.337+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60602 #8 (4 connections now open) 2016-12-09T21:50:55.709+0100 I REPL [ReplicationExecutor] stepping down from primary, because a new term has begun: 103 2016-12-09T21:50:55.710+0100 I REPL [replExecDBWorker-1] transition to SECONDARY 2016-12-09T21:50:55.710+0100 I NETWORK [conn2] end connection 127.0.0.1:60551 (3 connections now open) 2016-12-09T21:50:55.710+0100 I NETWORK [SyncSourceFeedback] Socket recv() errno:9 Bad file descriptor 127.0.0.1:12345 2016-12-09T21:50:55.710+0100 I NETWORK [conn8] end connection 127.0.0.1:60602 (3 connections now open) 2016-12-09T21:50:55.710+0100 I NETWORK [SyncSourceFeedback] SocketException: remote: (NONE):0 error: 9001 socket exception [RECV_ERROR] server [127.0.0.1:12345] 2016-12-09T21:50:55.710+0100 I REPL [SyncSourceFeedback] SyncSourceFeedback error sending update: network error while attempting to run command 'replSetUpdatePosition' on host 'localhost:12345' 2016-12-09T21:50:55.710+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60608 #9 (3 connections now open) 2016-12-09T21:50:55.710+0100 I REPL [SyncSourceFeedback] updateUpstream failed: HostUnreachable: network error while attempting to run command 'replSetUpdatePosition' on host 'localhost:12345' , will retry 2016-12-09T21:50:55.713+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60617 #10 (4 connections now open) 2016-12-09T21:50:58.350+0100 I NETWORK [conn6] SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:60572] 2016-12-09T21:50:59.468+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:02.484+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:04.468+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:05.607+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:05.607+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:05.607+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:14.469+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:24.468+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:24.468+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Operation timed out 2016-12-09T21:51:24.468+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:27.646+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state PRIMARY 2016-12-09T21:51:29.472+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:33.632+0100 I REPL [ReplicationExecutor] syncing from: localhost:31002 2016-12-09T21:51:33.633+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31002 2016-12-09T21:51:33.633+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31002 2016-12-09T21:51:33.635+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31002 2016-12-09T21:51:40.839+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Failed to close stream: Socket is not connected 2016-12-09T21:51:40.839+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:51:40.840+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] dropping unhealthy pooled connection to localhost:31002 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] after drop, pool was empty, going to spawn some connections 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] Failed to close stream: Socket is not connected 2016-12-09T21:51:40.840+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:51:40.842+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:51:40.842+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:51:44.471+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:51:44.471+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Operation timed out 2016-12-09T21:51:44.472+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:44.475+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:51.379+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:51:51.379+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:51:51.379+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:51.380+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:51:51.380+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:51.380+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 107 2016-12-09T21:51:51.381+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:51:51.381+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:51:51.874+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:51:55.714+0100 I NETWORK [conn9] end connection 127.0.0.1:60608 (2 connections now open) 2016-12-09T21:51:55.898+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60717 #11 (3 connections now open) 2016-12-09T21:51:55.898+0100 I NETWORK [conn11] end connection 127.0.0.1:60717 (2 connections now open) 2016-12-09T21:51:55.899+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60718 #12 (3 connections now open) 2016-12-09T21:51:55.900+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60720 #13 (4 connections now open) 2016-12-09T21:51:55.901+0100 I NETWORK [conn12] end connection 127.0.0.1:60718 (3 connections now open) 2016-12-09T21:51:55.902+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60721 #14 (4 connections now open) 2016-12-09T21:51:55.914+0100 I NETWORK [conn14] end connection 127.0.0.1:60721 (3 connections now open) 2016-12-09T21:51:56.870+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60722 #15 (4 connections now open) 2016-12-09T21:51:56.872+0100 I NETWORK [conn15] end connection 127.0.0.1:60722 (3 connections now open) 2016-12-09T21:51:56.872+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60723 #16 (4 connections now open) 2016-12-09T21:51:56.874+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60725 #17 (5 connections now open) 2016-12-09T21:51:56.918+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60726 #18 (6 connections now open) 2016-12-09T21:51:56.919+0100 I NETWORK [conn18] end connection 127.0.0.1:60726 (5 connections now open) 2016-12-09T21:51:56.920+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60727 #19 (6 connections now open) 2016-12-09T21:51:56.926+0100 I NETWORK [conn19] end connection 127.0.0.1:60727 (5 connections now open) 2016-12-09T21:51:59.479+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:00.842+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:04.475+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:04.475+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:12345; ExceededTimeLimit: Operation timed out 2016-12-09T21:52:04.475+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:12345 2016-12-09T21:52:05.861+0100 I REPL [ReplicationExecutor] stepping down from primary, because a new term has begun: 108 2016-12-09T21:52:05.861+0100 I REPL [replExecDBWorker-0] transition to SECONDARY 2016-12-09T21:52:05.862+0100 I NETWORK [conn13] end connection 127.0.0.1:60720 (4 connections now open) 2016-12-09T21:52:05.862+0100 I NETWORK [conn10] end connection 127.0.0.1:60617 (4 connections now open) 2016-12-09T21:52:05.862+0100 I NETWORK [conn16] end connection 127.0.0.1:60723 (3 connections now open) 2016-12-09T21:52:05.862+0100 I NETWORK [conn3] end connection 127.0.0.1:60553 (1 connection now open) 2016-12-09T21:52:05.864+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60734 #20 (2 connections now open) 2016-12-09T21:52:05.865+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60737 #21 (3 connections now open) 2016-12-09T21:52:06.881+0100 I NETWORK [conn17] SocketException handling request, closing client connection: 9001 socket exception [SEND_ERROR] server [127.0.0.1:60725] 2016-12-09T21:52:11.379+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:11.379+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:11.380+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:12345 - ExceededTimeLimit: Operation timed out 2016-12-09T21:52:11.481+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.011+0100 I CONTROL [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends 2016-12-09T21:52:12.011+0100 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture 2016-12-09T21:52:12.015+0100 I REPL [signalProcessingThread] Stopping replication applier threads 2016-12-09T21:52:12.112+0100 I NETWORK [conn20] end connection 127.0.0.1:60734 (1 connection now open) 2016-12-09T21:52:13.929+0100 I CONTROL [signalProcessingThread] now exiting 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets... 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] closing listening socket: 6 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] closing listening socket: 7 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-31001.sock 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] shutdown: going to flush diaglog... 2016-12-09T21:52:13.929+0100 I NETWORK [signalProcessingThread] shutdown: going to close sockets... 2016-12-09T21:52:13.929+0100 I NETWORK [conn21] end connection 127.0.0.1:60737 (0 connections now open) 2016-12-09T21:52:13.929+0100 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down 2016-12-09T21:52:14.047+0100 I STORAGE [signalProcessingThread] shutdown: removing fs lock... 2016-12-09T21:52:14.047+0100 I CONTROL [signalProcessingThread] dbexit: rc: 0