couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Replication issue with badmatch and nocatch
Date Mon, 14 Jan 2013 02:23:11 GMT
Sounds like the mime preamble thing.

On 13 January 2013 21:03, Alexander Shorin <kxepal@gmail.com> wrote:
> Hi all!
>
> Tonight something weird was happened with replication between CouchDB
> instances of 1.3.0a-cc35be3-git (instance A) and 1.3.0a-6652937-git
> (instance B). The first replication was from instance A to instance B
> (initialized by instance A) and had passed without any errors. But when it
> runs backward (from instance B to instance A, initialized by instance B)
> there was strange problem that was only noticed in logs by very short error
> message (see below). This error wasn't raised when replication was started,
> but eventually for some specific update sequence number (18005 for my case)
> - after some unsuccessful retry attempts replication terminates. If I
> restart it again, few documents got replicated successful first and the
> issue raises again, but only since the same update seq point.
>
> From logs I see that probably some data was malformed due passing though
> nginx that provides SSL. However, he didn't alert about any errors and if I
> run replication for the same data between instance B and instance C of the
> same version and in same environment it completes successfully. Also, if
> replication was initialized from instance A (to replicate data from
> instance B to instance A) it also runs without any errors, so I couldn't be
> sure in theory that this is just problem of proxy.
>
> Just wondering is the introduction of replication id [1] (as the only
> serious change between 6652937 and cc35be3 commits) is able to bring such
> behaviour or there something else could be wrong? Also, why the error log
> is so strange for this case? It was always too verbose if something goes
> wrong. Erlang 15B03 on both side if it does matter, OS: Gentoo Linux.
>
> [1]:
> https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=c6252d6d7f
>
>
> [Sun, 13 Jan 2013 22:28:02 GMT] [debug] [<0.576.0>] OAuth Params:
> [{"new_edits","false"}]
> [Sun, 13 Jan 2013 22:28:02 GMT] [error] [emulator] Error in process
> <0.581.0> with exit value:
> {{badmatch,{"--c71b8b86c87013831f60f1937ee0baa9",[]}},[{couch_httpd,split_header,1,[{file,"couch_httpd.erl"},{line,996}]},{couch_httpd,'-parse_part_header/1-fun-1-',2,[{file,"couch_httpd.erl"},{line,1039}]},{lists,foldl,3,[{file,"...
>
>
> [Sun, 13 Jan 2013 22:28:02 GMT] [debug] [<0.264.0>] 'PUT'
> /sandbox/555092032bf28baa8b78c54ceb9a4326?new_edits=false {1,
>
> 0} from "10.5.0.40"
> Headers: [{'Accept',"application/json"},
>           {'Authorization',"Basic Zm9vOmJhcgo="},
>           {'Connection',"close"},
>           {'Content-Length',"2393063"},
>           {'Content-Type',"multipart/related;
> boundary=\"c71b8b86c87013831f60f1937ee0baa9\""},
>           {'Host',"redcouch.local"},
>           {'User-Agent',"CouchDB/1.3.0a-6652937-git"},
>           {'X-Forwarded-For',"10.5.0.40"},
>           {"X-Forwarded-Proto","https"},
>           {"X-Forwarded-Ssl","on"},
>           {"X-Real-Ip","10.5.0.40"}]
> [Sun, 13 Jan 2013 22:28:02 GMT] [debug] [<0.264.0>] OAuth Params:
> [{"new_edits","false"}]
> [Sun, 13 Jan 2013 22:28:02 GMT] [error] [emulator] Error in process
> <0.584.0> with exit value:
> {{badmatch,{"--c71b8b86c87013831f60f1937ee0baa9",[]}},[{couch_httpd,split_header,1,[{file,"couch_httpd.erl"},{line,996}]},{couch_httpd,'-parse_part_header/1-fun-1-',2,[{file,"couch_httpd.erl"},{line,1039}]},{lists,foldl,3,[{file,"...
>
>
> [Sun, 13 Jan 2013 22:28:03 GMT] [debug] [<0.580.0>] 'PUT'
> /sandbox/789c6b72c658623b0c0193d85f0ac4fe?new_edits=false {1,
>
> 0} from "10.5.0.40"
> Headers: [{'Accept',"application/json"},
>           {'Authorization',"Basic Zm9vOmJhcgo="},
>           {'Connection',"close"},
>           {'Content-Length',"80038"},
>           {'Content-Type',"multipart/related;
> boundary=\"c716303f30bc764c1f6ed43cb11d3bf2\""},
>           {'Host',"redcouch.local"},
>           {'User-Agent',"CouchDB/1.3.0a-6652937-git"},
>           {'X-Forwarded-For',"10.5.0.40"},
>           {"X-Forwarded-Proto","https"},
>           {"X-Forwarded-Ssl","on"},
>           {"X-Real-Ip","10.5.0.40"}]
> [Sun, 13 Jan 2013 22:28:03 GMT] [debug] [<0.580.0>] OAuth Params:
> [{"new_edits","false"}]
> [Sun, 13 Jan 2013 22:28:03 GMT] [error] [emulator] Error in process
> <0.589.0> with exit value: {{nocatch,<<18
> bytes>>},[{couch_httpd_db,receive_request_data,2,[{file,"couch_httpd_db.erl"},{line,697}]},{couch_httpd,read_until,3,[{file,"couch_httpd.erl"},{line,1016}]},{couch_httpd,parse_part_header,1,[{file,"couch_httpd.erl"},{line,1033}]},...
>
>
> [Sun, 13 Jan 2013 22:28:03 GMT] [debug] [<0.577.0>] 'PUT'
> /sandbox/789c6b72c658623b0c0193d85f0ac4fe?new_edits=false {1,
>
> 0} from "10.5.0.40"
> Headers: [{'Accept',"application/json"},
>           {'Authorization',"Basic Zm9vOmJhcgo="},
>           {'Connection',"close"},
>           {'Content-Length',"80038"},
>           {'Content-Type',"multipart/related;
> boundary=\"c716303f30bc764c1f6ed43cb11d3bf2\""},
>           {'Host',"redcouch.local"},
>           {'User-Agent',"CouchDB/1.3.0a-6652937-git"},
>           {'X-Forwarded-For',"10.5.0.40"},
>           {"X-Forwarded-Proto","https"},
>           {"X-Forwarded-Ssl","on"},
>           {"X-Real-Ip","10.5.0.40"}]
> [Sun, 13 Jan 2013 22:28:03 GMT] [debug] [<0.577.0>] OAuth Params:
> [{"new_edits","false"}]
> [Sun, 13 Jan 2013 22:28:03 GMT] [error] [emulator] Error in process
> <0.619.0> with exit value: {{nocatch,<<18
> bytes>>},[{couch_httpd_db,receive_request_data,2,[{file,"couch_httpd_db.erl"},{line,697}]},{couch_httpd,read_until,3,[{file,"couch_httpd.erl"},{line,1016}]},{couch_httpd,parse_part_header,1,[{file,"couch_httpd.erl"},{line,1033}]},...
>
>
> --
> ,,,^..^,,,

Mime
View raw message