incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucas <>
Subject Couch Bug or Nginx miss-config ?
Date Wed, 07 May 2014 12:55:53 GMT

First, Thank's to devs, Couch is a very nice software;
But I encounter a 'bug' that I didn't success to solve.

When I launch replication with file over 50MB over Nginx reverse proxy


I try to replicate a db (not continuous) between
    a couch 'Client' without listening on the Internet
    a couch 'Server' who listen (in http)

Erlang is 15B01 (Both Side)
I first encouter bug with CouchDB 1.3.X, now I test only with 
1.5.1.(Both Side)

1) If I put the directly routed from the Internet (and 
replicate to PublicIP:Publicport )
     replication is OK with 50MB attachements

2) If I put a Nginx reverse Proxy for proxying request from mydomain.tld 
(:80) to

server {
   listen 80;
   server_name mydomain.tld;
   location / {
     proxy_redirect off;
     proxy_set_header Host $host;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

As described in this article [1]

Replication is OK with few files <5MB
Replication DIED with files of 50MB

In Nginx Log, I success to identify the specific 50MB file request as 
http code 499 (nginx). 'Connection close client-side before processing 

I try to increase without success

os_process_timeout = 50000
connection_timeout = 300000

What I can miss ?
Is could be a couch bug from the replicator keep-alive ?

Thank's for helping


View raw message