A lot of error & warning for syncgateway 2.0


#1

Hi developer,

When I install couchbase 5.5.1 & syncgateway 2.0 on windows 10. I saw a lot of errors like this. It makes 125mb for error file on sync_gateway_error.log. So could you help me find what’s problem?

WARNING: Error processing DCP stream - will attempt to restart/reconnect if appropriate: pkt.Receive, err: EOF. – base.(*DCPReceiver).OnError() at dcp_feed.go:137
_time=2018-08-28T08:11:10.057-07:00 _level=INFO _msg=Using plain authentication for user xxxx
WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 881, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.go:263
WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 735, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.go:263
WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 802, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.go:263

Thank you so much.


#2

In general, the DCP rollback is detecting that Sync Gateway’s persisted DCP checkpoint is ahead of Couchbase Server’s current DCP checkpoint, which triggers a rollback. This would be expected if you did the following steps:

  • Start Sync Gateway
  • Do reads/writes/deletes
  • Stop Sync Gateway
  • Flush the Couchbase Server bucket
  • Start Sync Gateway

Can you give more detailed steps on what you did to reproduce the DCP rollbacks?


#3

Thank @traun,

I agree with your answer with this line for rollback action:

WARNING: DCP RollbackEx request - rolling back DCP feed for: vbucketId: 802, rollbackSeq: 0. – base.(*DCPReceiver).RollbackEx() at dcp_feed.go:263

But how about this line?

WARNING: Error processing DCP stream - will attempt to restart/reconnect if appropriate: pkt.Receive, err: EOF. – base.(*DCPReceiver).OnError() at dcp_feed.go:137