Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4263

Mongo No Server available error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      Hello,

      I am running Ruby On Rails 4.2.4 on CentOS Linux 7.x using Apache/Passenger.

      When I make a request to my rails server, it gets this error:

      Mongo::Error::NoServerAvailable (No server is available matching preference: #<Mongo::ServerSelector::Primary:0x70292675833320 tag_sets=[] server_selection_timeout=30 local_threshold=0.015>)

      I am able to run this code from my rails console without error. Don't know whey I am getting this error only when it runs through my Passenger/rails server.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kxkannan Krishnan Kannan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: