CBL_Puller 409 conflict error

103 views
Skip to first unread message

Victor Fernandez

unread,
Jul 21, 2015, 11:43:20 AM7/21/15
to mobile-c...@googlegroups.com
Hi
I have a p2p ipad network, only one of the devices (server) have connection to the sync gateway (defined using bonjour). So multiple ipads do p2p connection to the ipad server, but I'm having this error
"WARNING: CBL_Puller[http://10.10.3.227:59840/holamundo]: Unable to save remote checkpoint: Error Domain=CBLHTTP Code=409 "409 conflict" UserInfo=0x7b7e7460 {NSURL=http://10.10.3.227:59840/holamundo/_local/d387bdd0bf3a2474eb4d62e63e76744e647bb158, NSLocalizedFailureReason=conflict, NSLocalizedDescription=409 conflict"

I understand that this error means that several replications with the same configuration are running at the same time but I think that in my scenario is necessary. Is any workaround to handle this conflict?
P.S I'm using Native Couchbase Lite (Objective-c)

Regards!

Jens Alfke

unread,
Jul 21, 2015, 12:41:01 PM7/21/15
to mobile-c...@googlegroups.com

On Jul 21, 2015, at 8:43 AM, Victor Fernandez <vfern...@txmglobal.com> wrote:

I understand that this error means that several replications with the same configuration are running at the same time but I think that in my scenario is necessary.

There shouldn’t be collisions even in your scenario. The replication checkpoint ID is built from a bunch of values including the UUID of the client’s database as well as all the parameters like push/pull, filter, etc. Basically it should not be possible to get a conflict saving checkpoints, so we should treat this as a Couchbase Lite bug.

What version of Couchbase Lite are you using?
Do you have any way to reliably reproduce the problem?

—Jens

Victor Fernandez

unread,
Jul 21, 2015, 1:03:32 PM7/21/15
to mobile-c...@googlegroups.com

I attach an image of the .plisf file of the framework that I'm using.
The error could be reproduced when I have two or three iPads sending push/pull request to the same server (iPad with the biggest IP) but not always happen so maybe could be difficult to reproduce the error.

Jens Alfke

unread,
Jul 21, 2015, 2:07:54 PM7/21/15
to mobile-c...@googlegroups.com
On Jul 21, 2015, at 10:03 AM, Victor Fernandez <vfern...@txmglobal.com> wrote:

I attach an image of the .plisf file of the framework that I'm using.

You’ve got 1.0.3. (You can just do a Get Info on the framework in the Finder to get the version.)
It would be worth trying 1.1 to see if the problem goes away. I can’t remember whether any bugs like this got fixed in 1.1.

—Jens

Victor Fernandez

unread,
Jul 22, 2015, 2:41:42 PM7/22/15
to Couchbase Mobile
I have update to 1.0.4 cause 1.1 give a lot of memory troubles. In this version now I'm having this message
*** Assertion failure in -[CBL_FMDatabase beginUse], /Users/jenkins/jenkins/workspace/build_cblite_ios_104-enterprise/couchbase-lite-ios/vendor/fmdb/src/FMDatabase.m:967
What does it means?

Jens Alfke

unread,
Jul 22, 2015, 4:28:05 PM7/22/15
to mobile-c...@googlegroups.com
On Jul 22, 2015, at 11:41 AM, Victor Fernandez <vfern...@txmglobal.com> wrote:

I have update to 1.0.4 cause 1.1 give a lot of memory troubles.

What problems specifically? Could you file a bug report with details, please?

In this version now I'm having this message
*** Assertion failure in -[CBL_FMDatabase beginUse], /Users/jenkins/jenkins/workspace/build_cblite_ios_104-enterprise/couchbase-lite-ios/vendor/fmdb/src/FMDatabase.m:967

The message logged with it says:

***** THREAD-SAFETY VIOLATION: This database is being used on a thread it wasn't  created on! Please see the concurrency guidelines in the Couchbase Lite documentation. *****

Generally this means you’re calling a CBL object from a thread it wasn’t created on.

—Jens
Reply all
Reply to author
Forward
0 new messages