I connect to remote sharded DB cluster. It connects OK, but if I insert document I get error:
File "/home/df/SlickJump/WishNuServer/server.py", line 522, in POST unit = wndb.pages.find_one({'pagehash': thash, 'version': Version}) File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 598, in find_one for result in self.find(spec_or_id, *args, **kwargs).limit(-1): File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 814, in next if len(self.__data) or self._refresh(): File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 763, in _refresh self.__uuid_subtype)) File "/usr/local/lib/python2.7/dist-packages/pymongo/cursor.py", line 720, in __send_message self.__uuid_subtype) File "/usr/local/lib/python2.7/dist-packages/pymongo/helpers.py", line 105, in _unpack_response error_object["$err"]) OperationFailure: database error: setShardVersion failed host: db1s0:27017 { errmsg: "exception: remote client 5.101.101.150:46117 tried to initialize this host (db1 7) as shard shard0000, but shard name was previously initialized...", code: 13298, ok: 0.0 }
In MongoDB logs in looks:
2014-07-09T13:26:40.666+0000 [conn11] Assertion failed while processing query op for wishnudb.pages :: caused by :: 10429 setShardVersion failed host: db1s0:27017 { "exception: remote client 5.101.101.150:46219 tried to initialize this host (db1s0:27017) as shard shard0000, but shard name was previously initialized...", code: 1 k: 0.0 }
Why do i get this error? There is a reason?