Hi everyone,
I’ve installed the MongoDB Community Edition on my local PC following the official guide. However, I’m encountering an issue when trying to start MongoDB.
To start MongoDB, I ran:
sh
Copy code
sudo service mongod start
When I checked the status with:
sh
Copy code
sudo service mongod status
I got the following output:
yaml
Copy code
× mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Mon 2024-06-17 12:15:19 IST; 6s ago
Docs: https://docs.mongodb.org/manual
Process: 100545 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 100545 (code=dumped, signal=ILL)
CPU: 31ms
Jun 17 12:15:18 alpha1-HP-Laptop-15-ra0xx systemd[1]: Started MongoDB Database Server.
Jun 17 12:15:19 alpha1-HP-Laptop-15-ra0xx systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Jun 17 12:15:19 alpha1-HP-Laptop-15-ra0xx systemd[1]: mongod.service: Failed with result 'core-dump'.
Additionally, when I tried to access the log files, I found that there is no log file at the expected location:
c
Copy code
/var/log/mongodb/mongod.log
Has anyone encountered this issue before or have any suggestions on how to resolve it? Any help would be greatly appreciated!
Thanks!