# Mongo db service not started on Rocky Linux 9

**URL:** <https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757>\
**Category:** Rocky Linux Help & Support\
**Created:** [July 20, 2023, 9:09am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757 "2023-07-20T09:09:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajkumarn](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Rajkumarn](https://forums.rockylinux.org/u/Rajkumarn)\
**Post date:** [July 20, 2023, 9:09am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/1 "2023-07-20T09:09:51Z")

</div>

Mongo DB version 6 installed on Rocky linux 9 server but the mongodb service is getting failed not started

Active: failed (Result: core-dump) since Thu 2023-07-20 14:00:13 +04; 4s ago

 ![mongodb_error_rockylinux9](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/f/f240ae4bcb9a054d94592e99b0502bb6da41fcfc.png)

Monogo db version 6 can support Rocky linux 9?  
Please give me solution foe this issue.

---

<div class="post-metadata">

**Author:** ![lumarel](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/lumarel/32/909_2.png) [@lumarel](https://forums.rockylinux.org/u/lumarel)\
**Post date:** [July 20, 2023, 9:22am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/2 "2023-07-20T09:22:39Z")

</div>

As of MongoDBs documentation Rocky 9 is supported:

> **[Install MongoDB Community Edition on Red Hat or CentOS — MongoDB Manual](https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-red-hat/#platform-support)**

---

<div class="post-metadata">

**Author:** ![Rajkumarn](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Rajkumarn](https://forums.rockylinux.org/u/Rajkumarn)\
**Post date:** [July 20, 2023, 9:30am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/3 "2023-07-20T09:30:35Z")

</div>

Thank you for responding!!

Yes, I have inatalled used the above official link only.  
But the service is not started getting failed on my vm. I have tried with another vm on rocky linux 9 there also getting the same error.

---

<div class="post-metadata">

**Author:** ![lumarel](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/lumarel/32/909_2.png) [@lumarel](https://forums.rockylinux.org/u/lumarel)\
**Post date:** [July 20, 2023, 9:33am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/4 "2023-07-20T09:33:57Z")

</div>

Could you check the system journal (i.e. `journalctl -r`) if there are any other messages, the one in the screenshot does not really tell a whole lot (don’t have access to a system right now)

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 20, 2023, 9:47am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/5 "2023-07-20T09:47:30Z")

</div>

Seems strange, I’ve just followed this: [https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-red-hat/](https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-red-hat/) and installed MongoDB 6.0.8 on Rocky 9 and it just worked. The only things I did were:

```auto
nano -w /etc/yum.repos.d/mongodb.repo
dnf install mongodb-org
systemctl enable mongod
systemctl start mongod

```

the first command I pasted the repo config, the second installed MongoDB, third and fourth enabling and starting mongod.

What cpu/ram has your VM/server got? Mine is 2cpu, 4gb ram. Yours seems to have core-dumped for some reason, but the logs @lumarel asked for may explain more.

MongoDB seems to be the problem here, you would be better asking on the MongoDB forums since this is a MongoDB problem, not Rocky. Help here could be somewhat limited, depending on the type of error appearing, and how many MongoDB experts are here. Check your VM/server requirements are enough first in terms of cpu/ram/disk, and then we’ll see based on further logs provided by you.

Another possibility that I found with google is that if you had MongoDB 5 installed, then changes between 5 and 6 could also cause this. Or perhaps this: [Status of Mongod returns core-dump - Installation & Upgrades - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/t/status-of-mongod-returns-core-dump/130769)

---

<div class="post-metadata">

**Author:** ![Rajkumarn](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Rajkumarn](https://forums.rockylinux.org/u/Rajkumarn)\
**Post date:** [July 20, 2023, 10:08am UTC](https://forums.rockylinux.org/t/mongo-db-service-not-started-on-rocky-linux-9/10757/6 "2023-07-20T10:08:34Z")

</div>

Okay Thank you @iwalker  
have a great day!!!
