Not able to restore backup after upgrading to Couchbase Server 5

I had backup my producction couchbase server db using cbbackup to restore to my local for testing using cbrestore. I have done this for a number of time before and works well for all the time.

Now once I have upgraded my couchbase server to 5.0 then I have repeated the same process to backup my production db and when I tried to restore it back then its showing some unexpected behaviour like

  1. all docs are not synced to the sync gateway
  2. When I try to fetch data from Couchbase Server using views are returing empty array
  3. Documents are listed in sync_gateway but not able to sync to the mobile app

Anyone one have any idea what I am missing?