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/
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 tried multiple fixes, including uninstalling and reinstalling mongodb following the mongodb official documentation, but nothing seems to fix my issue. Here is the error message I get when I run brew services start:
mongodb-community error 3584 <username> ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
When I try to connect with the mongosh command, I get this error:
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.6.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
It seems that is because mongod has not been started? I don't have anything essential saved to the /data folder so any method including wiping all files associated with mongodb would be fine by me. Here are the logs:
{"t":{"$date":"2022-12-19T17:51:14.407-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":"2022-12-19T17:51:14.408-05:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"thread1","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-12-19T17:51:14.408-05:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"thread1","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2022-12-19T17:51:14.408-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2022-12-19T17:51:14.408-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-12-19T17:51:14.408-05:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":5662,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"Angelas-MBP"}}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":23352, "ctx":"initandlisten","msg":"Unable to resolve sysctl {sysctlName} (number) ","attr":{"sysctlName":"hw.cpufrequency"}}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":23351, "ctx":"initandlisten","msg":"{sysctlName} unavailable","attr":{"sysctlName":"machdep.cpu.features"}}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.3","gitVersion":"f803681c3ae19817d31958965850193de067c516","modules":[],"allocator":"system","environment":{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2022-12-19T17:51:14.409-05: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-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2022-12-19T17:51:14.409-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":"2022-12-19T17:51:14.409-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":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"REPL", "id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"-", "id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2022-12-19T17:51:14.409-05:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
I am a newbie with this MongoDB technology. I have been troubleshooting for the past 3 days and it's still not running. I would really appreciate some assistance from anyone. THANK YOU!
mongod --version
db version v6.0.1
Build Info: {
"version": "6.0.1",
"gitVersion": "32f0f9c88dc44a2c8073a5bd47cf779d4bfdee6b",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}, mongod
{"t":{"$date":"2022-09-11T03:10:11.357+00: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-09-11T03:10:11.359+00: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-09-11T03:10:11.384+00:00"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2022-09-11T03:10:11.397+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2022-09-11T03:10:11.397+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-09-11T03:10:11.397+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-09-11T03:10:11.398+00:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
{"t":{"$date":"2022-09-11T03:10:11.398+00:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":8375,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"Alamins-MacBook-Pro.local"}}
{"t":{"$date":"2022-09-11T03:10:11.398+00: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-09-11T03:10:11.398+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"21.1.0"}}}
{"t":{"$date":"2022-09-11T03:10:11.398+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2022-09-11T03:10:11.406+00: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-09-11T03:10:11.409+00: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":"2022-09-11T03:10:11.409+00:00"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"REPL", "id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"-", "id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2022-09-11T03:10:11.411+00:00"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2022-09-11T03:10:11.412+00:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2022-09-11T03:10:11.412+00:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2022-09-11T03:10:11.414+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}][1]
I keep getting an error message and it's still not working, please I need help installing the 6.0 version I have tried everything, and saw people with similar issues but still didn't work.
[1]: https://i.stack.imgur.com/An8K0.jpg
mongo is the legacy shell that no longer exists in 6.0. You are looking for an executable called mongosh that is the new shell you can use to connect to a running database. That database can be running locally or via MongoDB Atlas. I would recommend taking some free courses on MongoDB University to learn more.
mongod takes many arguments. Importantly, you need to provide a directory where the data will get stored. For example:
$ mkdir /data/db/my_test_db
$ mongod --dbpath /data/db/my_test_db
However, this will dump all the log messages to the terminal, like you see in your question. To run it in the background you can provide a logpath like this:
$ mongod --dbpath /data/db/my_test_db --logpath /path/to/logs --fork
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.
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.