I'm tasked to restore a WiredTiger mongodb backup on a new server, I've downloaded the folder to a path /data/db
But when
running sudo mongod --dbpath=/data/db on a new server, gave the following error.
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":19032,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"ip-172-31-4-37"}}
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.1","gitVersion":"ad91a93a5a31e175f5cbf8c69561e788bbc55ce1","openSSLVersion":"OpenSSL 1.1.1f 31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2020-11-06T22:11:16.443+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"storage":{"dbPath":"/data/db"}}}}
{"t":{"$date":"2020-11-06T22:11:16.444+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
{"t":{"$date":"2020-11-06T22:11:16.444+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=94061M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2020-11-06T22:11:16.908+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700676:908863][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 4"}}
{"t":{"$date":"2020-11-06T22:11:16.953+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700676:953627][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 4"}}
{"t":{"$date":"2020-11-06T22:11:17.039+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700677:39694][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 3/640 to 4/256"}}
{"t":{"$date":"2020-11-06T22:11:17.040+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700677:40016][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 4"}}
{"t":{"$date":"2020-11-06T22:11:17.092+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700677:92204][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 4"}}
{"t":{"$date":"2020-11-06T22:11:17.134+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700677:134313][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (1604638812, 8737)"}}
{"t":{"$date":"2020-11-06T22:11:17.134+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1604700677:134351][19032:0x7fd255377c80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (1604638812, 8737)"}}
{"t":{"$date":"2020-11-06T22:11:25.589+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":9145}}
{"t":{"$date":"2020-11-06T22:11:25.590+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":1604638812,"i":8737}}}}
{"t":{"$date":"2020-11-06T22:11:25.591+00:00"},"s":"I", "c":"STORAGE", "id":22383, "ctx":"initandlisten","msg":"The size storer reports that the oplog contains","attr":{"numRecords":327031365,"dataSize":133132846247}}
{"t":{"$date":"2020-11-06T22:11:25.592+00:00"},"s":"I", "c":"STORAGE", "id":22386, "ctx":"initandlisten","msg":"Sampling the oplog to determine where to place markers for truncation"}
{"t":{"$date":"2020-11-06T22:11:25.592+00:00"},"s":"I", "c":"STORAGE", "id":22389, "ctx":"initandlisten","msg":"Sampling from the oplog to determine where to place markers for truncation","attr":{"from":{"$timestamp":{"t":1604570183,"i":3649}},"to":{"$timestamp":{"t":1604638812,"i":10667}}}}
{"t":{"$date":"2020-11-06T22:11:25.592+00:00"},"s":"I", "c":"STORAGE", "id":22390, "ctx":"initandlisten","msg":"Taking samples and assuming each oplog section contains","attr":{"numSamples":991,"containsNumRecords":3296963,"containsNumBytes":1342177280}}
{"t":{"$date":"2020-11-06T22:11:27.142+00:00"},"s":"I", "c":"STORAGE", "id":22393, "ctx":"initandlisten","msg":"Oplog sampling complete"}
{"t":{"$date":"2020-11-06T22:11:27.142+00:00"},"s":"I", "c":"STORAGE", "id":22382, "ctx":"initandlisten","msg":"WiredTiger record store oplog processing finished","attr":{"durationMillis":1550}}
{"t":{"$date":"2020-11-06T22:11:27.176+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2020-11-06T22:11:27.177+00:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2020-11-06T22:11:27.177+00:00"},"s":"W", "c":"CONTROL", "id":22138, "ctx":"initandlisten","msg":"You are running this process as the root user, which is not recommended","tags":["startupWarnings"]}
{"t":{"$date":"2020-11-06T22:11:27.177+00:00"},"s":"W", "c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]}
{"t":{"$date":"2020-11-06T22:11:27.187+00:00"},"s":"W", "c":"CONTROL", "id":22167, "ctx":"initandlisten","msg":"You are running on a NUMA machine. We suggest launching mongod like this to avoid performance problems: numactl --interleave=all mongod [other options]","tags":["startupWarnings"]}
{"t":{"$date":"2020-11-06T22:11:27.187+00:00"},"s":"W", "c":"CONTROL", "id":22184, "ctx":"initandlisten","msg":"Soft rlimits too low","attr":{"currentValue":1024,"recommendedMinimum":64000},"tags":["startupWarnings"]}
{"t":{"$date":"2020-11-06T22:11:27.189+00:00"},"s":"I", "c":"STORAGE", "id":21005, "ctx":"initandlisten","msg":"Not restarting unfinished index builds because we are in standalone mode"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"F", "c":"CONTROL", "id":20573, "ctx":"initandlisten","msg":"Wrong mongod version","attr":{"error":"UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: BadValue: Invalid value for version, found 4.0, expected '4.4' or '4.2'. Contents of featureCompatibilityVersion document in admin.system.version: { _id: \"featureCompatibilityVersion\", version: \"4.0\" }. See https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 4.2, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/4.4/#upgrade-procedures."}}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":10000}}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"STORAGE", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2020-11-06T22:11:27.284+00:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":4784908, "ctx":"initandlisten","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":4784934, "ctx":"initandlisten","msg":"Shutting down the PeriodicThreadToDecreaseSnapshotHistoryCachePressure"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"REPL", "id":4784909, "ctx":"initandlisten","msg":"Shutting down the ReplicationCoordinator"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"SHARDING", "id":4784910, "ctx":"initandlisten","msg":"Shutting down the ShardingInitializationMongoD"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"REPL", "id":4784911, "ctx":"initandlisten","msg":"Enqueuing the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"-", "id":4784912, "ctx":"initandlisten","msg":"Killing all operations for shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"-", "id":4695300, "ctx":"initandlisten","msg":"Interrupted all currently running operations","attr":{"opsKilled":3}}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"COMMAND", "id":4784913, "ctx":"initandlisten","msg":"Shutting down all open transactions"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"REPL", "id":4784914, "ctx":"initandlisten","msg":"Acquiring the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"INDEX", "id":4784915, "ctx":"initandlisten","msg":"Shutting down the IndexBuildsCoordinator"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"REPL", "id":4784916, "ctx":"initandlisten","msg":"Reacquiring the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"REPL", "id":4784917, "ctx":"initandlisten","msg":"Attempting to mark clean shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"initandlisten","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":4784930, "ctx":"initandlisten","msg":"Shutting down the storage engine"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"initandlisten","msg":"Deregistering all the collections"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22372, "ctx":"OplogVisibilityThread","msg":"Oplog visibility thread shutting down."}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22261, "ctx":"initandlisten","msg":"Timestamp monitor shutting down"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"initandlisten","msg":"WiredTigerKVEngine shutting down"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"initandlisten","msg":"Shutting down session sweeper thread"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"initandlisten","msg":"Finished shutting down session sweeper thread"}
{"t":{"$date":"2020-11-06T22:11:27.285+00:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"initandlisten","msg":"Shutting down journal flusher thread"}
{"t":{"$date":"2020-11-06T22:11:27.286+00:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"initandlisten","msg":"Finished shutting down journal flusher thread"}
{"t":{"$date":"2020-11-06T22:11:27.286+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"initandlisten","msg":"Shutting down checkpoint thread"}
{"t":{"$date":"2020-11-06T22:11:27.286+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"initandlisten","msg":"Finished shutting down checkpoint thread"}
{"t":{"$date":"2020-11-06T22:11:27.286+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"initandlisten","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2020-11-06T22:11:28.544+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"initandlisten","msg":"WiredTiger closed","attr":{"durationMillis":1258}}
{"t":{"$date":"2020-11-06T22:11:28.544+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"initandlisten","msg":"shutdown: removing fs lock..."}
{"t":{"$date":"2020-11-06T22:11:28.544+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2020-11-06T22:11:28.544+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2020-11-06T22:11:28.544+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":62}}
running mongod also gives the error above.
how do I fix this?
You need to look at "s": "F" which is severity Fail.
After reading about indexes it seems the cause may have to do with index builds.
As it is advice in the log, upgrade your mongod from 4.0 to 4.4. See this document for how to do upgrade.
Related
I have been running mongodb-community 6.0.1 via homebrew just fine on Mac Monterey for a while, and then ran the recent Monterey update to 12.6.2, which included an XCode Tools update. This made me nervous, and sure enough, I now can't get mongodb to start. When I try to start it
brew services start mongodb/brew/mongodb-community
I get the following error
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/steve/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5.
Here is the log output:
{"t":{"$date":"2022-12-14T20:06:18.001-08:00"},"s":"I", "c":"CONTROL", "id":20698, "ctx":"-","msg":"***** SERVER RESTARTED *****"}
{"t":{"$date":"2022-12-14T20:06:18.004-08:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-12-14T20:06:18.009-08:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
{"t":{"$date":"2022-12-14T20:06:18.010-08:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2022-12-14T20:06:18.011-08:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2022-12-14T20:06:18.011-08:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-12-14T20:06:18.011-08:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-12-14T20:06:18.011-08:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
{"t":{"$date":"2022-12-14T20:06:18.012-08:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":24057,"port":27017,"dbPath":"/usr/local/var/mongodb","architecture":"64-bit","host":"Steves-MBP-29.home"}}
{"t":{"$date":"2022-12-14T20:06:18.012-08:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.1","gitVersion":"32f0f9c88dc44a2c8073a5bd47cf779d4bfdee6b","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2022-12-14T20:06:18.012-08:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"21.6.0"}}}
{"t":{"$date":"2022-12-14T20:06:18.012-08:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"config":"/usr/local/etc/mongod.conf","net":{"bindIp":"127.0.0.1"},"storage":{"dbPath":"/usr/local/var/mongodb"},"systemLog":{"destination":"file","logAppend":true,"path":"/usr/local/var/log/mongodb/mongo.log"}}}}
{"t":{"$date":"2022-12-14T20:06:18.013-08:00"},"s":"I", "c":"NETWORK", "id":5693100, "ctx":"initandlisten","msg":"Asio socket.set_option failed with std::system_error","attr":{"note":"acceptor TCP fast open","option":{"level":6,"name":261,"data":"00 04 00 00"},"error":{"what":"set_option: Invalid argument","message":"Invalid argument","category":"asio.system","value":22}}}
{"t":{"$date":"2022-12-14T20:06:18.014-08:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/usr/local/var/mongodb","storageEngine":"wiredTiger"}}
{"t":{"$date":"2022-12-14T20:06:18.015-08:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=15872M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}
{"t":{"$date":"2022-12-14T20:06:19.409-08:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":1394}}
{"t":{"$date":"2022-12-14T20:06:19.409-08:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-12-14T20:06:19.410-08:00"},"s":"I", "c":"WT", "id":4366405, "ctx":"initandlisten","msg":"Modifying the table logging settings for all existing WiredTiger tables","attr":{"loggingEnabled":true,"repair":false,"hasPreviouslyIncompleteTableChecks":true}}
{"t":{"$date":"2022-12-14T20:06:19.496-08:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"F", "c":"CONTROL", "id":20573, "ctx":"initandlisten","msg":"Wrong mongod version","attr":{"error":"UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: Location4926900: Invalid featureCompatibilityVersion document in admin.system.version: { _id: \"featureCompatibilityVersion\", version: \"4.4\" }. See https://docs.mongodb.com/master/release-notes/5.0-compatibility/#feature-compatibility. :: caused by :: Invalid feature compatibility version value, expected '5.0' or '5.3' or '6.0. See https://docs.mongodb.com/master/release-notes/5.0-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 5.0, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/5.0/#upgrade-procedures."}}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"REPL", "id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"-", "id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"CONTROL", "id":4784908, "ctx":"initandlisten","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"REPL", "id":4784909, "ctx":"initandlisten","msg":"Shutting down the ReplicationCoordinator"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"SHARDING", "id":4784910, "ctx":"initandlisten","msg":"Shutting down the ShardingInitializationMongoD"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"REPL", "id":4784911, "ctx":"initandlisten","msg":"Enqueuing the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"-", "id":4784912, "ctx":"initandlisten","msg":"Killing all operations for shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"-", "id":4695300, "ctx":"initandlisten","msg":"Interrupted all currently running operations","attr":{"opsKilled":3}}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"TENANT_M", "id":5093807, "ctx":"initandlisten","msg":"Shutting down all TenantMigrationAccessBlockers on global shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"COMMAND", "id":4784913, "ctx":"initandlisten","msg":"Shutting down all open transactions"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"REPL", "id":4784914, "ctx":"initandlisten","msg":"Acquiring the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"INDEX", "id":4784915, "ctx":"initandlisten","msg":"Shutting down the IndexBuildsCoordinator"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2022-12-14T20:06:19.506-08:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"CONTROL", "id":4784930, "ctx":"initandlisten","msg":"Shutting down the storage engine"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"initandlisten","msg":"Shutting down journal flusher thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"initandlisten","msg":"Finished shutting down journal flusher thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"initandlisten","msg":"Shutting down checkpoint thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"initandlisten","msg":"Finished shutting down checkpoint thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"initandlisten","msg":"Deregistering all the collections"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"initandlisten","msg":"WiredTigerKVEngine shutting down"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"initandlisten","msg":"Shutting down session sweeper thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"initandlisten","msg":"Finished shutting down session sweeper thread"}
{"t":{"$date":"2022-12-14T20:06:19.507-08:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"initandlisten","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2022-12-14T20:06:19.754-08:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"initandlisten","msg":"WiredTiger closed","attr":{"durationMillis":247}}
{"t":{"$date":"2022-12-14T20:06:19.754-08:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"initandlisten","msg":"shutdown: removing fs lock..."}
{"t":{"$date":"2022-12-14T20:06:19.754-08:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2022-12-14T20:06:19.754-08:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2022-12-14T20:06:19.755-08:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":62}}
This guy ran across the same issue, but running
mongod --repair --dbpath /usr/local/var/mongodb --storageEngine wiredTiger
did not make a difference. I don't need to worry about losing data, so I uninstalled it and re-installed via homebrew, and still get the same error.
As noted in other similar posts, I checked permissions on the various files, and my user has ownership, not root.
Do I need to install an older version of the formula? I was running fine on 6.0.1 prior to the Monterey update, so I doubt that would help/
I'm trying to install MongoDB on Windows 10 and I'm getting this log in the command line after running "mongod" in the "C:\Program Files\MongoDB\Server\6.0\bin":
{"t":{"$date":"2022-07-31T19:20:31.629-03:00"},"s":"I",
"c":"NETWORK", "id":4915701, "ctx":"-","msg":"Initialized wire
specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
{"t":{"$date":"2022-07-31T19:20:32.889-03:00"},"s":"I",
"c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling
TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols
'none'"} {"t":{"$date":"2022-07-31T19:20:32.900-03:00"},"s":"I",
"c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP
FastOpen in use."}
{"t":{"$date":"2022-07-31T19:20:32.923-03:00"},"s":"I", "c":"REPL",
"id":5123008, "ctx":"main","msg":"Successfully registered
PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2022-07-31T19:20:32.923-03:00"},"s":"I", "c":"REPL",
"id":5123008, "ctx":"main","msg":"Successfully registered
PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-07-31T19:20:32.924-03:00"},"s":"I", "c":"REPL",
"id":5123008, "ctx":"main","msg":"Successfully registered
PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-07-31T19:20:32.924-03:00"},"s":"I",
"c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading
initialized"} {"t":{"$date":"2022-07-31T19:20:32.924-03:00"},"s":"I",
"c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB
starting","attr":{"pid":7216,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"DESKTOP-NEDA7LG"}}
{"t":{"$date":"2022-07-31T19:20:32.925-03:00"},"s":"I",
"c":"CONTROL", "id":23398, "ctx":"initandlisten","msg":"Target
operating system minimum version","attr":{"targetMinOS":"Windows
7/Windows Server 2008 R2"}}
{"t":{"$date":"2022-07-31T19:20:32.925-03:00"},"s":"I",
"c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build
Info","attr":{"buildInfo":{"version":"6.0.0","gitVersion":"e61bf27c2f6a83fed36e5a13c008a32d563babe2","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2022-07-31T19:20:32.925-03:00"},"s":"I",
"c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating
System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0
(build 19044)"}}}
{"t":{"$date":"2022-07-31T19:20:32.926-03:00"},"s":"I",
"c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set
by command line","attr":{"options":{}}}
{"t":{"$date":"2022-07-31T19:20:32.932-03:00"},"s":"I",
"c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage
engine to use detected by data
files","attr":{"dbpath":"C:/data/db/","storageEngine":"wiredTiger"}}
{"t":{"$date":"2022-07-31T19:20:32.934-03:00"},"s":"I",
"c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening
WiredTiger","attr":{"config":"create,cache_size=7586M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}
{"t":{"$date":"2022-07-31T19:20:33.290-03:00"},"s":"I",
"c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger
opened","attr":{"durationMillis":356}}
{"t":{"$date":"2022-07-31T19:20:33.291-03:00"},"s":"I",
"c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger
recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-31T19:20:33.296-03:00"},"s":"I", "c":"WT",
"id":4366408, "ctx":"initandlisten","msg":"No table logging settings
modifications are required for existing WiredTiger
tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2022-07-31T19:20:33.310-03:00"},"s":"W",
"c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access
control is not enabled for the database. Read and write access to data
and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2022-07-31T19:20:33.311-03:00"},"s":"W",
"c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server
is bound to localhost. Remote systems will be unable to connect to
this server. Start the server with --bind_ip to specify
which IP addresses it should serve responses from, or with
--bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this
warning","tags":["startupWarnings"]}
{"t":{"$date":"2022-07-31T19:20:33.329-03:00"},"s":"I",
"c":"NETWORK", "id":4915702, "ctx":"initandlisten","msg":"Updated
wire
specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":17,"maxWireVersion":17},"outgoing":{"minWireVersion":17,"maxWireVersion":17},"isInternalClient":true}}}
{"t":{"$date":"2022-07-31T19:20:33.330-03:00"},"s":"I", "c":"REPL",
"id":5853300, "ctx":"initandlisten","msg":"current
featureCompatibilityVersion
value","attr":{"featureCompatibilityVersion":"6.0","context":"startup"}}
{"t":{"$date":"2022-07-31T19:20:33.332-03:00"},"s":"I",
"c":"STORAGE", "id":5071100, "ctx":"initandlisten","msg":"Clearing
temp directory"}
{"t":{"$date":"2022-07-31T19:20:33.333-03:00"},"s":"I",
"c":"CONTROL", "id":20536, "ctx":"initandlisten","msg":"Flow
Control is enabled on this deployment"}
{"t":{"$date":"2022-07-31T19:20:33.667-03:00"},"s":"W", "c":"FTDC",
"id":23718, "ctx":"initandlisten","msg":"Failed to initialize
Performance Counters for
FTDC","attr":{"error":{"code":179,"codeName":"WindowsPdhError","errmsg":"PdhAddEnglishCounterW
failed with 'O objeto especificado não foi encontrado no
computador.'"}}}
{"t":{"$date":"2022-07-31T19:20:33.668-03:00"},"s":"I", "c":"FTDC",
"id":20625, "ctx":"initandlisten","msg":"Initializing full-time
diagnostic data
capture","attr":{"dataDirectory":"C:/data/db/diagnostic.data"}}
{"t":{"$date":"2022-07-31T19:20:33.694-03:00"},"s":"I", "c":"REPL",
"id":6015317, "ctx":"initandlisten","msg":"Setting new configuration
state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
{"t":{"$date":"2022-07-31T19:20:33.694-03:00"},"s":"I",
"c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp
monitor starting"}
{"t":{"$date":"2022-07-31T19:20:33.697-03:00"},"s":"I",
"c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening
on","attr":{"address":"127.0.0.1"}}
{"t":{"$date":"2022-07-31T19:20:33.697-03:00"},"s":"I",
"c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for
connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2022-07-31T19:27:06.517-03:00"},"s":"I",
"c":"CONTROL", "id":23372, "ctx":"thread43","msg":"Ctrl-C signal"}
{"t":{"$date":"2022-07-31T19:27:06.518-03:00"},"s":"I",
"c":"CONTROL", "id":23371, "ctx":"consoleTerminate","msg":"Received
event, will terminate after current command
ends","attr":{"controlCode":"CTRL_C_EVENT"}}
{"t":{"$date":"2022-07-31T19:27:06.518-03:00"},"s":"I", "c":"REPL",
"id":4784900, "ctx":"consoleTerminate","msg":"Stepping down the
ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2022-07-31T19:27:06.524-03:00"},"s":"I", "c":"REPL",
"id":4794602, "ctx":"consoleTerminate","msg":"Attempting to enter
quiesce mode"} {"t":{"$date":"2022-07-31T19:27:06.524-03:00"},"s":"I",
"c":"-", "id":6371601, "ctx":"consoleTerminate","msg":"Shutting
down the FLE Crud thread pool"}
{"t":{"$date":"2022-07-31T19:27:06.524-03:00"},"s":"I",
"c":"COMMAND", "id":4784901, "ctx":"consoleTerminate","msg":"Shutting
down the MirrorMaestro"}
{"t":{"$date":"2022-07-31T19:27:06.525-03:00"},"s":"I",
"c":"SHARDING", "id":4784902, "ctx":"consoleTerminate","msg":"Shutting
down the WaitForMajorityService"}
{"t":{"$date":"2022-07-31T19:27:06.525-03:00"},"s":"I",
"c":"CONTROL", "id":4784903, "ctx":"consoleTerminate","msg":"Shutting
down the LogicalSessionCache"}
{"t":{"$date":"2022-07-31T19:27:06.526-03:00"},"s":"I",
"c":"NETWORK", "id":20562,
"ctx":"consoleTerminate","msg":"Shutdown: going to close listening
sockets"} {"t":{"$date":"2022-07-31T19:27:06.526-03:00"},"s":"I",
"c":"NETWORK", "id":4784905, "ctx":"consoleTerminate","msg":"Shutting
down the global connection pool"}
{"t":{"$date":"2022-07-31T19:27:06.526-03:00"},"s":"I",
"c":"CONTROL", "id":4784906, "ctx":"consoleTerminate","msg":"Shutting
down the FlowControlTicketholder"}
{"t":{"$date":"2022-07-31T19:27:06.526-03:00"},"s":"I", "c":"-",
"id":20520, "ctx":"consoleTerminate","msg":"Stopping further Flow
Control ticket acquisitions."}
{"t":{"$date":"2022-07-31T19:27:06.526-03:00"},"s":"I",
"c":"CONTROL", "id":4784908, "ctx":"consoleTerminate","msg":"Shutting
down the PeriodicThreadToAbortExpiredTransactions"}
{"t":{"$date":"2022-07-31T19:27:06.527-03:00"},"s":"I", "c":"REPL",
"id":4784909, "ctx":"consoleTerminate","msg":"Shutting down the
ReplicationCoordinator"}
{"t":{"$date":"2022-07-31T19:27:06.527-03:00"},"s":"I",
"c":"SHARDING", "id":4784910, "ctx":"consoleTerminate","msg":"Shutting
down the ShardingInitializationMongoD"}
{"t":{"$date":"2022-07-31T19:27:06.528-03:00"},"s":"I", "c":"REPL",
"id":4784911, "ctx":"consoleTerminate","msg":"Enqueuing the
ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-07-31T19:27:06.529-03:00"},"s":"I", "c":"-",
"id":4784912, "ctx":"consoleTerminate","msg":"Killing all operations
for shutdown"} {"t":{"$date":"2022-07-31T19:27:06.532-03:00"},"s":"I",
"c":"-", "id":4695300,
"ctx":"consoleTerminate","msg":"Interrupted all currently running
operations","attr":{"opsKilled":3}}
{"t":{"$date":"2022-07-31T19:27:06.532-03:00"},"s":"I",
"c":"TENANT_M", "id":5093807, "ctx":"consoleTerminate","msg":"Shutting
down all TenantMigrationAccessBlockers on global shutdown"}
{"t":{"$date":"2022-07-31T19:27:06.533-03:00"},"s":"I",
"c":"COMMAND", "id":4784913, "ctx":"consoleTerminate","msg":"Shutting
down all open transactions"}
{"t":{"$date":"2022-07-31T19:27:06.534-03:00"},"s":"I", "c":"REPL",
"id":4784914, "ctx":"consoleTerminate","msg":"Acquiring the
ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-07-31T19:27:06.534-03:00"},"s":"I", "c":"INDEX",
"id":4784915, "ctx":"consoleTerminate","msg":"Shutting down the
IndexBuildsCoordinator"}
{"t":{"$date":"2022-07-31T19:27:06.535-03:00"},"s":"I",
"c":"NETWORK", "id":4784918, "ctx":"consoleTerminate","msg":"Shutting
down the ReplicaSetMonitor"}
{"t":{"$date":"2022-07-31T19:27:06.535-03:00"},"s":"I",
"c":"SHARDING", "id":4784921, "ctx":"consoleTerminate","msg":"Shutting
down the MigrationUtilExecutor"}
{"t":{"$date":"2022-07-31T19:27:06.536-03:00"},"s":"I", "c":"ASIO",
"id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all
outstanding egress activity."}
{"t":{"$date":"2022-07-31T19:27:06.537-03:00"},"s":"I",
"c":"COMMAND", "id":4784923, "ctx":"consoleTerminate","msg":"Shutting
down the ServiceEntryPoint"}
{"t":{"$date":"2022-07-31T19:27:06.537-03:00"},"s":"I",
"c":"CONTROL", "id":4784925, "ctx":"consoleTerminate","msg":"Shutting
down free monitoring"}
{"t":{"$date":"2022-07-31T19:27:06.538-03:00"},"s":"I",
"c":"CONTROL", "id":20609, "ctx":"consoleTerminate","msg":"Shutting
down free monitoring"}
{"t":{"$date":"2022-07-31T19:27:06.539-03:00"},"s":"I",
"c":"CONTROL", "id":4784927, "ctx":"consoleTerminate","msg":"Shutting
down the HealthLog"}
{"t":{"$date":"2022-07-31T19:27:06.540-03:00"},"s":"I",
"c":"CONTROL", "id":4784928, "ctx":"consoleTerminate","msg":"Shutting
down the TTL monitor"}
{"t":{"$date":"2022-07-31T19:27:06.540-03:00"},"s":"I", "c":"INDEX",
"id":3684100, "ctx":"consoleTerminate","msg":"Shutting down TTL
collection monitor thread"}
{"t":{"$date":"2022-07-31T19:27:06.540-03:00"},"s":"I", "c":"INDEX",
"id":3684101, "ctx":"consoleTerminate","msg":"Finished shutting down
TTL collection monitor thread"}
{"t":{"$date":"2022-07-31T19:27:06.541-03:00"},"s":"I",
"c":"CONTROL", "id":6278511, "ctx":"consoleTerminate","msg":"Shutting
down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2022-07-31T19:27:06.541-03:00"},"s":"I",
"c":"CONTROL", "id":4784929,
"ctx":"consoleTerminate","msg":"Acquiring the global lock for
shutdown"} {"t":{"$date":"2022-07-31T19:27:06.542-03:00"},"s":"I",
"c":"CONTROL", "id":4784930, "ctx":"consoleTerminate","msg":"Shutting
down the storage engine"}
{"t":{"$date":"2022-07-31T19:27:06.542-03:00"},"s":"I",
"c":"STORAGE", "id":22320, "ctx":"consoleTerminate","msg":"Shutting
down journal flusher thread"}
{"t":{"$date":"2022-07-31T19:27:06.543-03:00"},"s":"I",
"c":"STORAGE", "id":22321, "ctx":"consoleTerminate","msg":"Finished
shutting down journal flusher thread"}
{"t":{"$date":"2022-07-31T19:27:06.546-03:00"},"s":"I",
"c":"STORAGE", "id":22322, "ctx":"consoleTerminate","msg":"Shutting
down checkpoint thread"}
{"t":{"$date":"2022-07-31T19:27:06.547-03:00"},"s":"I",
"c":"STORAGE", "id":22323, "ctx":"consoleTerminate","msg":"Finished
shutting down checkpoint thread"}
{"t":{"$date":"2022-07-31T19:27:06.547-03:00"},"s":"I",
"c":"STORAGE", "id":20282,
"ctx":"consoleTerminate","msg":"Deregistering all the collections"}
{"t":{"$date":"2022-07-31T19:27:06.548-03:00"},"s":"I",
"c":"STORAGE", "id":22261,
"ctx":"consoleTerminate","msg":"Timestamp monitor shutting down"}
{"t":{"$date":"2022-07-31T19:27:06.548-03:00"},"s":"I",
"c":"STORAGE", "id":22317,
"ctx":"consoleTerminate","msg":"WiredTigerKVEngine shutting down"}
{"t":{"$date":"2022-07-31T19:27:06.549-03:00"},"s":"I",
"c":"STORAGE", "id":22318, "ctx":"consoleTerminate","msg":"Shutting
down session sweeper thread"}
{"t":{"$date":"2022-07-31T19:27:06.549-03:00"},"s":"I",
"c":"STORAGE", "id":22319, "ctx":"consoleTerminate","msg":"Finished
shutting down session sweeper thread"}
{"t":{"$date":"2022-07-31T19:27:06.550-03:00"},"s":"I",
"c":"STORAGE", "id":4795902, "ctx":"consoleTerminate","msg":"Closing
WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2022-07-31T19:27:06.567-03:00"},"s":"I",
"c":"STORAGE", "id":4795901,
"ctx":"consoleTerminate","msg":"WiredTiger
closed","attr":{"durationMillis":17}}
{"t":{"$date":"2022-07-31T19:27:06.567-03:00"},"s":"I",
"c":"STORAGE", "id":22281,
"ctx":"consoleTerminate","msg":"shutdown: removing fs lock..."}
{"t":{"$date":"2022-07-31T19:27:06.567-03:00"},"s":"I", "c":"-",
"id":4784931, "ctx":"consoleTerminate","msg":"Dropping the scope cache
for shutdown"} {"t":{"$date":"2022-07-31T19:27:06.568-03:00"},"s":"I",
"c":"FTDC", "id":20626, "ctx":"consoleTerminate","msg":"Shutting
down full-time diagnostic data capture"}
{"t":{"$date":"2022-07-31T19:27:06.572-03:00"},"s":"I",
"c":"CONTROL", "id":20565, "ctx":"consoleTerminate","msg":"Now
exiting"} {"t":{"$date":"2022-07-31T19:27:06.572-03:00"},"s":"I",
"c":"CONTROL", "id":23138, "ctx":"consoleTerminate","msg":"Shutting
down","attr":{"exitCode":12}}
I have followed the instructions on "https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows/". According to the documentation, I should see a message like this: "[initandlisten] waiting for connections
"
I didn't install MongoDB as a Windows Service because I want to use it only as a tool to a personal project.
I have already set the folder in the PATH variable and I executed the command line as a administrator.
I have created the data directories in the "C:\data\db" as instructed by the documentation.
If I try "mongo start" in the cmd line I get "mongo is not recognized as an internal or external command"
Any help?
Apparently, this is normal output, contrary to the documentation which says that "[initandlisten] waiting for connections " should be displayed.
I'm trying to change my mongo pod to run as non-root. I've modified the mongodb image so it will use the already-existing mongodb user as its running user.
Existing environments that were just upgraded from root to non-root work as expected but clean envs that need to initialize the DB are failing to start. The DB is up but we see errors like:
{"t":{"$date":"2022-07-20T16:00:08.859+00:00"},"s":"I", "c":"ACCESS", "id":20251, "ctx":"conn6","msg":"Supported SASL mechanisms requested for unknown user","attr":{"user":"root#admin"}}
{"t":{"$date":"2022-07-20T16:00:08.859+00:00"},"s":"I", "c":"ACCESS", "id":20249, "ctx":"conn6","msg":"Authentication failed","attr":{"mechanism":"SCRAM-SHA-256","speculative":true,"principalName":"root","authenticationDatabase":"admin","remote":"10.32.0.8:48838","extraInfo":{},"error":"UserNotFound: Could not find user \"root\" for db \"admin\""}}
As part of the dockerfile I'm creating /home/mongodb folder as it doesn't exist and changing it's ownership to mongodb (999).
My entrypoint looks like this:
docker-entrypoint.sh mongod --keyFile /replica.key --replSet rs0 --oplogSize 991 --wiredTigerCacheSizeGB ${WIRE_TIGER_CACHE_SIZE_GB:-5}
Attaching the output of the initial run:
Starting mongo with CPU affinity 0-15
Wed Jul 20 15:58:31 UTC 2022 Waiting for mongo to come up.. (elapsed 0 sec)
about to fork child process, waiting until server is ready for connections.
forked process: 41
{"t":{"$date":"2022-07-20T15:58:31.545+00:00"},"s":"I", "c":"CONTROL", "id":20698, "ctx":"main","msg":"***** SERVER RESTARTED *****"}
{"t":{"$date":"2022-07-20T15:58:31.549+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-07-20T15:58:31.551+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2022-07-20T15:58:31.551+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2022-07-20T15:58:31.552+00:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":41,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"<host_name>"}}
{"t":{"$date":"2022-07-20T15:58:31.552+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.8","gitVersion":"83b8bb8b6b325d8d8d3dfd2ad9f744bdad7d6ca0","openSSLVersion":"OpenSSL 1.1.1f 31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2022-07-20T15:58:31.552+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2022-07-20T15:58:31.552+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"127.0.0.1","port":27017,"tls":{"mode":"disabled"}},"processManagement":{"fork":true,"pidFilePath":"/tmp/docker-entrypoint-temp-mongod.pid"},"replication":{"oplogSizeMB":991},"storage":{"wiredTiger":{"engineConfig":{"cacheSizeGB":5.0}}},"systemLog":{"destination":"file","logAppend":true,"path":"/proc/20/fd/1"}}}}
{"t":{"$date":"2022-07-20T15:58:31.553+00:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
{"t":{"$date":"2022-07-20T15:58:31.553+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=5120M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2022-07-20T15:58:32.195+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1658332712:195207][41:0x7fafa0e03cc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2022-07-20T15:58:32.195+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1658332712:195289][41:0x7fafa0e03cc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2022-07-20T15:58:32.204+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":651}}
{"t":{"$date":"2022-07-20T15:58:32.204+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.219+00:00"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2022-07-20T15:58:32.219+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2022-07-20T15:58:32.225+00:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2022-07-20T15:58:32.226+00:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"admin.system.version","uuidDisposition":"provided","uuid":{"uuid":{"$uuid":"08107524-c8fb-4da8-affb-1cfcc72b7d83"}},"options":{"uuid":{"$uuid":"08107524-c8fb-4da8-affb-1cfcc72b7d83"}}}}
{"t":{"$date":"2022-07-20T15:58:32.238+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"admin.system.version","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.238+00:00"},"s":"I", "c":"COMMAND", "id":20459, "ctx":"initandlisten","msg":"Setting featureCompatibilityVersion","attr":{"newVersion":"4.4"}}
{"t":{"$date":"2022-07-20T15:58:32.238+00:00"},"s":"I", "c":"STORAGE", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2022-07-20T15:58:32.239+00:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"local.startup_log","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"9e81081d-eef6-484b-b7a6-fc9794eaeb99"}},"options":{"capped":true,"size":10485760}}}
{"t":{"$date":"2022-07-20T15:58:32.253+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"local.startup_log","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.254+00:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
{"t":{"$date":"2022-07-20T15:58:32.256+00:00"},"s":"I", "c":"CONTROL", "id":20712, "ctx":"LogicalSessionCacheReap","msg":"Sessions collection is not set up; waiting until next sessions reap interval","attr":{"error":"NamespaceNotFound: config.system.sessions does not exist"}}
{"t":{"$date":"2022-07-20T15:58:32.256+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2022-07-20T15:58:32.256+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
{"t":{"$date":"2022-07-20T15:58:32.256+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2022-07-20T15:58:32.256+00:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"LogicalSessionCacheRefresh","msg":"createCollection","attr":{"namespace":"config.system.sessions","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"7225581d-4817-4307-abeb-1920af7690c8"}},"options":{}}}
child process started successfully, parent exiting
{"t":{"$date":"2022-07-20T15:58:32.278+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.278+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"lsidTTLIndex","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.327+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:48808","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2022-07-20T15:58:32.327+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:48808","client":"conn1","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.8"},"os":{"type":"Linux","name":"Ubuntu","architecture":"x86_64","version":"20.04"}}}}
{"t":{"$date":"2022-07-20T15:58:32.332+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1","msg":"Connection ended","attr":{"remote":"127.0.0.1:48808","connectionId":1,"connectionCount":0}}
{"t":{"$date":"2022-07-20T15:58:32.509+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:48810","connectionId":2,"connectionCount":1}}
{"t":{"$date":"2022-07-20T15:58:32.510+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:48810","client":"conn2","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.8"},"os":{"type":"Linux","name":"Ubuntu","architecture":"x86_64","version":"20.04"}}}}
{"t":{"$date":"2022-07-20T15:58:32.552+00:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"conn2","msg":"createCollection","attr":{"namespace":"admin.system.users","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"d4e45e8c-5461-4187-b211-7d6222831bd5"}},"options":{}}}
Wed Jul 20 15:58:32 UTC 2022 Waiting for mongo to come up.. (elapsed 1 sec)
{"t":{"$date":"2022-07-20T15:58:32.572+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"admin.system.users","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2022-07-20T15:58:32.572+00:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"admin.system.users","index":"user_1_db_1","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
Successfully added user: {
"user" : "root",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
}
{"t":{"$date":"2022-07-20T15:58:32.576+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn2","msg":"Connection ended","attr":{"remote":"127.0.0.1:48810","connectionId":2,"connectionCount":0}}
/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
{"t":{"$date":"2022-07-20T15:58:32.602+00:00"},"s":"I", "c":"CONTROL", "id":20698, "ctx":"main","msg":"***** SERVER RESTARTED *****"}
{"t":{"$date":"2022-07-20T15:58:32.602+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-07-20T15:58:32.605+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
killing process with pid: 41
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"CONTROL", "id":23377, "ctx":"SignalHandler","msg":"Received signal","attr":{"signal":15,"error":"Terminated"}}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"CONTROL", "id":23378, "ctx":"SignalHandler","msg":"Signal was sent by kill(2)","attr":{"pid":104,"uid":999}}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"CONTROL", "id":23381, "ctx":"SignalHandler","msg":"will terminate after current cmd ends"}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"SignalHandler","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":10000}}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"SignalHandler","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2022-07-20T15:58:32.606+00:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"SignalHandler","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"CONTROL", "id":4784903, "ctx":"SignalHandler","msg":"Shutting down the LogicalSessionCache"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"SignalHandler","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"NETWORK", "id":23017, "ctx":"listener","msg":"removing socket file","attr":{"path":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"SignalHandler","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"STORAGE", "id":4784906, "ctx":"SignalHandler","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"-", "id":20520, "ctx":"SignalHandler","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"STORAGE", "id":4784908, "ctx":"SignalHandler","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"STORAGE", "id":4784934, "ctx":"SignalHandler","msg":"Shutting down the PeriodicThreadToDecreaseSnapshotHistoryCachePressure"}
{"t":{"$date":"2022-07-20T15:58:32.607+00:00"},"s":"I", "c":"REPL", "id":4784909, "ctx":"SignalHandler","msg":"Shutting down the ReplicationCoordinator"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"SHARDING", "id":4784910, "ctx":"SignalHandler","msg":"Shutting down the ShardingInitializationMongoD"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"REPL", "id":4784911, "ctx":"SignalHandler","msg":"Enqueuing the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"-", "id":4784912, "ctx":"SignalHandler","msg":"Killing all operations for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"-", "id":4695300, "ctx":"SignalHandler","msg":"Interrupted all currently running operations","attr":{"opsKilled":3}}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"COMMAND", "id":4784913, "ctx":"SignalHandler","msg":"Shutting down all open transactions"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"REPL", "id":4784914, "ctx":"SignalHandler","msg":"Acquiring the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"INDEX", "id":4784915, "ctx":"SignalHandler","msg":"Shutting down the IndexBuildsCoordinator"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"REPL", "id":4784916, "ctx":"SignalHandler","msg":"Reacquiring the ReplicationStateTransitionLock for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"REPL", "id":4784917, "ctx":"SignalHandler","msg":"Attempting to mark clean shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"SignalHandler","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"SignalHandler","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"SignalHandler","msg":"Shutting down free monitoring"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"CONTROL", "id":20609, "ctx":"SignalHandler","msg":"Shutting down free monitoring"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":4784927, "ctx":"SignalHandler","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":4784929, "ctx":"SignalHandler","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":4784930, "ctx":"SignalHandler","msg":"Shutting down the storage engine"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"SignalHandler","msg":"Shutting down journal flusher thread"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"SignalHandler","msg":"Finished shutting down journal flusher thread"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"SignalHandler","msg":"Deregistering all the collections"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":22261, "ctx":"SignalHandler","msg":"Timestamp monitor shutting down"}
{"t":{"$date":"2022-07-20T15:58:32.608+00:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"SignalHandler","msg":"WiredTigerKVEngine shutting down"}
{"t":{"$date":"2022-07-20T15:58:32.610+00:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"SignalHandler","msg":"Shutting down session sweeper thread"}
{"t":{"$date":"2022-07-20T15:58:32.610+00:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"SignalHandler","msg":"Finished shutting down session sweeper thread"}
{"t":{"$date":"2022-07-20T15:58:32.610+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"SignalHandler","msg":"Shutting down checkpoint thread"}
{"t":{"$date":"2022-07-20T15:58:32.610+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"SignalHandler","msg":"Finished shutting down checkpoint thread"}
{"t":{"$date":"2022-07-20T15:58:32.610+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"SignalHandler","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
{"t":{"$date":"2022-07-20T15:58:32.612+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"SignalHandler","msg":"WiredTiger message","attr":{"message":"[1658332712:612025][41:0x7fafa0e02700], close_ckpt: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 47, snapshot max: 47 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 1"}}
{"t":{"$date":"2022-07-20T15:58:32.645+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"SignalHandler","msg":"WiredTiger closed","attr":{"durationMillis":35}}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"SignalHandler","msg":"shutdown: removing fs lock..."}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"SignalHandler","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"SignalHandler","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"FTDC", "id":20626, "ctx":"SignalHandler","msg":"Shutting down full-time diagnostic data capture"}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"SignalHandler","msg":"Now exiting"}
{"t":{"$date":"2022-07-20T15:58:32.646+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"SignalHandler","msg":"Shutting down","attr":{"exitCode":0}}
Wed Jul 20 15:58:33 UTC 2022 Waiting for mongo to come up.. (elapsed 2 sec)
It will then continue for 3 minutes until it reaches timeout. the command behind is trying to connect to the db and run a query and it's unable. after the pods reset I see the user doesn't exist errors.
I'd appreciate any help/hint that will guide me to finding the root cause of this issue.
Thanks!
We eventually found the issue. We had a mongorc.js script that we moved to the /home/mongodb directory; we configured a database to use there, and it used that file on the initialization of the database. We changed the entrypoint script so it moves the script to the homedir of the mongodb user only after the database is initialized, and now everything works again!
I am new to mongodb and was trying authentication in mongod. I tried following:
started mongod in normal mode added users, verfied users are there
started mongod --auth
server log say authentication is enabled .
open compass or mongo , I observed it is opening dbs without asking for any password.
UPDATE: if i stop MongoDB service, authentication work on starting dont work
C:\Program Files\MongoDB\Server\5.0\bin>mongod --auth
{"t":{"$date":"2021-10-25T02:50:39.411+05:30"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-10-25T02:50:39.413+05:30"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-10-25T02:50:39.723+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-10-25T02:50:39.723+05:30"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2021-10-25T02:50:39.724+05:30"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-10-25T02:50:39.724+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}}
{"t":{"$date":"2021-10-25T02:50:39.725+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2021-10-25T02:50:39.726+05:30"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":6072,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"SDIN-SWT-NDT-121"}}
{"t":{"$date":"2021-10-25T02:50:39.726+05:30"},"s":"I", "c":"CONTROL", "id":23398, "ctx":"initandlisten","msg":"Target operating system minimum version","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}}
{"t":{"$date":"2021-10-25T02:50:39.726+05:30"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.3","gitVersion":"657fea5a61a74d7a79df7aff8e4bcf0bc742b748","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-10-25T02:50:39.726+05:30"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 19042)"}}}
{"t":{"$date":"2021-10-25T02:50:39.726+05:30"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"security":{"authorization":"enabled"}}}}
{"t":{"$date":"2021-10-25T02:50:39.727+05:30"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"C:/data/db/","storageEngine":"wiredTiger"}}
{"t":{"$date":"2021-10-25T02:50:39.728+05:30"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=32174M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-10-25T02:50:39.823+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110439:822647][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 10 through 11"}}
{"t":{"$date":"2021-10-25T02:50:39.873+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110439:873197][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 11 through 11"}}
{"t":{"$date":"2021-10-25T02:50:39.921+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110439:921070][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 10/13696 to 11/256"}}
{"t":{"$date":"2021-10-25T02:50:39.997+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110439:997804][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 10 through 11"}}
{"t":{"$date":"2021-10-25T02:50:40.066+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110440:66588][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 11 through 11"}}
{"t":{"$date":"2021-10-25T02:50:40.107+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110440:107481][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2021-10-25T02:50:40.108+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110440:107481][6072:140734753232208], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2021-10-25T02:50:40.109+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1635110440:109476][6072:140734753232208], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1, snapshot max: 1 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 8748"}}
{"t":{"$date":"2021-10-25T02:50:40.201+05:30"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":473}}
{"t":{"$date":"2021-10-25T02:50:40.201+05:30"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-25T02:50:40.206+05:30"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2021-10-25T02:50:40.209+05:30"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2021-10-25T02:50:40.267+05:30"},"s":"W", "c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]}
{"t":{"$date":"2021-10-25T02:50:40.269+05:30"},"s":"I", "c":"NETWORK", "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2021-10-25T02:50:40.269+05:30"},"s":"I", "c":"STORAGE", "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
{"t":{"$date":"2021-10-25T02:50:40.272+05:30"},"s":"I", "c":"CONTROL", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2021-10-25T02:50:40.412+05:30"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"C:/data/db/diagnostic.data"}}
{"t":{"$date":"2021-10-25T02:50:40.415+05:30"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
{"t":{"$date":"2021-10-25T02:50:40.416+05:30"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
//mongodb config
#net:
port: 27017
bindIp: 127.0.0.1
#processManagement:
#security:
#operationProfiling:
#replication:
#sharding:
To enable access control:
a. If you start the mongod from the command line, add the --auth command line option:
mongod --auth --port 27017 --dbpath /var/lib/mongodb
b. If you start the mongod using a configuration file, add the security.authorization configuration file setting:
security:
authorization: enabled
I've been trying to use mongodb shell but the server won't run,
I use to command prompt to navigate to cd C:\Program Files\MongoDB\Server\4.4\bin , and then , and I created the directory on c:\data\db ,
tried to start the mongod command and I got these errors:
{"t":{"$date":"2021-01-20T10:29:20.262+02:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2021-01-20T10:29:20.262+02:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."} {"t":{"$date":"2021-01-20T10:29:20.264+02:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":8208,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"DESKTOP-9DS43SR"}} {"t":{"$date":"2021-01-20T10:29:20.264+02:00"},"s":"I", "c":"CONTROL", "id":23398, "ctx":"initandlisten","msg":"Target operating system minimum version","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}} {"t":{"$date":"2021-01-20T10:29:20.264+02:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.3","gitVersion":"913d6b62acfbb344dde1b116f4161360acd8fd13","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2021-01-20T10:29:20.264+02:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 19041)"}}} {"t":{"$date":"2021-01-20T10:29:20.265+02:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"port":27017},"security":{"authorization":"enabled"}}}} {"t":{"$date":"2021-01-20T10:29:20.268+02:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"C:/data/db/","storageEngine":"wiredTiger"}} {"t":{"$date":"2021-01-20T10:29:20.268+02:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=11743M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}} {"t":{"$date":"2021-01-20T10:29:20.290+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:290563][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 3"}} {"t":{"$date":"2021-01-20T10:29:20.367+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:366530][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 3"}} {"t":{"$date":"2021-01-20T10:29:20.440+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:440366][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 2/4224 to 3/256"}} {"t":{"$date":"2021-01-20T10:29:20.577+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:576971][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 3"}} {"t":{"$date":"2021-01-20T10:29:20.659+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:658797][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 3 through 3"}} {"t":{"$date":"2021-01-20T10:29:20.728+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:727600][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}} {"t":{"$date":"2021-01-20T10:29:20.728+02:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1611131360:728569][8208:140735766484304], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}} {"t":{"$date":"2021-01-20T10:29:20.750+02:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":481}} {"t":{"$date":"2021-01-20T10:29:20.750+02:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}} {"t":{"$date":"2021-01-20T10:29:20.752+02:00"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}} {"t":{"$date":"2021-01-20T10:29:20.753+02:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"} {"t":{"$date":"2021-01-20T10:29:20.758+02:00"},"s":"W", "c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]} {"t":{"$date":"2021-01-20T10:29:20.760+02:00"},"s":"I", "c":"STORAGE", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"} {"t":{"$date":"2021-01-20T10:29:21.474+02:00"},"s":"W", "c":"FTDC", "id":23718, "ctx":"initandlisten","msg":"Failed to initialize Performance Counters for FTDC","attr":{"error":{"code":179,"codeName":"WindowsPdhError","errmsg":"PdhExpandCounterPathW failed with 'The specified object was not found on the computer.' for counter '\Memory\Available Bytes'"}}} {"t":{"$date":"2021-01-20T10:29:21.474+02:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"C:/data/db/diagnostic.data"}} {"t":{"$date":"2021-01-20T10:29:21.480+02:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}} {"t":{"$date":"2021-01-20T10:29:21.481+02:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
if you use mongodb 4.4 you don't need to create a new path to stored data beacuse default path is C:\Program Files\MongoDB\Server\4.4\data created by mongodb, check the status service, like photo, status should be running if status is stopped you should run mognod.exe and you see this messages, it's not a error
{"t":{"$date":"2021-01-20T00:42:48.730-08:00"},"s":"I", and .....
and check status service again