These two apps, a user front line and an Admin app, shares the same db on Mlab. I’ve just updated them to Meteor 1.8.3 to make sure I could follow the compulsory migration demand from Mlab to Altas. Meteor 1.8.2 is the minimum requirement. I have even upgraded the the user front-end to the latest Meteor 1.11 But I am still in the works with the Admin as some packages are incompatible.
These apps are in production and I have been testing the migration using Heroku and my own development machine. I have created a free cluster in Atlas with some sample Data with the same MongoDB structure. On both environments and on both versions 1.8.3 and 1.11 (in the case of the front-end), I am having the following issues and could not connect to Atlas:
- Connecting with string at terminal:
I have the following error:
Error: invalid schema, expected mongodb
It seems like that even Meteor 1.11 does not recognized mongo+srv nomenclature.
- If changed to old nomenclature at terminal:
$ MONGO_URL="mongodb://USER:PASSWORD@cluster0-shard-00-00.spiol.gcp.mongodb.net:27017,cluster0-shard-00-01.spiol.gcp.mongodb.net:27017,cluster0-shard-00-02.spiol.gcp.mongodb.net:27017/DBNAME?ssl=true&replicaSet=atlas-pwy3up-shard-0&authSource=admin&retryWrites=true&w=majority" meteor
It gives me:
Error [ERR_TLS_CERT_ALTNAME_INVALID] [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: cluster0-shard-00-00.spiol.gcp.mongodb.net. is not in the cert's altnames: DNS:*.gcp.mongodb.net, DNS:gcp.mongodb.net
Of course, if I change to ssl-false, connection is dropped.
MongoNetworkError: failed to connect to server [cluster0-shard-00-00.spiol.gcp.mongodb.net:27017] on first connect [MongoNetworkError: connection 5 to cluster0-shard-00-00.spiol.gcp.mongodb.net:27017 closed
I have researched for any special requirements regarding SSL and got this video Connect meteor to Atlas 2020 working fine, doing exactly like I’ve been going.
Anyone can help me?
- Why mongo+srv does not work?
- Why can’t connect to Atlas. Will my production app suffer the same issue?