pymongo错误操作失败

时间:2011-09-23 07:17:02

标签: python mongodb celery pymongo

我正在使用django的芹菜,我有 pymongo ver 1.11 mongodb ver 1.8

我收到了以下错误,我无法弄清楚错误是什么。

[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 }

1 个答案:

答案 0 :(得分:0)

我认为它与MongoDB索引的关系是使用与mongodb> = 2.0相关的版本1

请参阅:http://www.mongodb.org/display/DOCS/Index+Versions