Recovering a corrupted mongodb database

Hello,

Sorry I had to edit your post, the mongod output was very hard to read.

Can I ask what database are you trying to repair? If its Graylog database then this command might not be right.

sudo mongod --repair --dbpath /var/lib/mongodb

To help you further we may need more information to help us, help you. For a better understand please have a look at this posts.

When posting configuration files or Logs please use the markup so its easier to read and understand.

Have you check the status on all your services ( i.e. Graylog, Elasticsearch, MongoDb)?
Did you check your Firewalls, selinux/apparmor, etc…?

Data directory /data/db not found.

Did you check you mongo.config file where the db path is located?

vi /etc/mongod.conf

Should look something like this

# Where and how to store data.
storage:
  dbPath: /var/lib/mongo
  journal:
    enabled: true

This is also mentioned in your log output.

by adding the 'storage.dbPath' option in the configuration file."

Maybe compare your other MongoDb configuration file and match them up so there both the same. Just an idea.