replication errors on android not clear

156 views
Skip to first unread message

Michael Hines

unread,
Jun 4, 2014, 10:24:27 AM6/4/14
to mobile-c...@googlegroups.com
Hi folks,

I'm receiving this error on Android with the community 1.0.0 release from the website:

This destination of this replication is CouchDB version 1.4.0 from my local Ubuntu distribution.

(The same error happens regardless whether I use HTTPS/HTTP with or without SSL). It's hard to understand what these errors mean.

I/System.out( 5922): COUCHBASE: Pull Replication status changed: com.couchbase.lite.replicator.Replication$ChangeEvent@427e0860
I/System.out( 5922): COUCHBASE: Replicator processed 0 / 0
E/RemoteRequest( 5922): Got error status: 400 for org.apache.http.client.methods.HttpGet@42931e98.  Reason: Bad Request
W/Sync    ( 5922): com.couchbase.lite.replicator.Replication$8@42931a40: error getting remote checkpoint
E/Sync    ( 5922): Puller@427dab18[https://192.168.1.93:6984]: Progress: set error = org.apache.http.client.HttpResponseException: Bad Request
I/System.out( 5922): COUCHBASE: Pull Replication status changed: com.couchbase.lite.replicator.Replication$ChangeEvent@4293e8e0
I/System.out( 5922): COUCHBASE: Replicator processed 0 / 0
I/System.out( 5922): COUCHBASE: Pull Replication status changed: com.couchbase.lite.replicator.Replication$ChangeEvent@4293f008
I/System.out( 5922): COUCHBASE: Replicator processed 0 / 0
E/Sync    ( 5922): Puller@427dab18[https://mica.hinespot.com:6984]: Progress: set error = null
I/System.out( 5922): COUCHBASE: Pull Replication status changed: com.couchbase.lite.replicator.Replication$ChangeEvent@429403e0
I/System.out( 5922): COUCHBASE: Replicator processed 0 / 0

The output stops after that when the app goes to sleep, but it's more or less the same.

Any ideas? Do I need to downgrade/upgrade CouchDB on the server side?

Thanks,

- Michael R. Hines

Michael Hines

unread,
Jun 4, 2014, 10:27:13 AM6/4/14
to mobile-c...@googlegroups.com
Forgot to mention: This is a pull replication from server to device.

Traun Leyden

unread,
Jun 4, 2014, 10:50:02 AM6/4/14
to mobile-c...@googlegroups.com
E/RemoteRequest( 5922): Got error status: 400 for org.apache.http.client.methods.HttpGet@42931e98.  Reason: Bad Request
W/Sync    ( 5922): com.couchbase.lite.replicator.Replication$8@42931a40: error getting remote checkpoint

That means that CouchDB returned a 400 response for the Couchbase Lite request to get the remote checkpoint (which is a GET request to /db/_local/<checkpoint address>)

Does the DB you are trying to pull from exist already on CouchDB?

Also, can you check the CouchDB logs?  You might see an error related to that request which might explain why its returning a 400.  Please post the error here if you see one.

Oh and just as a heads up, if you are using attachments we recently fixed issue 214 which did not quite make it into the 1.0 release, so you'll want to use a later version.





--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/213c1857-2c24-4b68-a157-cdd1b30c8951%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Hines

unread,
Jun 4, 2014, 1:56:42 PM6/4/14
to mobile-c...@googlegroups.com
Silly me! Yes, I was forgetting to add the "/database" at the end of the URL. Sorry for the stupid mistake =). (Would be nice if you guys threw an error if the URL was missing something after the '/' .....I swear I've made that mistake a half-dozen times in Futon.

Yes, I definitely have attachments - where do a get a "newer" version from that's not on the website?

Is there a secret hideout or something =) ?

Traun Leyden

unread,
Jun 4, 2014, 2:53:48 PM6/4/14
to mobile-c...@googlegroups.com

I need to update the README with the latest instructions how to do download the master branch version.  Will get back to you on that.


Traun Leyden

unread,
Jun 4, 2014, 3:22:01 PM6/4/14
to mobile-c...@googlegroups.com

Since you are using the zipfile, you'll want to check out the link here:

Michael Hines

unread,
Jun 6, 2014, 12:00:16 AM6/6/14
to mobile-c...@googlegroups.com
Excellent. Thank you.
Reply all
Reply to author
Forward
0 new messages