Sync GW panicing

Hi,

I have noticed that sync gw is panicing every now and then.
In logs I can see:

2017-01-09T14:28:35.971Z WARNING: changeCache: Error unmarshaling doc “_sync:role:TA”: unexpected end of JSON input – db.(*changeCache).processPrincipalDoc() at change_cache.go:407
2017-01-09T14:28:35.971Z WARNING: changeCache: Error unmarshaling doc “_sync:role:TA”: unexpected end of JSON input – db.(*changeCache).processPrincipalDoc() at change_cache.go:407
panic: Error getting user role “TA”: MCResponse status=KEY_ENOENT, opcode=SET, opaque=0, msg: Not found

Do you have any idea why this is happening and how to workaround this?

BR

This is potentially a case of bad data, where there’s a reference to a non-existing role, but it could also be an issue for Sync Gateway. Can you file a ticket in the Sync Gateway issue tracker, with details including:

  • what version of Sync Gateway you’re running
  • whether the role ‘TA’ exists in your system
  • if possible, a (scrubbed) copy of the document _sync:role:TA directly from the bucket?

Thanks,
Adam