MongoDB has a pit error no mongos proxies found in seed list

Source: Internet
Author: User
Tags mongodb

Mongoose's newspaper when I upgraded from [email protected] to [email protected], there was a problem:

Unhandled rejection Mongoerror:no MONGOs proxies found in seed list

What to do, when I Google a bit found:

https://github.com/christkv/mongodb-core/issues/118

It turned out to be a MONGO bug.

Hey, yo! Look at the source, this is [email protected]

 Mongoose.prototype.createConnection = function (URI, options) {
var conn = new Connection (this);
This.connections.push (conn);

var rsoption = Options && (options.replset | | options.replset);
if (arguments.length) {
if (rgxreplset.test (arguments[0]) | | Checkreplicasetinuri (ARGUMENTS[0])) {
Conn.op ENSET.APPLY (conn, arguments);
} else if (Rsoption &&
(Rsoption.replicaset | | rsoption.rs_name)) {
Conn.openSet.apply (conn, arguments);
} else {
conn.open.apply (conn, arguments);
}
}

return conn;
};
Look at the lower version of [email protected]
Mongoose.prototype.createConnection = function (URI, options) {
var conn = new Connection (this);
This.connections.push (conn);

if (arguments.length) {
if (Rgxreplset.test (arguments[0]) | | Checkreplicasetinuri (ARGUMENTS[0])) {
CONN.OPENSET.APPLY (conn, arguments);
} else if (Options && options.replset &&
(Options.replset.replicaSet | | options.replset.rs_name)) {
CONN.OPENSET.APPLY (conn, arguments);
} else {
CONN.OPEN.APPLY (conn, arguments);
}
}

Return conn;
};
That is, in the low version, your MongoDB has made a replica set configuration and do not do replication set configuration can be connected to MongoDB, in high Ben if you make a copy set, the options in the parameters need to add a
Replset or Replset S is true, and the copy set is not made to be false.

MongoDB has a pit error no mongos proxies found in seed list

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.