Hi there,
I got this error in my application:
set 22 09:35:52 dataPC httpserver.sh[16466]: HTTPserver: starting service\n
set 22 09:35:53 dataPC httpserver[16469]: Reading configuration file at /etc/dbedataviewer/config.ini
set 22 09:35:53 dataPC httpserver[16469]: getting batch codes
set 22 09:35:53 dataPC httpserver.sh[16466]: Traceback (most recent call last):
set 22 09:35:53 dataPC httpserver.sh[16466]: File "/usr/local/bin/HttpServer.py", line 38, in <module>
set 22 09:35:53 dataPC httpserver.sh[16466]: [DD_OPTIONS, DEFAULT_DD_OPTION] = CMANAGER.get_batch_codes()
set 22 09:35:53 dataPC httpserver.sh[16466]: File "/usr/local/bin/CouchbaseManager.py", line 67, in get_batch_codes
set 22 09:35:53 dataPC httpserver.sh[16466]: for code in batch_codes:
set 22 09:35:53 dataPC httpserver.sh[16466]: File "/home/decibel/.local/lib/python3.5/site-packages/couchbase/n1ql.py", line 474, in __iter__
set 22 09:35:53 dataPC httpserver.sh[16466]: raw_rows = self.raw.fetch(self._mres)
set 22 09:35:53 dataPC httpserver.sh[16466]: couchbase.exceptions.HTTPError: <RC=0x3B[HTTP Operation failed. Inspect status code for details], HTTP Request failed. Examine 'objextra' for full result, Results=1, C Source=(src/http.c,144), OBJ=ViewResult<rc=0x3B[HTTP Operation failed. Inspect status code for details], value={'errors': [{'msg': 'No index available on keyspace OperationsLog that matches your query. Use CREATE INDEX or CREATE PRIMARY INDEX to create an index, or check that your expected index is online.', 'code': 4000}], 'requestID': 'bc9d76c4-8111-4114-9d13-f248fce2101d', 'status': 'fatal', 'metrics': {'resultCount': 0, 'resultSize': 0, 'errorCount': 1, 'elapsedTime': '466.349µs', 'executionTime': '440.514µs'}}, http_status=404>>
set 22 09:35:53 dataPC httpserver[16469]: Closing database connections
set 22 09:35:57 dataPC httpserver.sh[16466]: Service started\n
set 22 09:35:57 dataPC httpserver.sh[16473]: HTTPserver: stopping Service\n
set 22 09:35:57 dataPC httpserver.sh[16473]: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
set 22 09:35:57 dataPC systemd[1]: Started HttpServer daemon.
weird thing is that:
- primary index exists
- after a service restart (it runs on ubuntu) the error disappears and everything works fine
Does someone have any hints?
Thanks in advance!