This morning I went to deploy my updated Meteor project onto Heroku.
I was upgrading from 1.1.0.3
to 1.4.1.1
.
Using the Meteor Buildpack Horse everything installed correctly, but the application was erroring out with the error;
MongoError: seed list contains no mongos proxies, replicaset connections requires the parameter replicaSet to be supplied in the URI or options object, mongodb://server:port/db?replicaSet=name
My MONGO_URL
was mongodb://u:p@url1:port,url2:port/db
so I changed it to;
mongodb://u:p@url1:port,url2:port/db?replicaSet=set-name
If I made a mistake with the replicaSet param I would get this error;
MongoError: no primary found in replicaset
Which seems sensible, since the replicaset didn't exist, but when I put the correct value in I get that original error again saying the seed list contains no proxies.
My replica set has a dash in the name, I don't know if that is relevant.
What I've tried
I've tried using the URL that throws this error in a Mongo client and it allows me to connect to the instance fine, so I know all the details are correct.
I've also tried escaping the replicaSet, so ?replicaSet=set\-name
this gave me the MongoError: no primary found in replicaset
error.
I have an open ticket with my MongoDB provider, but I suspect this is a Meteor/me issue!
mongodb://username:[email protected]:PORT1,url2.com:PORT2/database?replicaSet=set-000000a0aaaa0000a00000a0
– Aspia[email protected]
– PannoniaMONGO_OPLOG_URL
variable as well? Have you seen this issue? – Cuttlebone