Cannot Start mongodb-community

Hello,

I have changed my config file. And the dbPath part is empty now. This is how my config file looks right now.

systemLog:
  destination: file
  path: /usr/local/var/log/mongodb/mongo.log
  logAppend: true
storage:
  dbPath:
net:
  bindIp: 127.0.0.1, ::1
  ipv6: true

However, this time I get another error when I try to restart my mongo community. This is the error right now.

Name              Status       User File
mongodb-community error  25600 root ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

After this error I checked this link

And I changed dbPath line to:

dbPath: /usr/local/var/mongodb

However, I get another error which has the sam error number like the first one (3584), like the one below:

Name              Status      User File
mongodb-community error  3584 root ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist

When I try to open the file in the error, I get an error like this.

The file /Users/macbook/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist does not exist.

Because I have deleted that file formerly.

This is the latest log.

macbook@SamsMacbook ~ % tail $(brew --prefix)/var/log/mongodb/mongo.log            
{"t":{"$date":"2022-10-07T19:11:33.261+03:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2022-10-07T19:11:33.261+03:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2022-10-07T19:11:33.261+03:00"},"s":"I",  "c":"CONTROL",  "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
{"t":{"$date":"2022-10-07T19:11:33.261+03:00"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":31154,"port":27017,"dbPath":"","architecture":"64-bit","host":"SamsMacbook.local"}}
{"t":{"$date":"2022-10-07T19:11:33.261+03: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-10-07T19:11:33.261+03:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"21.3.0"}}}
{"t":{"$date":"2022-10-07T19:11:33.261+03: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, ::1","ipv6":true},"storage":{"dbPath":true},"systemLog":{"destination":"file","logAppend":true,"path":"/usr/local/var/log/mongodb/mongo.log"}}}}
{"t":{"$date":"2022-10-07T19:11:33.262+03:00"},"s":"E",  "c":"NETWORK",  "id":23024,   "ctx":"initandlisten","msg":"Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Permission denied"}}
{"t":{"$date":"2022-10-07T19:11:33.262+03:00"},"s":"F",  "c":"ASSERT",   "id":23091,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":40486,"file":"src/mongo/transport/transport_layer_asio.cpp","line":1120}}
{"t":{"$date":"2022-10-07T19:11:33.262+03:00"},"s":"F",  "c":"ASSERT",   "id":23092,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}

Can you guys help me please? I’ve been struggling for days. Thank you.