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.
Related
I recently installed MongoDB with Homebrew using instructions from here. However, whenever I run $ mongosh after running brew services start mongodb-community#6.0, I obtain the following error:
Current Mongosh Log ID: 63e84d591b00c6f8f6b97dff Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.7.0 MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
Furthermore, running mongod gives me the following:
{"t":{"$date":"2023-02-11T21:22:20.857-05: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":"2023-02-11T21:22:20.858-05: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":"2023-02-11T21:22:20.859-05:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"thread1","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2023-02-11T21:22:20.865-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2023-02-11T21:22:20.865-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2023-02-11T21:22:20.865-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":20298,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"dynamic-oit-vapornet100-10-8-11-213.princeton.edu"}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":23352, "ctx":"initandlisten","msg":"Unable to resolve sysctl {sysctlName} (number) ","attr":{"sysctlName":"hw.cpufrequency"}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":23351, "ctx":"initandlisten","msg":"{sysctlName} unavailable","attr":{"sysctlName":"machdep.cpu.features"}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.4","gitVersion":"44ff59461c1353638a71e710f385a566bcd2f547","modules":[],"allocator":"system","environment":{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"22.2.0"}}}
{"t":{"$date":"2023-02-11T21:22:20.866-05:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2023-02-11T21:22:20.870-05: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":"2023-02-11T21:22:20.872-05:00"},"s":"E", "c":"CONTROL", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}}
{"t":{"$date":"2023-02-11T21:22:20.872-05:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"REPL", "id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"-", "id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2023-02-11T21:22:20.873-05:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2023-02-11T21:22:20.874-05:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
Running launchctl list | grep mongo also prints out nothing; and running brew list shows that the formulea:
mongodb-community mongodb-database-tools mongosh
has been installed.
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 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!
when I run the command mongod, it gives me this:
{"t":{"$date":"2020-12-28T21:40:03.080+01: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":"2020-12-28T21:40:03.349+01:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2020-12-28T21:40:03.349+01:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2020-12-28T21:40:03.350+01:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":7624,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"DESKTOP-M5RS882"}}
{"t":{"$date":"2020-12-28T21:40:03.350+01: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":"2020-12-28T21:40:03.350+01:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.2","gitVersion":"15e73dc5738d2278b688f8929aee605fe4279b0e","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2020-12-28T21:40:03.350+01: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":"2020-12-28T21:40:03.351+01:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2020-12-28T21:40:03.351+01:00"},"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory C:\\data\\db\\ not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}}
{"t":{"$date":"2020-12-28T21:40:03.351+01:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":10000}}
{"t":{"$date":"2020-12-28T21:40:03.351+01:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2020-12-28T21:40:03.351+01:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2020-12-28T21:40:03.351+01:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2020-12-28T21:40:03.352+01:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2020-12-28T21:40:03.352+01:00"},"s":"I", "c":"STORAGE", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2020-12-28T21:40:03.353+01:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2020-12-28T21:40:03.353+01:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2020-12-28T21:40:03.353+01:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2020-12-28T21:40:03.354+01:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2020-12-28T21:40:03.354+01:00"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"initandlisten","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2020-12-28T21:40:03.355+01:00"},"s":"I", "c":"STORAGE", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2020-12-28T21:40:03.355+01:00"},"s":"I", "c":"STORAGE", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2020-12-28T21:40:03.355+01:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2020-12-28T21:40:03.356+01:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2020-12-28T21:40:03.356+01:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
and then it ends itself. I also have MongoDB Compass and Community Server installed.
I have installed MongoDB 4.4 on Windows 10 machine, and it was working fine. I could connect it from MongoDB compass. But now when I try to connect, I get 'mongodb compass connect ECONNREFUSED 127.0.0.1:27017' error. So I tried to launch it manually by executing mongod command, and I see following traces:
C:\Program Files\MongoDB\Server\4.4\bin>mongod
{"t":{"$date":"2020-09-17T02:33:16.379-07: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":"2020-09-17T02:33:16.383-07:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2020-09-17T02:33:16.383-07:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2020-09-17T02:33:16.384-07:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":13320,"port":27017,"dbPath":"C:/data/db/","architecture":"64-bit","host":"3INDGHILDIYA1"}}
{"t":{"$date":"2020-09-17T02:33:16.384-07: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":"2020-09-17T02:33:16.384-07:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.1-rc2","gitVersion":"95ea09d61932f51a37a63a10f4d0e0c1fced4723","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2020-09-17T02:33:16.384-07:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 17134)"}}}
{"t":{"$date":"2020-09-17T02:33:16.384-07:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2020-09-17T02:33:16.385-07:00"},"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory C:\\data\\db\\ not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}}
{"t":{"$date":"2020-09-17T02:33:16.385-07:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":10000}}
{"t":{"$date":"2020-09-17T02:33:16.386-07:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2020-09-17T02:33:16.386-07:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2020-09-17T02:33:16.387-07:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2020-09-17T02:33:16.388-07:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2020-09-17T02:33:16.389-07:00"},"s":"I", "c":"STORAGE", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2020-09-17T02:33:16.401-07:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2020-09-17T02:33:16.412-07:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2020-09-17T02:33:16.413-07:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2020-09-17T02:33:16.424-07:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2020-09-17T02:33:16.428-07:00"},"s":"I", "c":"FTDC", "id":4784926, "ctx":"initandlisten","msg":"Shutting down full-time data capture"}
{"t":{"$date":"2020-09-17T02:33:16.429-07:00"},"s":"I", "c":"STORAGE", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2020-09-17T02:33:16.437-07:00"},"s":"I", "c":"STORAGE", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2020-09-17T02:33:16.442-07:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2020-09-17T02:33:16.449-07:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2020-09-17T02:33:16.450-07:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
What can be the reason here?
In config file storage.dbpath is set to 'C:\Program Files\MongoDB\Server\4.4\data'.
# Where and how to store data.
storage:
dbPath: C:\Program Files\MongoDB\Server\4.4\data
NonExistentPath: Data directory C:\\data\\db\\
You need to create that folder. Or change it in a config file and use this file:
mongod --config mongod.conf
Keep in mind that this folder must be writable for the user who is running mongod.