# Mongodb.service not coming up

**URL:** https://community.graylog.org/t/mongodb-service-not-coming-up/8067
**Category:** Graylog Central (peer support)
**Created:** [December 17, 2018, 5:00pm UTC](https://community.graylog.org/t/mongodb-service-not-coming-up/8067 "2018-12-17T17:00:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tafsir\_Alam](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@Tafsir\_Alam](https://community.graylog.org/u/Tafsir_Alam)
#### Post date: [December 17, 2018, 5:00pm UTC](https://community.graylog.org/t/mongodb-service-not-coming-up/8067/1 "2018-12-17T17:00:31Z")

</div>

Hi All,

mongodb.service is not started. Always giving this error.

```auto
Dec 17 06:04:23 es03.mykaarma.com graylog-collector-sidecar[967]: time="2018-12-17T06:04:23-08:00" level=error msg="[RequestConfiguration] Fetching configuration failed: Get http://192.168.201.71:9000/api/plugins/org.graylog.plugins.collector/8e6ece50-43c3-4093-89b9-200034be1ca1?tags=%5B%22graylog-web%22%5D: dial 
Dec 17 06:04:23 es03.mykaarma.com graylog-collector-sidecar[967]: time="2018-12-17T06:04:23-08:00" level=error msg="[UpdateRegistration] Failed to report collector status to server: Put http://192.168.201.71:9000/api/plugins/org.graylog.plugins.collector/collectors/8e6ece50-43c3-4093-89b9-200034be1ca1: dial tcp 19

```

Also

```auto
[root@es03 ~]# mongod
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] MongoDB starting : pid=7367 port=27017 dbpath=/data/db 64-bit host=es03.mykaarma.com
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] db version v3.2.20
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] git version: a7a144f40b70bfe290906eb33ff2714933544af8
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] allocator: tcmalloc
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] modules: none
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] build environment:
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] distmod: rhel70
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] distarch: x86_64
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] target_arch: x86_64
2018-12-17T09:02:17.419-0800 I CONTROL [initandlisten] options: {}
2018-12-17T09:02:17.440-0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2018-12-17T09:02:17.440-0800 I CONTROL [initandlisten] dbexit: rc: 100
[root@es03 ~]# 

```

Please help me to solve this.

Graylog version - 2.4.6  
Elasticsearch Version - 5.6

Thanks

---

<div class="post-metadata">

### Author: ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)
#### Post date: [December 17, 2018, 7:46pm UTC](https://community.graylog.org/t/mongodb-service-not-coming-up/8067/2 "2018-12-17T19:46:43Z")

</div>

to be honest - the first error is from the collector sidecar - not mongodb.

What is your issue, how did you have installed, what have you tried to solve your problem?

---

<div class="post-metadata">

### Author: ![Totally\_Not\_A\_Robot](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/totally_not_a_robot/32/3353_2.png) [@Totally\_Not\_A\_Robot](https://community.graylog.org/u/Totally_Not_A_Robot)
#### Post date: [December 18, 2018, 9:22am UTC](https://community.graylog.org/t/mongodb-service-not-coming-up/8067/3 "2018-12-18T09:22:22Z")

</div>

> [@jan](#):
>
> to be honest - the first error is from the collector sidecar - not mongodb.

In this case, the Sidecar is telling you it cannot talk to the Graylog server you specified as the source for collector configuration. That could be a networking issue, or because the Mongo backend is missing 😉

The problem with Mongo is clear as day:

`exception in initAndListen: 29 Data directory /data/db not found., terminating`

When you installed MongoDB you did not create the data directory.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [January 1, 2019, 9:22am UTC](https://community.graylog.org/t/mongodb-service-not-coming-up/8067/4 "2019-01-01T09:22:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
