Thanks for the detailed explanation @Stennie_X
-
the VM has a reserved static IP (attached) … but when i run
ifconfig -a | grep "inet"
it does not show up.
-
Logs show as
2020-07-10T00:00:07.406+0000 I CONTROL [main] ***** SERVER RESTARTED *****
2020-07-10T00:00:07.414+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none
'
2020-07-10T00:00:07.645+0000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] MongoDB starting : pid=10069 port=27017 dbpath=/var/lib/mongo 64-bit host=cordboard-
prod1
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] db version v4.2.8
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] git version: 43d25964249164d76d5e04dd6cf38f6111e21f5f
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1c FIPS 28 May 2019
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] allocator: tcmalloc
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] modules: none
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] build environment:
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] distmod: rhel80
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] distarch: x86_64
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] target_arch: x86_64
2020-07-10T00:00:07.646+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1,35.232.21.94", port
: 27017 }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid", timeZoneInfo: "/usr/share/zoneinfo" }, storage: { dbP
ath: "/var/lib/mongo", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" }
}
2020-07-10T00:00:07.647+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
2020-07-10T00:00:07.648+0000 I CONTROL [initandlisten] now exiting
2020-07-10T00:00:07.648+0000 I CONTROL [initandlisten] shutting down with code:48
- I have this IP configured to a domain that is working (using an A record -> pointing to this static IP)
Maybe something to do with the IP address on the VM?