I want run server with mongod command on cmd (open as administrator )

i want run server with mongod command on cmd (open as administrator ) :

{“t”:{“$date”:“2024-01-01T07:31:13.014-08: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”:“2024-01-01T07:31:13.445-08:00”},“s”:“I”, “c”:“NETWORK”, “id”:4648602, “ctx”:“main”,“msg”:“Implicit TCP FastOpen in use.”}
{“t”:{“$date”:“2024-01-01T07:31:13.446-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4615611, “ctx”:“initandlisten”,“msg”:“MongoDB starting”,“attr”:{“pid”:3880,“port”:27017,“dbPath”:“C:/data/db/”,“architecture”:“64-bit”,“host”:“DESKTOP-Q1IPT9M”}}
{“t”:{“$date”:“2024-01-01T07:31:13.446-08: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”:“2024-01-01T07:31:13.446-08:00”},“s”:“I”, “c”:“CONTROL”, “id”:23403, “ctx”:“initandlisten”,“msg”:“Build Info”,“attr”:{“buildInfo”:{“version”:“4.4.26”,“gitVersion”:“acdc463fe60bdc85aeced25297041b4051a0fc33”,“modules”:,“allocator”:“tcmalloc”,“environment”:{“distmod”:“windows”,“distarch”:“x86_64”,“target_arch”:“x86_64”}}}}
{“t”:{“$date”:“2024-01-01T07:31:13.447-08:00”},“s”:“I”, “c”:“CONTROL”, “id”:51765, “ctx”:“initandlisten”,“msg”:“Operating System”,“attr”:{“os”:{“name”:“Microsoft Windows 10”,“version”:“10.0 (build 19045)”}}}
{“t”:{“$date”:“2024-01-01T07:31:13.447-08:00”},“s”:“I”, “c”:“CONTROL”, “id”:21951, “ctx”:“initandlisten”,“msg”:“Options set by command line”,“attr”:{“options”:{}}}
{“t”:{“$date”:“2024-01-01T07:31:13.448-08: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”:“2024-01-01T07:31:13.448-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22315, “ctx”:“initandlisten”,“msg”:“Opening WiredTiger”,“attr”:{“config”:“create,cache_size=7625M,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”:“2024-01-01T07:31:13.476-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:476011][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 28 through 29”}}
{“t”:{“$date”:“2024-01-01T07:31:13.549-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:548972][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 29 through 29”}}
{“t”:{“$date”:“2024-01-01T07:31:13.637-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:637145][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 28/1152 to 29/256”}}
{“t”:{“$date”:“2024-01-01T07:31:13.776-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:775589][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 28 through 29”}}
{“t”:{“$date”:“2024-01-01T07:31:13.857-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:857269][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 29 through 29”}}
{“t”:{“$date”:“2024-01-01T07:31:13.930-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:929233][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)”}}
{“t”:{“$date”:“2024-01-01T07:31:13.930-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:929233][3880:140727235270752], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)”}}
{“t”:{“$date”:“2024-01-01T07:31:13.932-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:932228][3880:140727235270752], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1, snapshot max: 1 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 5292”}}
{“t”:{“$date”:“2024-01-01T07:31:13.945-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4795906, “ctx”:“initandlisten”,“msg”:“WiredTiger opened”,“attr”:{“durationMillis”:497}}
{“t”:{“$date”:“2024-01-01T07:31:13.945-08:00”},“s”:“I”, “c”:“RECOVERY”, “id”:23987, “ctx”:“initandlisten”,“msg”:“WiredTiger recoveryTimestamp”,“attr”:{“recoveryTimestamp”:{“$timestamp”:{“t”:0,“i”:0}}}}
{“t”:{“$date”:“2024-01-01T07:31:13.953-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22262, “ctx”:“initandlisten”,“msg”:“Timestamp monitor starting”}
{“t”:{“$date”:“2024-01-01T07:31:13.957-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”:“2024-01-01T07:31:13.958-08: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”:“2024-01-01T07:31:13.965-08:00”},“s”:“F”, “c”:“CONTROL”, “id”:20573, “ctx”:“initandlisten”,“msg”:“Wrong mongod version”,“attr”:{“error”:“UPGRADE PROBLEM: Found an invalid featureCompatibilityVersion document (ERROR: BadValue: Invalid value for version, found 7.0, expected ‘4.4’ or ‘4.2’. Contents of featureCompatibilityVersion document in admin.system.version: { _id: "featureCompatibilityVersion", version: "7.0" }. See https://docs.mongodb.com/master/release-notes/4.4-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 4.2, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/4.4/#upgrade-procedures.”}}
{“t”:{“$date”:“2024-01-01T07:31:13.965-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784900, “ctx”:“initandlisten”,“msg”:“Stepping down the ReplicationCoordinator for shutdown”,“attr”:{“waitTimeMillis”:10000}}
{“t”:{“$date”:“2024-01-01T07:31:13.966-08:00”},“s”:“I”, “c”:“COMMAND”, “id”:4784901, “ctx”:“initandlisten”,“msg”:“Shutting down the MirrorMaestro”}
{“t”:{“$date”:“2024-01-01T07:31:13.966-08:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784902, “ctx”:“initandlisten”,“msg”:“Shutting down the WaitForMajorityService”}
{“t”:{“$date”:“2024-01-01T07:31:13.967-08:00”},“s”:“I”, “c”:“NETWORK”, “id”:20562, “ctx”:“initandlisten”,“msg”:“Shutdown: going to close listening sockets”}
{“t”:{“$date”:“2024-01-01T07:31:13.967-08:00”},“s”:“I”, “c”:“NETWORK”, “id”:4784905, “ctx”:“initandlisten”,“msg”:“Shutting down the global connection pool”}
{“t”:{“$date”:“2024-01-01T07:31:13.968-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784906, “ctx”:“initandlisten”,“msg”:“Shutting down the FlowControlTicketholder”}
{“t”:{“$date”:“2024-01-01T07:31:13.968-08:00”},“s”:“I”, “c”:“-”, “id”:20520, “ctx”:“initandlisten”,“msg”:“Stopping further Flow Control ticket acquisitions.”}
{“t”:{“$date”:“2024-01-01T07:31:13.969-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784908, “ctx”:“initandlisten”,“msg”:“Shutting down the PeriodicThreadToAbortExpiredTransactions”}
{“t”:{“$date”:“2024-01-01T07:31:13.969-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784934, “ctx”:“initandlisten”,“msg”:“Shutting down the PeriodicThreadToDecreaseSnapshotHistoryCachePressure”}
{“t”:{“$date”:“2024-01-01T07:31:13.970-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784909, “ctx”:“initandlisten”,“msg”:“Shutting down the ReplicationCoordinator”}
{“t”:{“$date”:“2024-01-01T07:31:13.970-08:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784910, “ctx”:“initandlisten”,“msg”:“Shutting down the ShardingInitializationMongoD”}
{“t”:{“$date”:“2024-01-01T07:31:13.971-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784911, “ctx”:“initandlisten”,“msg”:“Enqueuing the ReplicationStateTransitionLock for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.971-08:00”},“s”:“I”, “c”:“-”, “id”:4784912, “ctx”:“initandlisten”,“msg”:“Killing all operations for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.974-08:00”},“s”:“I”, “c”:“-”, “id”:4695300, “ctx”:“initandlisten”,“msg”:“Interrupted all currently running operations”,“attr”:{“opsKilled”:3}}
{“t”:{“$date”:“2024-01-01T07:31:13.974-08:00”},“s”:“I”, “c”:“COMMAND”, “id”:4784913, “ctx”:“initandlisten”,“msg”:“Shutting down all open transactions”}
{“t”:{“$date”:“2024-01-01T07:31:13.975-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784914, “ctx”:“initandlisten”,“msg”:“Acquiring the ReplicationStateTransitionLock for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.975-08:00”},“s”:“I”, “c”:“INDEX”, “id”:4784915, “ctx”:“initandlisten”,“msg”:“Shutting down the IndexBuildsCoordinator”}
{“t”:{“$date”:“2024-01-01T07:31:13.976-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784916, “ctx”:“initandlisten”,“msg”:“Reacquiring the ReplicationStateTransitionLock for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.976-08:00”},“s”:“I”, “c”:“REPL”, “id”:4784917, “ctx”:“initandlisten”,“msg”:“Attempting to mark clean shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.977-08:00”},“s”:“I”, “c”:“NETWORK”, “id”:4784918, “ctx”:“initandlisten”,“msg”:“Shutting down the ReplicaSetMonitor”}
{“t”:{“$date”:“2024-01-01T07:31:13.977-08:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784921, “ctx”:“initandlisten”,“msg”:“Shutting down the MigrationUtilExecutor”}
{“t”:{“$date”:“2024-01-01T07:31:13.978-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784929, “ctx”:“initandlisten”,“msg”:“Acquiring the global lock for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:13.978-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784930, “ctx”:“initandlisten”,“msg”:“Shutting down the storage engine”}
{“t”:{“$date”:“2024-01-01T07:31:13.979-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22320, “ctx”:“initandlisten”,“msg”:“Shutting down journal flusher thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.979-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22321, “ctx”:“initandlisten”,“msg”:“Finished shutting down journal flusher thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.980-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:20282, “ctx”:“initandlisten”,“msg”:“Deregistering all the collections”}
{“t”:{“$date”:“2024-01-01T07:31:13.980-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22261, “ctx”:“initandlisten”,“msg”:“Timestamp monitor shutting down”}
{“t”:{“$date”:“2024-01-01T07:31:13.981-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22317, “ctx”:“initandlisten”,“msg”:“WiredTigerKVEngine shutting down”}
{“t”:{“$date”:“2024-01-01T07:31:13.981-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22318, “ctx”:“initandlisten”,“msg”:“Shutting down session sweeper thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.982-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22319, “ctx”:“initandlisten”,“msg”:“Finished shutting down session sweeper thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.982-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22322, “ctx”:“initandlisten”,“msg”:“Shutting down checkpoint thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.983-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22323, “ctx”:“initandlisten”,“msg”:“Finished shutting down checkpoint thread”}
{“t”:{“$date”:“2024-01-01T07:31:13.983-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4795902, “ctx”:“initandlisten”,“msg”:“Closing WiredTiger”,“attr”:{“closeConfig”:“leak_memory=true,”}}
{“t”:{“$date”:“2024-01-01T07:31:13.985-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1704123073:984224][3880:140727235270752], close_ckpt: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 2, snapshot max: 2 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 5292”}}
{“t”:{“$date”:“2024-01-01T07:31:14.017-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:4795901, “ctx”:“initandlisten”,“msg”:“WiredTiger closed”,“attr”:{“durationMillis”:34}}
{“t”:{“$date”:“2024-01-01T07:31:14.017-08:00”},“s”:“I”, “c”:“STORAGE”, “id”:22281, “ctx”:“initandlisten”,“msg”:“shutdown: removing fs lock…”}
{“t”:{“$date”:“2024-01-01T07:31:14.019-08:00”},“s”:“I”, “c”:“-”, “id”:4784931, “ctx”:“initandlisten”,“msg”:“Dropping the scope cache for shutdown”}
{“t”:{“$date”:“2024-01-01T07:31:14.020-08:00”},“s”:“I”, “c”:“FTDC”, “id”:4784926, “ctx”:“initandlisten”,“msg”:“Shutting down full-time data capture”}
{“t”:{“$date”:“2024-01-01T07:31:14.021-08:00”},“s”:“I”, “c”:“CONTROL”, “id”:20565, “ctx”:“initandlisten”,“msg”:“Now exiting”}
{“t”:{“$date”:“2024-01-01T07:31:14.022-08:00”},“s”:“I”, “c”:“CONTROL”, “id”:23138, “ctx”:“initandlisten”,“msg”:“Shutting down”,“attr”:{“exitCode”:62}}

There are several warning messages:

  • The server is bound to localhost, which means remote systems won’t be able to connect.
  • An important error indicates an issue with the MongoDB version compatibility. The server expects a feature compatibility version of either 4.4 or 4.2, but it found a version 7.0
    and
  • Following these warnings and errors, the server initiates the shutdown sequence.
  • Various components and threads related to MongoDB shutdown gracefully.
  • The final logs indicate that MongoDB is shutting down (msg: “Shutting down”), and the process exits (msg: “Now exiting”).

The critical issue highlighted in the log is the version compatibility problem. MongoDB expects the feature compatibility version to be 4.4 or 4.2, but it found a version 7.0. This might prevent the server from running properly

Hi @sajjad_psb

Please familiarise yourself with some of the Getting Started topics:
https://www.mongodb.com/community/forums/t/getting-started-with-the-mongodb-community-readme-1st/140
https://www.mongodb.com/community/forums/t/how-to-write-a-good-post-question/10494

And particularly:

2 Likes