How can I avoid this warning?

This warning repeatedly will occurs.

/usr/local/lib/ruby/gems/1.9.1/gems/mongo-1.2.4/lib/mongo/connection.rb:469:in
`connect’: Failed to connect to a master node at localhost:27017
(Mongo::ConnectionFailure)

Someone explain for this warning.Example:require rubygems and

require mongodb. So,Im also follow this way to solve this warning.But i
cant get it.

So,Please anyone explain this warning.

Thanks and Regards…

It is saying that mongo does not appear to be running or at least it
is not running on the machine that your script is running on or is not
running on port 27017.

Are you running mongo on your machine? It is just the same as running
MySQL or PostgreSQL in that it is an independent service. Unlike
SQLite.

Peter H. wrote in post #999006:

It is saying that mongo does not appear to be running or at least it
is not running on the machine that your script is running on or is not
running on port 27017.

Are you running mongo on your machine? It is just the same as running
MySQL or PostgreSQL in that it is an independent service. Unlike
SQLite.

Thanks! It helped me too.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs