Issue reported on forums:
Based on the logs there, it looks like Sync Gateway successfully connects to the bucket, but then hangs when trying to retrieve/validate the design docs. This doesn't timeout/fail/otherwise report an error on the Sync Gateway side. This might be a gocb issue, where gocb is retrying or not setting a timeout on the view request, and so ends up stuck indefinitely.
Seems likely that Couchbase Server is also being restarted along with SG, and that this has to do with attempting to retrieve design docs when the bucket is reachable but the view engine isn't quite ready.
Migrated from: https://github.com/couchbase/sync_gateway/issues/3875