McKay Bonham
06/14/2022, 12:21 PM<mongodb://mongo_db_admin>:<password for mongo_db_admin>@127.0.0.1/<database name>?retryWrites=true&w=majority&ssl=true
I've tried many variations on this URL, including putting a port after the hostname. I'm presenting the version that seems to get furthest before throwing an error.McKay Bonham
06/14/2022, 12:24 PMError: MongoDB error
Server selection timeout: No available servers. Topology: { Type: Unknown, Servers: [ { Address: 127.0.0.1:27017, Type: Unknown, Error: An error occurred during DNS resolution: could not resolve "127.0.0.1": InvalidDNSNameError }, ] }
0: migration_core::state::SchemaPush
at migration-engine/core/src/state.rs:349
matt murphy
06/14/2022, 12:25 PM<mongodb+srv://admin>
matt murphy
06/14/2022, 12:25 PM+srv
McKay Bonham
06/14/2022, 12:25 PMstream {
server {
listen 81;/var/storage/wd2tb/certificate/sanchyan.tech/privatekey.pem;
proxy_connect_timeout 20s;
proxy_timeout 10m;
proxy_pass mongo_backend;
}
upstream mongo_backend {
server 127.0.0.1:27017;
}
}
McKay Bonham
06/14/2022, 12:27 PM+srv
in, it fails faster, with error:
Error: MongoDB error
An error occurred during DNS resolution: no record found for name: _mongodb._tcp.127.0.0.1. type: SRV class: IN
0: migration_core::state::SchemaPush
at migration-engine/core/src/state.rs:349
Nurul
06/16/2022, 7:27 AMMcKay Bonham
06/18/2022, 1:24 PMNurul
06/20/2022, 12:10 PM