Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in Moped::Errors::ConnectionFailure: Could not connect to a primary node for replica set #144

Open
teambundledore opened this issue Oct 10, 2017 · 0 comments

Comments

@teambundledore
Copy link
Contributor

teambundledore commented Oct 10, 2017

This issue is lodged on the mongoid/moped account here
We can replicate this issue in development quite easily, just run rails console and type in a simple command like: 'User.count'

moped

If in mongoid.yml we put in the hosts as mongodb:27017 and restart server, it runs on the browser, but not on console. If we put localhost:27017, it runs on console but not on browser.
There are many variations of this issue. Will update as we come across them !

EDIT 1: Adding image for the browser versio of the error.
screenshot from 2017-10-11 03-07-29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant