There's a known issue in the Couchbase Lite for .NET Beta 4 Xamarin component 
release that generates the exact same error message. I fixed it and updated the 
release within hours, but wanted to make sure this wasn't compounding the 
problem due to a bad lib version.

On Sep 15, 2014, at 9:37 AM, Traun Leyden 
<[email protected]<mailto:[email protected]>> wrote:


Zack,

I think you accidentally hijacked this thread .. this doesn't seem relevant.  
You might want to make sure this message makes it to it's original target 
thread.

On Mon, Sep 15, 2014 at 9:12 AM, Zack Gramana 
<[email protected]<mailto:[email protected]>> wrote:
Jose,

Are you using the Xam component or the NuGet package?

If the component, do you mind trying the NuGet package instead? It has a more 
recent build in it.

Cheers,
Zack

Sent from my iPhone

On Sep 14, 2014, at 4:00 PM, "dyowee" 
<[email protected]<mailto:[email protected]>> wrote:

The nginx log says something like this:

[error] 4048#3452: *4439215 upstream timed out (10060: A connection attempt 
failed because the connected party did not properly respond after a period of 
time, or established connection failed because connected host has failed to 
respond) while reading upstream, request: "GET 
/mydatabase/_changes?feed=normal&heartbeat=300000&style=all_docs&since=358688&filter=replddoc/myfilter
 HTTP/1.1", upstream: 
"http://xxx.x.x.x/mydatabase/_changes?feed=normal&heartbeat=300000&style=all_docs&since=358688&filter=replddoc/myfilter";

On Sunday, September 14, 2014 1:06:21 PM UTC-7, Jens Alfke wrote:

On Sep 14, 2014, at 11:57 AM, dyowee <[email protected]> wrote:

We have this requirement to limit data being replicated, so we tried to do a 
filtered replicated by marking old documents with archived=true. But then we 
encountered the problem that CBL cannot sync anymore, saying 'WARNING Truncated 
changes feed'

Well, that sounds like a bug somewhere, not a limitation of filtered 
replication.

That warning occurs if the JSON parser hits a syntax error reading the received 
_changes feed. It almost always means that the socket got closed unexpectedly. 
And that in turn usually means an intermediate gateway decided the socket's 
been open too long. (Some telco gateways will do this, and apparently also AWS 
load balancers.) The 'heartbeat' option on the _changes request is supposed to 
prevent this by telling the server to periodically send a no-op CRLF so the 
socket doesn't look idle, though.

In any case, this isn't something that's related to filtering, so it's weird 
that it started happening after you added that. Do you have any more clues?

we had to completely restore the CouchDB databases

What does that mean?

Is there a better way to do filtered replication?

Again, there's nothing wrong with what you're doing. It just seems to have 
triggered some kind of bug, either in CBL or CouchDB. Let's try to diagnose 
that.

--Jens


--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/7c13098e-42d2-40fa-91e7-457c1f1622db%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/7c13098e-42d2-40fa-91e7-457c1f1622db%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/79DB5050-A967-43C0-9F37-A562C4277C0C%40couchbase.com<https://groups.google.com/d/msgid/mobile-couchbase/79DB5050-A967-43C0-9F37-A562C4277C0C%40couchbase.com?utm_medium=email&utm_source=footer>.

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


--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCFJEyFDGCrMJiQW%2B4DRvL0i8TWps7QTDRvTk34PXSd-JA%40mail.gmail.com<https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCFJEyFDGCrMJiQW%2B4DRvL0i8TWps7QTDRvTk34PXSd-JA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/99128CBA-8A11-4B6B-B251-3E94D92B5E9E%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to