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<[email protected]>  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://<local_db_URL>/_replicate -d
'{"source":"<db_ON_INTERNET_URL>","target":"<LOCAL_DB>",
"proxy":"<Company_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

Reply via email to