I recently upgraded from couchbase/sync-gateway:3.0.4-community to couchbase/sync-gateway:3.1.0-community (using these images for my docker container).
I have one database, and after the upgrade it is not possible to get this db online.
When starting sync gateway, I get the following error:
Database has collections that require resync before it can go online: [_default._default] -- rest.(*ServerContext).TakeDbOnline() at server_context.go:1069
I have done a resync of the db. It seems it is not possible to specifically resync a collection.
I can tried to resync with “regenerate_sequences: true”, which will temporarily get the db online, but after stopping and starting the container, I’m back at the beginning.
I ran into this issue while testing on a local dev deployment - so in that case I just set up a fresh installation.
Unfortunately, I don’t know how to reliably recover from this. Hope someone from couchbase can help you.
I have identified the use-case,
when we upgrade from couchbase/sync-gateway:3.0.4-community to couchbase/sync-gateway:3.1.0-community
using a docker-compose that looks like
couchbase gateway will not be put online automatically, it will fail with 503 DB is currently under maintenance -- rest.(*handler).writeError() at handler.go:1306
I have to run _offline, push the config again and then to put it back online.
This will make it work.
Using the docker-compose file by creating a brand new cluster I don’t have this issue, so it seems a backwards compatibility problem.