Error when waiting for view

Hi,

I’m keep getting this error on sync gateway logs. Sync gateway stops working because of this. This is seen only in couchbase server 5.x versions. How to solve this ?

sync gateway logs :

2018-07-27T14:15:47.649Z Timeout waiting for view “access” to be ready for bucket “bucket” - retrying…
2018-07-27T14:15:47.649Z Timeout waiting for view “channels” to be ready for bucket “bucket” - retrying…
2018-07-27T14:15:47.649Z Timeout waiting for view “role_access” to be ready for bucket “bucket” - retrying…
2018-07-27T14:17:02.649Z Timeout waiting for view “channels” to be ready for bucket “bucket” - retrying…
2018-07-27T14:17:02.649Z Timeout waiting for view “access” to be ready for bucket “bucket” - retrying…
2018-07-27T14:17:02.649Z Timeout waiting for view “role_access” to be ready for bucket “bucket” - retrying…
2018-07-27T14:17:02.653Z Error waiting for view “channels” to be ready for bucket “bucket” - retrying…(1/18)
2018-07-27T14:17:02.654Z Error waiting for view “access” to be ready for bucket “bucket” - retrying…(1/18)
2018-07-27T14:17:02.757Z Error waiting for view “channels” to be ready for bucket “bucket” - retrying…(2/18)
2018-07-27T14:17:02.758Z Error waiting for view “access” to be ready for bucket “bucket” - retrying…(2/18)
2018-07-27T14:18:17.650Z Timeout waiting for view “role_access” to be ready for bucket “bucket” - retrying…
2018-07-27T14:18:17.907Z Timeout waiting for view “channels” to be ready for bucket “bucket” - retrying…
2018-07-27T14:18:17.908Z Timeout waiting for view “access” to be ready for bucket “bucket” - retrying…

Thanks in advance.

It looks like something triggered SG to reindex the views, and it’s taking longer than expected. Do you see anything about view reindexing on the Couchbase Admin UI?

Also, do you have any more context of what you did that led up to this?

Was this part of an upgrade?

These error messages look similar to the ones listed here: https://developer.couchbase.com/documentation/mobile/current/references/sync-gateway/release-notes/index.html#upgrading