-->

2017年5月2日星期二

MongoDB: Quorum check failed because not enough voting nodes responded

以下這個error message是提醒你開啟 localhost:27002 的mongod。

Error:
Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: localhost:27001; the following nodes did not respond affirmatively: localhost:27002 failed will the L K s u A…
Error Code: 74


步驟:
1. rs.add("localhost:27002") return eror: Quorum check failed...
2. mongod --dbpath --port 27002
3. rs.add("localhost:27002") return success.
4. done.

MongoDB: Unclean full-time diagnostic data capture shutdown detected

如果run mongod 的時候出現以下的error message的話!

Error:
Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK

那麼直接刪除一個叫 diagnostic.data 的檔案,之後重新再run mongod就可以解決了。

diagnostic.data 的檔案應該儲存在database folder內,例如 c:\data\db\ folder 內.

非常簡單,不過都寫出步驟:
1. stop mongod
2. kill mongod process
3. del c:\data\db\diagnostic.data
4. run mongod
5. done.