Hello! I’m using the Python SDK to create some indices and during script execution I get the following without fail:
Traceback (most recent call last):
File "manage_indexes.py", line 112, in <module>
main(args.operation, args.environment, bucket_pw)
File "manage_indexes.py", line 99, in main
create_indexes(cluster, node, bucket_passwd)
File "manage_indexes.py", line 48, in create_indexes
create_index(bucket, node, app)
File "manage_indexes.py", line 75, in create_index
bucket_mgr.n1ql_index_build_deferred()
File "/Users/mmorri929/venvs/couchbase/lib/python2.7/site-packages/couchbase/bucketmanager.py", line 497, in n1ql_index_build_deferred
return IxmgmtRequest(self._cb, 'build', info).execute()
File "/Users/mmorri929/venvs/couchbase/lib/python2.7/site-packages/couchbase/_ixmgmt.py", line 160, in execute
return [x for x in self]
File "/Users/mmorri929/venvs/couchbase/lib/python2.7/site-packages/couchbase/_ixmgmt.py", line 147, in __iter__
raw_rows = self.__raw.fetch(self._mres)
couchbase.exceptions._NotFoundError_0xD (generated, catch NotFoundError): <RC=0xD[The key does not exist on the server], HTTP Request failed. Examine 'objextra' for full result, Results=1, C Source=(src/http.c,144), OBJ=ViewResult<rc=0xD[The key does not exist on the server], value={u'status': u'success', u'metrics': {u'elapsedTime': u'446.002501ms', u'executionTime': u'445.930043ms', u'resultSize': 353, u'resultCount': 1, u'sortCount': 1}, u'results': [], u'requestID': u'6d03c245-de2b-4c21-b832-8fe43568bc7c', u'signature': {u'*': u'*'}}, http_status=200>>
The strange part about this is that some of the indices are created fine and I cannot, for the life of me, figoure what what key it’s talking about that might be missing. Examining objextra as the message suggest yields the following message which I can’t really glean anything from either:
ViewResult<rc=0xD[The key does not exist on the server], value={u'status': u'success', u'metrics': {u'elapsedTime': u'423.019003ms', u'executionTime': u'422.95924ms', u'resultSize': 1378, u'resultCount': 4, u'sortCount': 4}, u'results': [], u'requestID': u'ac04380b-861f-431f-9000-eb096665b702', u'signature': {u'*': u'*'}}, http_status=200>
Does anyone have any idea what this could be or what additional steps I can add to help troubleshoot what is causing this issue?