Service 'indexer' exited with status 2

Hello,
I have a problem with the indexer.
It does restart caused by problem with always the same index IDX_DocumentStatusLog_deleted_UpdateTime

I did try to remove and rercreate the index without success.

Server Version is: Community Edition 7.0.2 build 6703

Service 'indexer' exited with status 2. Restarting. Messages:
0x200, 0x200, 0x0, 0x0, 0x0)
	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.13.7/go/src/net/http/transport.go:2577 +0xe5
encoding/json.(*Decoder).refill(0xc00645c840, 0x0, 0xa)
	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.13.7/go/src/encoding/json/stream.go:161 +0xeb
encoding/json.(*Decoder).readValue(0xc00645c840, 0x0, 0x0, 0x1)
	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.13.7/go/src/encoding/json/stream.go:136 +0x1dc
encoding/json.(*Decoder).Decode(0xc00645c840, 0xfa29c0, 0xc0092d0f50, 0x0, 0x0)
	/home/couchbase/.cbdepscache/exploded/x86_64/go-1.13.7/go/src/encoding/json/stream.go:63 +0x79
github.com/couchbase/cbauth/metakv.doRunObserveChildren.func1(0xc00657d290, 0xc00a0bbf20, 0xc005ff2c00)
	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbauth/metakv/metakv.go:288 +0x137
created by github.com/couchbase/cbauth/metakv.doRunObserveChildren
	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/cbauth/metakv/metakv.go:284 +0x20b

indexer.log excerpt

2022-05-30T08:45:19.635+00:00 [ERRO][FDB] doc_body checksum mismatch error in a database file '/opt/couchbase/var/lib/couchbase/data/@2i/wernsingMiddleware_IDX_DocumentStatusLog_deleted_UpdateTime_916454229088700517_0.index/data.fdb.0' crc 6b82c090 != 4884c6d0 (crc in doc) keylen 40963 metalen 0 bodylen 0 bodylen_ondisk 0 offset 760866750
2022-05-30T08:45:19.636+00:00 [ERRO][FDB] doc_body checksum mismatch error in a database file '/opt/couchbase/var/lib/couchbase/data/@2i/wernsingMiddleware_IDX_DocumentStatusLog_deleted_UpdateTime_916454229088700517_0.index/data.fdb.0' crc 1e5012ad != 85100778 (crc in doc) keylen 55818 metalen 0 bodylen 0 bodylen_ondisk 0 offset 147076224
2022-05-30T08:45:26.631+00:00 [Info] Indexer::ReadMemstats Time Taken 93.872┬Ás
2022-05-30T08:45:28.056+00:00 [ERRO][FDB] Error in reading the doc length metadata with offset 0 from a database file '/opt/couchbase/var/lib/couchbase/data/@2i/wernsingMiddleware_IDX_DocumentStatusLog_deleted_UpdateTime_916454229088700517_0.index/data.fdb.0'
2022-05-30T08:45:28.056+00:00 [ERRO][FDB] docio_read_doc_key error: read failure on offset 0 in a database file '/opt/couchbase/var/lib/couchbase/data/@2i/wernsingMiddleware_IDX_DocumentStatusLog_deleted_UpdateTime_916454229088700517_0.index/data.fdb.0' : FDB status -5, lastbid 0x0, curblock 0xffffffffffffffff, curpos 0x0

Any ideas?

Thx

The index data file seems to be corrupted. You can try to run forestdb_dump on the file and see if that works. Removing the index, removing the files (data.fdb.*) files and recreating the file should recreate the index. If you run into issues. please share the index log files. You can run cbcollect_info and get a zip file of the logs.