incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Can't kill continuous replication on Windows
Date Mon, 10 Sep 2012 09:00:59 GMT

It's true, not "true". One is a boolean, the other a string.

i.e, "cancel" : true

B.

On 10 Sep 2012, at 04:54, Alex G wrote:

> I set up a continuous replication between two databases - 1 on Mac, 1 on
> Windows. The Windows box runs the process. The source is Mac, the
> destination is Windows.
> 
> I try to kill that replication using curl with no luck.
> 
> Command line:
> curl -H "Content-Type: application/json" -d @cancel2 -X POST
> http://localhost:5984/_replicate
> 
> where cancel2 is a file with the following contents:
> 
> {"replication_id": "myreplicationidfromactivetasks+continuous", "cancel":
> "true"}
> 
> CouchDB spits this into the log:
> 
> [Mon, 10 Sep 2012 03:26:38 GMT] [info] [<0.22989.0>] Stacktrace:
> [{couch_replicator_utils,parse_rep_doc,2,
>                                   [{file,
>                                     "d:/relax/couchdb/src/couchdb/couch_replicator_utils.erl"},
>                                    {line,35}]},
>                                  {couch_httpd_replicator,handle_req,1,
>                                   [{file,
>                                     "d:/relax/couchdb/src/couchdb/couch_httpd_replicator.erl"},
>                                    {line,34}]},
>                                  {couch_httpd,handle_request_int,5,
>                                   [{file,
>                                     "d:/relax/couchdb/src/couchdb/couch_httpd.erl"},
>                                    {line,317}]},
>                                  {mochiweb_http,headers,5,
>                                   [{file,
>                                     "d:/relax/couchdb/src/mochiweb/mochiweb_http.erl"},
>                                    {line,136}]},
>                                  {proc_lib,init_p_do_apply,3,
>                                   [{file,"proc_lib.erl"},{line,227}]}]
> [Mon, 10 Sep 2012 03:26:38 GMT] [error] [<0.22989.0>] Uncaught server
> error: {badarg,<<"true">>}
> [Mon, 10 Sep 2012 03:26:38 GMT] [info] [<0.22989.0>] 127.0.0.1 - - POST
> /_replicate 500
> 
> curl output is not helpful:
> 
> {"error":"badarg","reason":"true"}
> 
> Both databases are secured by an admin account.
> 
> I tried to provide source/destination/continuous/cancel in different
> permutations. Still no luck.
> 
> Any ideas?
> 
> P.S: Love CouchDB! Thank you your contributions!
> 
> 


Mime
View raw message