Skip to content

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

@teambundledore

Description

@teambundledore

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions