When I try to start the Sync Gateway (from Windows 8,1, in a DOS window), it usually fails a few times with the following error before starting successfully:
09:09:49.350987 WARNING: Error from Incr in _reserveSequences(0): MCResponse status=DELTA_BADVAL, opcode=INCREMENT, opaque=0, msg: Non-numeric server-side value for incr or decr -- db.(*sequenceAllocator)._reserveSequences() at sequence_all
ocator.go:59
09:09:49.350987 FATAL: Error opening database: MCResponse status=DELTA_BADVAL, opcode=INCREMENT, opaque=0, msg: Non-numeric server-side value for incr or decr -- rest.RunServer() at config.go:415
Does anyone have any idea what's causing this? We are using the latest versions of the Sync Gateway and the Couchbase server (versions 3.0.2 and 1.0.3, respectively). Our application uses an app bucket and a corresponding shadow bucket.
Several references on the Internet (e.g.
https://github.com/couchbase/sync_gateway/issues/302) indicate that this problem can be caused by the counter stored in the _sync:seq document (in the shadow bucket) having been corrupted. However, I have checked this, and this document contains a single whole number (only), which I believe is correct. Also, in the post above, it was reported that this problem disappeared when the latest version of the server was installed - this is a little worrying because, as I say, we are using the latest versions of the server and the gateway,