We are on 2.10.0, which seems to be the latest version according to github releases.
The simplest solution you mention is the last resort, as it took us 77 days to sync from block 6M to current (no 2TB SSD servers available in our budget). We will likely abandon the endeavor of running our own indexer if we are unable to fix this instance.
Any ideas about the nature of the error? We couldn’t find it in the source code.
We found the indexer logs around the time the error was first encountered but nothing seems amiss:
Apr 21 10:06:51 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537413","time":"2022-04-21T10:06:51+02:00"}
Apr 21 10:06:52 k44 algorand-indexer[85573]: {"level":"info","msg":"round r=20537413 (41 txn) imported in 818.390509ms","time":"2022-04-21T10:06:52+02:00"}
Apr 21 10:06:56 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537414","time":"2022-04-21T10:06:56+02:00"}
Apr 21 10:06:56 k44 algorand-indexer[85573]: {"level":"info","msg":"round r=20537414 (30 txn) imported in 714.184434ms","time":"2022-04-21T10:06:56+02:00"}
Apr 21 10:07:00 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537415","time":"2022-04-21T10:07:00+02:00"}
Apr 21 10:07:01 k44 algorand-indexer[85573]: {"error":"AddBlock() err: TxWithRetry() err: attemptTx() err: AddBlock() eval err: EvalForIndexer() err: overflowed subtracting rewards for block 20537415","level":"error","msg":"adding block 20537415 to database failed","time":"2022-04-21T10:07:01+02:00"}
Apr 21 10:07:02 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537415","time":"2022-04-21T10:07:02+02:00"}
Apr 21 10:07:02 k44 algorand-indexer[85573]: {"error":"AddBlock() err: TxWithRetry() err: attemptTx() err: AddBlock() eval err: EvalForIndexer() err: overflowed subtracting rewards for block 20537415","level":"error","msg":"adding block 20537415 to database failed","time":"2022-04-21T10:07:02+02:00"}
Apr 21 10:07:03 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537415","time":"2022-04-21T10:07:03+02:00"}
Apr 21 10:07:04 k44 algorand-indexer[85573]: {"error":"AddBlock() err: TxWithRetry() err: attemptTx() err: AddBlock() eval err: EvalForIndexer() err: overflowed subtracting rewards for block 20537415","level":"error","msg":"adding block 20537415 to database failed","time":"2022-04-21T10:07:03+02:00"}
Apr 21 10:07:04 k44 algorand-indexer[85573]: {"level":"info","msg":"adding block 20537415","time":"2022-04-21T10:07:04+02:00"}
Apr 21 10:07:04 k44 algorand-indexer[85573]: {"error":"AddBlock() err: TxWithRetry() err: attemptTx() err: AddBlock() eval err: EvalForIndexer() err: overflowed subtracting rewards for block 20537415","level":"error","msg":"adding block 20537415 to database failed","time":"2022-04-21T10:07:04+02:00"}