Mongod issues on startuo

Hi All, Hope you are doing good!. I am trying run mongod and it just stuck at below:

2019-01-25T12:01:44.456+0000 I COMMAND [LogicalSessionCacheRefresh] command config.$cmd command: createIndexes { createIndexes: “system.sessions”, indexes: [ { key: { lastUse: 1 }, name: “lsidTTLIndex”, expireAfterSeconds: 1800 } ], $db: “config” } numYields:0 reslen:98 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 2, W: 1 } }, Collection: { acquireCount: { w: 2 } } } protocol:op_msg 114ms

does anyone know what could be the issue.

Thanks and Regards,
Prasad.

Please share the command you are using.

Also check in mongodb logs to get detailed error information.

Kanika

Hi Kanika,

command executed was mongod

vagrant@m103:~$ mongod
2019-01-25T12:01:41.240+0000 I CONTROL [initandlisten] MongoDB starting : pid=8225 port=27017 dbpath=/data/db 64-bit host=m103
2019-01-25T12:01:41.242+0000 I CONTROL [initandlisten] db version v3.6.10
2019-01-25T12:01:41.242+0000 I CONTROL [initandlisten] git version: 3e3ab85bfb98875af3bc6e74eeb945b0719f69c8
2019-01-25T12:01:41.242+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
2019-01-25T12:01:41.242+0000 I CONTROL [initandlisten] allocator: tcmalloc
2019-01-25T12:01:41.242+0000 I CONTROL [initandlisten] modules: enterprise
2019-01-25T12:01:41.243+0000 I CONTROL [initandlisten] build environment:
2019-01-25T12:01:41.243+0000 I CONTROL [initandlisten] distmod: ubuntu1404
2019-01-25T12:01:41.243+0000 I CONTROL [initandlisten] distarch: x86_64
2019-01-25T12:01:41.243+0000 I CONTROL [initandlisten] target_arch: x86_64
2019-01-25T12:01:41.243+0000 I CONTROL [initandlisten] options: {}

-Prasad

This is the expected behaviour. When you run mongod, it is a mongo daemon process and it prints server log messages on the terminal unless there is logfile specified.
You can either start mongo in the new terminal or use --fork option with logFile while running mongod to keep using the same tab.
I would highly recommend that one should take M001 before starting M103. M001 is the basics course which will introduce all the necessary information related to Mongo.

Here is the documentation link that you can refer to: https://docs.mongodb.com/manual/reference/program/mongod/index.html

Kanika