Hi,
Yes mongodb starts as soon as the server boots. Just checked and it says that it fails to start
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: **failed** (Result: exit-code) since Mon 2020-09-07 12:53:50 UTC; 2h 1min ago
Docs: https://docs.mongodb.org/manual
Main PID: 1273 (code=exited, status=2)
Sep 07 12:53:50 me systemd[1]: Started MongoDB Database Server.
Sep 07 12:53:50 me mongod[1273]: Error opening config file: Permission denied
Sep 07 12:53:50 me mongod[1273]: try '/usr/bin/mongod --help' for more information
Sep 07 12:53:50 me systemd[1]: **mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT**
Sep 07 12:53:50 me systemd[1]: **mongod.service: Failed with result 'exit-code'.**
Sep 07 12:53:54 me systemd[1]: **/lib/systemd/system/mongod.service:10: PIDFile= references a path below legacy directory /var/run/, updating /var/run/mongodb/mongod.pid → /run/mongodb/mongod.pid; please update the unit file accordingly.**
This is the mongo.log output log:
020-09-03T13:53:10.097+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-09-03T13:53:10.195+0000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] MongoDB starting : pid=1989 port=27017 dbpath=/var/lib/mongodb 64-bit host=me
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] db version v4.2.9
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] git version: 06402114114ffc5146fd4b55402c96f1dc9ec4b5
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1c 28 May 2019
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] allocator: tcmalloc
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] modules: none
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] build environment:
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] distmod: ubuntu1804
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] distarch: x86_64
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] target_arch: x86_64
2020-09-03T13:53:10.196+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLo>
2020-09-03T13:53:10.196+0000 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted
2020-09-03T13:53:10.196+0000 F - [initandlisten] Fatal Assertion 40486 at src/mongo/transport/transport_layer_asio.cpp 684
2020-09-03T13:53:10.196+0000 F - [initandlisten]
What can I do to fix this mess?