2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails4でMongodb使用時にDBエラーが出たときメモ

2
Posted at

久しぶりにlocalで動かしてみたら、APIが動かなくなっていた。

Moped::Errors::ConnectionFailure in Api::V1::EntriesController#index
Could not connect to a primary node for replica set #<Moped::Cluster:70200329217200 @seeds=[<Moped::Node resolved_address="127.0.0.1:27017">]>

調べてみたらDBサーバーが動いてないだけだった。

$ mongod --config /usr/local/etc/mongod.conf

でなおった

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?