Mongod.service status code 2 "Error opening config file: Is a directory"

I am unable to start mongo. Below is the error shown when I check the status of the mongod service

root@curtis:~# sudo systemctl status mongod.service
● mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2023-08-25 15:00:43 BST; 13min ago
     Docs: https://docs.mongodb.org/manual
  Process: 67006 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=2)
 Main PID: 67006 (code=exited, status=2)

Aug 25 15:00:43 curtis systemd[1]: Started MongoDB Database Server.
Aug 25 15:00:43 curtis mongod[67006]: Error opening config file: Is a directory
Aug 25 15:00:43 curtis mongod[67006]: try '/usr/bin/mongod --help' for more information
Aug 25 15:00:43 curtis systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 25 15:00:43 curtis systemd[1]: mongod.service: Failed with result 'exit-code'.

doing sudo journalctl -u mongod.service also shows the same error.

Aug 25 15:28:29 curtis systemd[1]: Started MongoDB Database Server.
Aug 25 15:28:29 curtis mongod[69085]: Error opening config file: Is a directory
Aug 25 15:28:29 curtis mongod[69085]: try '/usr/bin/mongod --help' for more information
Aug 25 15:28:29 curtis systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 25 15:28:29 curtis systemd[1]: mongod.service: Failed with result 'exit-code'.

below is the result of me running sudo systemctl status mongodb.service

Aug 25 15:28:29 curtis systemd[1]: Started MongoDB Database Server.
Aug 25 15:28:29 curtis mongod[69085]: Error opening config file: Is a directory
Aug 25 15:28:29 curtis mongod[69085]: try '/usr/bin/mongod --help' for more information
Aug 25 15:28:29 curtis systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 25 15:28:29 curtis systemd[1]: mongod.service: Failed with result 'exit-code'.

Additional information
I am on Ubuntu 10.04.6 LTS

Thanks in advance for any help anyone can provide.

The error clearly indicates that the configuration file is a directory. It has to be a file.

From the output of systemctl the configuration file is /etc/mongod.conf so if it is really a file and not a directory then we have a real problem.

I have no clue as to why it is a directory, but if it is really a directory you have to find the configuration file you really want to use and update the systemd unit file to use it.