0
我目前使用Django的芹菜,我有 pymongo版本1.11 MongoDB的版本1.8pymongo錯誤操作失敗
我得到下面的錯誤,我無法弄清楚什麼是錯誤。
[2011-09-23 02:06:59,544: WARNING/MainProcess] File "/usr/local/lib/python2.6/dist-packages/pymongo/database.py", line 293, in command
[2011-09-23 02:06:59,560: WARNING/MainProcess] msg, allowable_errors)
[2011-09-23 02:06:59,560: WARNING/MainProcess] File "/usr/local/lib/python2.6/dist-packages/pymongo/helpers.py", line 126, in _check_command_response
[2011-09-23 02:06:59,561: WARNING/MainProcess] raise OperationFailure(msg % response["errmsg"])
[2011-09-23 02:06:59,561: WARNING/MainProcess] pymongo.errors
[2011-09-23 02:06:59,561: WARNING/MainProcess] .
[2011-09-23 02:06:59,561: WARNING/MainProcess] OperationFailure
[2011-09-23 02:06:59,561: WARNING/MainProcess] :
[2011-09-23 02:06:59,561: WARNING/MainProcess] command SON([('findandmodify', 'messages'), ('query', {'queue': 'celery'}), ('remove', True)]) failed: exception: nextSafe(): { $err: "using a newer index version: { v: 1, key: { queue: 1 }, ns: "kombu_def...", code: 13658 }
你升級到MongoDB的2.0(或1.9.x的),然後回到1.8或更早?如果你回滾到1.8.3,你可以在集合上使用'reindex'命令;如果您回滾到1.8.2或更低版本,則應該刪除並重新創建索引。 – dcrosta