Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20F0C9C94 for ; Mon, 2 Apr 2012 13:06:20 +0000 (UTC) Received: (qmail 48389 invoked by uid 500); 2 Apr 2012 13:06:18 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 48358 invoked by uid 500); 2 Apr 2012 13:06:18 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 48350 invoked by uid 99); 2 Apr 2012 13:06:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 13:06:18 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_MED,SPF_PASS,T_FRT_BELOW2,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sandeep.kumar.singh@ericsson.com designates 193.180.251.37 as permitted sender) Received: from [193.180.251.37] (HELO mailgw2.ericsson.se) (193.180.251.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 13:06:11 +0000 X-AuditID: c1b4fb25-b7b18ae000000dce-42-4f79a42e6754 Authentication-Results: mailgw2.ericsson.se x-tls.subject="/CN=esessmw0256"; auth=fail (cipher=AES128-SHA) Received: from esessmw0256.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) (using TLS with cipher AES128-SHA (AES128-SHA/128 bits)) (Client CN "esessmw0256", Issuer "esessmw0256" (not verified)) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 17.A9.03534.E24A97F4; Mon, 2 Apr 2012 15:05:51 +0200 (CEST) Received: from 6KY48R1.egi.ericsson.com (153.88.115.8) by esessmw0256.eemea.ericsson.se (153.88.115.97) with Microsoft SMTP Server id 8.3.213.0; Mon, 2 Apr 2012 15:05:50 +0200 Message-ID: <4F79A42D.7000001@ericsson.com> Date: Mon, 2 Apr 2012 18:35:49 +0530 From: esasisa Reply-To: sandeep.kumar.singh@ericsson.com Organization: Ericsson India Global Services Pvt. Ltd User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111110 Thunderbird/8.0 MIME-Version: 1.0 To: "user@couchdb.apache.org" Subject: Re: "proxy" parameter in Replicate request is not working References: <4F799659.2030301@ericsson.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Please find the complete log- [Mon, 02 Apr 2012 12:04:47 GMT] [debug] [<0.105.0>] 'POST' /_replicate {1,1} Headers: [{'Accept',"*/*"}, {'Content-Length',"142"}, {'Content-Type',"application/json"}, {'Host',"147.128.224.36:5984"}, {'User-Agent',"curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}] [Mon, 02 Apr 2012 12:04:47 GMT] [debug] [<0.105.0>] OAuth Params: [] [Mon, 02 Apr 2012 12:04:47 GMT] [error] [<0.26060.0>] {error_report,<0.28.0>, {<0.26060.0>,crash_report, [[{pid,<0.26060.0>}, {registered_name,[]}, {error_info, {exit, {{badmatch, {url,"http://www-proxy.ericsson.se:8080", "www-proxy.ericsson.se",8080,undefined,undefined,"/", http,hostname}}, [{couch_rep,parse_proxy_params,1}, {couch_rep,do_init,1}, {couch_rep,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]}, [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}, {initial_call,{couch_rep,init,['Argument__1']}}, {ancestors, [couch_rep_sup,couch_primary_services,couch_server_sup,<0.29.0>]}, {messages,[]}, {links,[<0.78.0>]}, {dictionary,[]}, {trap_exit,true}, {status,running}, {heap_size,610}, {stack_size,23}, {reductions,195}], []]}} [Mon, 02 Apr 2012 12:04:47 GMT] [error] [<0.105.0>] Uncaught error in HTTP request: {error, {case_clause, {error, {{{badmatch, {url, "http://www-proxy.ericsson.se:8080", "www-proxy.ericsson.se",8080,undefined, undefined,"/",http,hostname}}, [{couch_rep,parse_proxy_params,1}, {couch_rep,do_init,1}, {couch_rep,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]}, {child,undefined, "ac2770484bc266adbb43ecc4aa2c7c23", {gen_server,start_link, [couch_rep, ["ac2770484bc266adbb43ecc4aa2c7c23", {[{<<"source">>, <<"http://algesten.iriscouch.com/recruit">>}, {<<"target">>, <<"http://147.128.224.36:5984/recruit">>}, {<<"proxy">>, <<"http://www-proxy.ericsson.se:8080">>}]}, {user_ctx,null, [<<"_admin">>], <<"{couch_httpd_auth, default_authentication_handler}">>}], []]}, temporary,1,worker, [couch_rep]}}}}} [Mon, 02 Apr 2012 12:04:47 GMT] [info] [<0.105.0>] Stacktrace: [{couch_rep,start_replication_server,1}, {couch_rep,replicate,2}, {couch_httpd_misc_handlers,handle_replicate_req,1}, {couch_httpd,handle_request_int,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] [Mon, 02 Apr 2012 12:04:47 GMT] [info] [<0.105.0>] 147.128.224.36 - - 'POST' /_replicate 500 [Mon, 02 Apr 2012 12:04:47 GMT] [debug] [<0.105.0>] httpd 500 error response: {"error":"case_clause","reason":"{error,\n {{{badmatch,\n {url,\"http://www-proxy.ericsson.se:8080\",\"www-proxy.ericsson.se\",\n 8080,undefined,undefined,\"/\",http,hostname}},\n [{couch_rep,parse_proxy_params,1},\n {couch_rep,do_init,1},\n {couch_rep,init,1},\n {gen_server,init_it,6},\n {proc_lib,init_p_do_apply,3}]},\n {child,undefined,\"ac2770484bc266adbb43ecc4aa2c7c23\",\n {gen_server,start_link,\n [couch_rep,\n [\"ac2770484bc266adbb43ecc4aa2c7c23\",\n {[{<<\"source\">>,<<\"http://algesten.iriscouch.com/recruit\">>},\n {<<\"target\">>,<<\"http://147.128.224.36:5984/recruit\">>},\n {<<\"proxy\">>,<<\"http://www-proxy.ericsson.se:8080\">>}]},\n {user_ctx,null,\n [<<\"_admin\">>],\n <<\"{couch_httpd_auth, default_authentication_handler}\">>}],\n []]},\n temporary,1,worker,\n [couch_rep]}}}"} Regards, Sandeep K Singh On 04/02/2012 06:21 PM, Dave Cottlehuber wrote: > On 2 April 2012 14:06, esasisa wrote: >> Hi, >> >> I am using couchdb 1.0.2 on CentOS Server, >> >> Trying to replicate with tow couchdb instance using pull mechanism, on >> instance is running on Internet and another is running on intra net behind a >> proxy (firewall). >> I am using bellow command for Replication - >> >> sudo curl -i -H "Content-Type: application/json" -X POST >> http:///_replicate -d >> '{"source":"","target":"", >> "proxy":""}' > That looks ok to me. Can you re-run with curl -v and provide the > redacted output? > BTW you don't need sudo for curl. > >> httpd 500 error response: >> {"error":"case_clause","reason":"{error,\n {{{badmatch,\n.... > Can you post the full erlang backtrace in couch.log to friendpaste.com > or similar, > after re-running the curl? > >> Please help me and reply back ASAP > Generally we do this without asking ;-). Also your 1.0.2 > couch version is quite old, replication is further improved > in 1.1.1 and again in the almost-released 1.2.0. Consider > upgrading soon! > > A+ > Dave