Mongodb.service not coming up

Hi All,

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

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

[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

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?

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 :wink:

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.

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