Sync Gateway often not starting first time

61 views
Skip to first unread message

Ray Evans

unread,
Feb 17, 2015, 4:51:27 AM2/17/15
to mobile-c...@googlegroups.com
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,

Jens Alfke

unread,
Feb 17, 2015, 11:34:31 AM2/17/15
to mobile-c...@googlegroups.com
This sounds like a weird MS Windows-related issue with Couchbase Server … I’d ask on the forums.  (Sorry to pass the buck, but especially based on the earlier issue you linked to, it seems like we’ve drawn a blank and this doesn’t seem to be caused by anything in Sync Gateway itself.)

—Jens

Zack Gramana

unread,
Feb 17, 2015, 2:55:43 PM2/17/15
to mobile-c...@googlegroups.com
Ray,

Thanks for creating the issue on GH. We’re looking into it, and will post all follow-ups there.

Cheers.


--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0e1ad767-d2bb-4dc6-b7c4-9f660a0d2246%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ray Evans

unread,
Feb 23, 2015, 4:26:47 AM2/23/15
to mobile-c...@googlegroups.com
Thanks to Jens and Zachary for their replies. I will post some more information on this problem when it is resolved to this group.

Reply all
Reply to author
Forward
0 new messages