L
L
Little Vasya2019-10-15 17:23:22
MongoDB
Little Vasya, 2019-10-15 17:23:22

mongod command not working?

When the mongod command gives out this entry, I tried to do mongod --port 27018 did not help
macOs Catalina, it used to be Mojave worked fine

2019-10-15T20:16:22.319+0600 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] MongoDB starting : pid=642 port=27017 dbpath=/data/db 64-bit host=admins-MacBook-Pro.local
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] db version v4.2.0
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] git version: a4b751dcf51dd249c5865812b390cfd1c0129c30
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] allocator: system
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] modules: none
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] build environment:
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten]     distarch: x86_64
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten]     target_arch: x86_64
2019-10-15T20:16:22.321+0600 I  CONTROL  [initandlisten] options: {}
2019-10-15T20:16:22.322+0600 I  STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating
2019-10-15T20:16:22.322+0600 I  NETWORK  [initandlisten] shutdown: going to close listening sockets...
2019-10-15T20:16:22.322+0600 I  NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
2019-10-15T20:16:22.322+0600 I  -        [initandlisten] Stopping further Flow Control ticket acquisitions.
2019-10-15T20:16:22.322+0600 I  CONTROL  [initandlisten] now exiting
2019-10-15T20:16:22.322+0600 I  CONTROL  [initandlisten] shutting down with code:100

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Little Vasya, 2019-10-15
@emilov

Found the problem https://stackoverflow.com/questions/58283257/mongo...

V
Vitaly Karasik, 2019-10-15
@vitaly_il1

NonExistentPath: Data directory /data/db not found.

Check that the directory exists and is accessible to the mongo user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question