Warnings while replicating. [CBL-iOS]

89 views
Skip to first unread message

Aj

unread,
Jun 11, 2015, 9:57:22 AM6/11/15
to mobile-c...@googlegroups.com
I'm observing following warnings on console. I do have few documents with compressed attachments in them; this warning doesn't trouble/break anything though.  

WARNING: Oops, server is trying to send a compressed attachment, I can't do that yet

WARNING: CBLMultipartDocumentReader[_id="_design/app"]: received unparseable MIME multipart response: Stopped


Is it okay to ignore (for now)? Or should I be concerned?


Thanks!~

Jens Alfke

unread,
Jun 11, 2015, 2:04:19 PM6/11/15
to mobile-c...@googlegroups.com
What server are you syncing with, exactly?

—Jens

Aj

unread,
Jun 11, 2015, 2:24:28 PM6/11/15
to mobile-c...@googlegroups.com
Ah! Sorry. 

We use Apache CouchDB and Couchbase-lite(iOS) is built from current master branch.

Jens Alfke

unread,
Jun 11, 2015, 2:35:25 PM6/11/15
to mobile-c...@googlegroups.com

On Jun 11, 2015, at 11:24 AM, Aj <ajith...@icloud.com> wrote:

We use Apache CouchDB and Couchbase-lite(iOS) is built from current master branch.

The master branch of CBL doesn’t yet handle downloading an attachment in encoded/zipped form. (I have a branch that does but it’s not merged yet.) The effect is that the document containing the attachment won’t get pulled during the replication.

—Jens

Aj

unread,
Jun 12, 2015, 3:15:09 AM6/12/15
to mobile-c...@googlegroups.com
The effect is that the document containing the attachment won’t get pulled during the replication.

—Jens

Umm, but I could replicate the document(s) containing .tar format attachments; had no problems reading them. I could also see the .blob files in attachments folder of Couchbase-lite. 

Jens Alfke

unread,
Jun 12, 2015, 12:21:47 PM6/12/15
to mobile-c...@googlegroups.com

On Jun 12, 2015, at 12:15 AM, Aj <ajith...@icloud.com> wrote:

Umm, but I could replicate the document(s) containing .tar format attachments; had no problems reading them. I could also see the .blob files in attachments folder of Couchbase-lite. 

Weird! From the code it looks like whatever attachment triggers that warning will be skipped, and so will its document. But I’m glad it’s working for you :)

—Jens

dyowee

unread,
Jun 25, 2015, 9:49:40 PM6/25/15
to mobile-c...@googlegroups.com
This seems to still be in CouchbaseLite iOS 1.1 :(

Jens Alfke

unread,
Jun 26, 2015, 12:11:21 AM6/26/15
to mobile-c...@googlegroups.com

On Jun 25, 2015, at 6:49 PM, dyowee <csharpen...@gmail.com> wrote:

This seems to still be in CouchbaseLite iOS 1.1 :(

What behavior exactly? There were several things discussed in that thread.

—Jens

dyowee

unread,
Jun 26, 2015, 12:36:57 AM6/26/15
to mobile-c...@googlegroups.com
Sorry for the confusion. I am still getting the message WARNING: Oops, server is trying to send a compressed attachment, I can't do that yet.
And those documents are not synced. :(

dyowee

unread,
Jun 27, 2015, 6:16:50 PM6/27/15
to mobile-c...@googlegroups.com
Is there any change I need to do so documents with attachments with the replicated?

Jens Alfke

unread,
Jun 28, 2015, 12:50:12 AM6/28/15
to mobile-c...@googlegroups.com
I don't know what you can do. Maybe there's a CouchDB setting to disable sending compressed attachments?

Is there a CBL bug report filed on this?

--Jens     [via iPhone]
--
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/d16b8fb0-45f3-4c9c-aac8-bc93998cdf04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dyowee

unread,
Jun 28, 2015, 2:22:21 AM6/28/15
to mobile-c...@googlegroups.com
I guess you meant enable sending compressed attachments.

But this is a showstopper for me. I'll check if there is a CBL bug report filed on this. But based on your reply on June 11, I thought that that the code to enable this in CBL wasn't just merged from the master branch. 
Message has been deleted
Message has been deleted

dyowee

unread,
Jun 28, 2015, 5:14:17 AM6/28/15
to mobile-c...@googlegroups.com
Sorry. My mistake. You really meant "disable".
Still, I was hoping I didn't have to change anything in CouchDB or in my code updating to CouchbaseLite 1.1.

The bug report is "Replicate documents with attachments warning #786"


On Saturday, June 27, 2015 at 9:50:12 PM UTC-7, Jens Alfke wrote:

Jens Alfke

unread,
Jun 28, 2015, 7:55:50 PM6/28/15
to mobile-c...@googlegroups.com
On Jun 27, 2015, at 11:22 PM, dyowee <csharpen...@gmail.com> wrote:

I guess you meant enable sending compressed attachments.

No, I really meant disable. The problem is that CouchDB is sending attachments in compressed form and Couchbase Lite isn’t able to receive them that way. If you can stop CouchDB from sending gzipped attachments that will work around the problem.

But this is a showstopper for me. I'll check if there is a CBL bug report filed on this. But based on your reply on June 11, I thought that that the code to enable this in CBL wasn't just merged from the master branch. 

No, it’s not merged into the master branch — it’s currently on a development branch called feature/delta. (And I wouldn’t recommend using that branch; it has a ton of changes, hasn’t been tested, and probably needs a bunch of conflicts to be resolved.)

—Jens

dyowee

unread,
Jun 28, 2015, 9:55:57 PM6/28/15
to mobile-c...@googlegroups.com
I believe that some attachments are stored as compressed in CouchDB to save disk space and reduce disk IO: https://fdmanana.wordpress.com/2010/01/31/implemented-more-2-new-features-for-apache-couchdb/
Reply all
Reply to author
Forward
0 new messages