Consistent stopping of mongodb-community@5.0 service

Hi , I recently tried to install mongodb-community@5.0 in macbook air m2 apple silicon chip. The installation was successfull , but the service is getting stooped whenever i tried to connect to mongodb using node or whenver i try to query using mongodb-compass

The mongo.log appears as below :

{"t":{"$date":"2023-05-13T14:28:54.751+05:30"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2023-05-13T14:28:54.752+05:30"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"-","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2023-05-13T14:28:54.754+05:30"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"thread1","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2023-05-13T14:28:54.754+05:30"},"s":"I",  "c":"NETWORK",  "id":4648602, "ctx":"thread1","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2023-05-13T14:28:54.755+05:30"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"thread1","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2023-05-13T14:28:54.755+05:30"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}}
{"t":{"$date":"2023-05-13T14:28:54.755+05:30"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"thread1","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2023-05-13T14:28:54.755+05:30"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"thread1","msg":"Multi threading initialized"}
{"t":{"$date":"2023-05-13T14:28:54.756+05:30"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":6467,"port":27017,"dbPath":"/opt/homebrew/var/mongodb","architecture":"64-bit","host":"Harshas-MacBook-Air.local"}}
{"t":{"$date":"2023-05-13T14:28:54.756+05:30"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.15","gitVersion":"935639beed3d0c19c2551c93854b831107c0b118","modules":[],"allocator":"system","environment":{"distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2023-05-13T14:28:54.756+05:30"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"22.4.0"}}}
{"t":{"$date":"2023-05-13T14:28:54.756+05:30"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"config":"/opt/homebrew/etc/mongod.conf","net":{"bindIp":"127.0.0.1, ::1","ipv6":true},"storage":{"dbPath":"/opt/homebrew/var/mongodb"},"systemLog":{"destination":"file","logAppend":true,"path":"/opt/homebrew/var/log/mongodb/mongo.log"}}}}
{"t":{"$date":"2023-05-13T14:28:54.757+05:30"},"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-05-13T14:28:54.757+05:30"},"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-05-13T14:28:54.757+05:30"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/opt/homebrew/var/mongodb","storageEngine":"wiredTiger"}}
{"t":{"$date":"2023-05-13T14:28:54.757+05:30"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=7680M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2023-05-13T14:28:55.341+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:341518][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 6"}}
{"t":{"$date":"2023-05-13T14:28:55.365+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:365883][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 6 through 6"}}
{"t":{"$date":"2023-05-13T14:28:55.396+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:396346][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_ALL] Main recovery loop: starting at 5/17280 to 6/256"}}
{"t":{"$date":"2023-05-13T14:28:55.444+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:444883][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 6"}}
{"t":{"$date":"2023-05-13T14:28:55.475+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:475243][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 6 through 6"}}
{"t":{"$date":"2023-05-13T14:28:55.499+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:499734][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_ALL] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2023-05-13T14:28:55.499+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:499772][6467:0x209933280], txn-recover: [WT_VERB_RECOVERY_ALL] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2023-05-13T14:28:55.507+05:30"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1683968335:507759][6467:0x209933280], 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: 7497"}}
{"t":{"$date":"2023-05-13T14:28:55.527+05:30"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":770}}
{"t":{"$date":"2023-05-13T14:28:55.527+05:30"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2023-05-13T14:28:55.554+05:30"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2023-05-13T14:28:55.555+05:30"},"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":"2023-05-13T14:28:55.555+05:30"},"s":"W",  "c":"CONTROL",  "id":22184,   "ctx":"initandlisten","msg":"Soft rlimits for open file descriptors too low","attr":{"currentValue":256,"recommendedMinimum":64000},"tags":["startupWarnings"]}
{"t":{"$date":"2023-05-13T14:28:55.557+05:30"},"s":"I",  "c":"NETWORK",  "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true}}}
{"t":{"$date":"2023-05-13T14:28:55.558+05:30"},"s":"I",  "c":"STORAGE",  "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
{"t":{"$date":"2023-05-13T14:28:55.579+05:30"},"s":"I",  "c":"CONTROL",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2023-05-13T14:28:55.580+05:30"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/opt/homebrew/var/mongodb/diagnostic.data"}}
{"t":{"$date":"2023-05-13T14:28:55.581+05:30"},"s":"I",  "c":"REPL",     "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
{"t":{"$date":"2023-05-13T14:28:55.582+05:30"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2023-05-13T14:28:55.582+05:30"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
{"t":{"$date":"2023-05-13T14:28:55.582+05:30"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"::1"}}
{"t":{"$date":"2023-05-13T14:28:55.582+05:30"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2023-05-13T14:29:25.546+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49513","uuid":"bc067e58-9a5a-4228-b1fa-54f5dbda9528","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2023-05-13T14:29:25.550+05:30"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:49513","client":"conn1","doc":{"driver":{"name":"nodejs","version":"5.1.0"},"os":{"type":"Darwin","name":"darwin","architecture":"arm64","version":"22.4.0"},"platform":"Node.js v16.17.1, LE (unified)|Node.js v16.17.1, LE (unified)","application":{"name":"MongoDB Compass"}}}}
{"t":{"$date":"2023-05-13T14:29:25.553+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49514","uuid":"93424120-a931-44a0-9003-98f9960ca502","connectionId":2,"connectionCount":2}}
{"t":{"$date":"2023-05-13T14:29:25.554+05:30"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:49514","client":"conn2","doc":{"driver":{"name":"nodejs","version":"5.1.0"},"os":{"type":"Darwin","name":"darwin","architecture":"arm64","version":"22.4.0"},"platform":"Node.js v16.17.1, LE (unified)|Node.js v16.17.1, LE (unified)","application":{"name":"MongoDB Compass"}}}}
{"t":{"$date":"2023-05-13T14:29:25.580+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49515","uuid":"6f85ce98-e76e-404a-984c-d80534046b1d","connectionId":3,"connectionCount":3}}
{"t":{"$date":"2023-05-13T14:29:25.580+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49516","uuid":"e8019277-8707-47fd-a7db-98600ee6130a","connectionId":4,"connectionCount":4}}
{"t":{"$date":"2023-05-13T14:29:25.581+05:30"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn3","msg":"client metadata","attr":{"remote":"127.0.0.1:49515","client":"conn3","doc":{"driver":{"name":"nodejs","version":"5.1.0"},"os":{"type":"Darwin","name":"darwin","architecture":"arm64","version":"22.4.0"},"platform":"Node.js v16.17.1, LE (unified)|Node.js v16.17.1, LE (unified)","application":{"name":"MongoDB Compass"}}}}
{"t":{"$date":"2023-05-13T14:29:25.581+05:30"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn4","msg":"client metadata","attr":{"remote":"127.0.0.1:49516","client":"conn4","doc":{"driver":{"name":"nodejs","version":"5.1.0"},"os":{"type":"Darwin","name":"darwin","architecture":"arm64","version":"22.4.0"},"platform":"Node.js v16.17.1, LE (unified)|Node.js v16.17.1, LE (unified)","application":{"name":"MongoDB Compass"}}}}
{"t":{"$date":"2023-05-13T14:29:25.583+05:30"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:49517","uuid":"8a4fa175-b8c6-402c-934a-3cfc0bb29c92","connectionId":5,"connectionCount":5}}

Hello @Harsha_Vardhan_Moka ,

Welcome to The MongoDB Community Forums! :wave:

  • Can you please share output of sudo brew services list?
  • Also, Can you please confirm if mongod has write permissions to /opt/homebrew/var/mongodb?

Lastly, at the end of the logs shared, It seems like you were able to connect, can you share additional logs to make sure if something is a miss?

Below threads seems to have similar issues and were solved, can you take a look at these in case it solves your issue as well.

Regards,
Tarun