connect-mongostore icon indicating copy to clipboard operation
connect-mongostore copied to clipboard

Server Timeouts when connecting to replica set

Open ragulka opened this issue 10 years ago • 3 comments

I have configured MongoStore to connect to a replica set. It seems to connect just fine, but whenever I try to access my site, the requests simply time out. There must be an issue with replica set configuration or handling, because simply connecting to a single localhost DB works fine.

I am trying to connect to a MongoHQ replica set. I have provided the username, password, db.name, db.servers, db.replicaSetOptions (with rs_name and w:1).

Am I missing something, perhaps?

ragulka avatar Jun 11 '14 06:06 ragulka

It's probably a bug somewhere but a gist with the code you use would be helpful. I'm gonna have to look into this. In the meanwhile, there is an existing issue with replica sets, I'm not sure if it's related to yours, though.

diversario avatar Jun 11 '14 15:06 diversario

I setup a replica set in docker and it seems to be working as expected (gist). Obviously, not a real application but maybe you see something in configuration that's different from yours?

diversario avatar Jun 14 '14 21:06 diversario

This issue may be related to #19. There's a new version 0.1.2 if you care to try!

diversario avatar Jul 30 '14 01:07 diversario