From user-return-22064-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Sep 10 09:01:11 2012 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 1D564D45D for ; Mon, 10 Sep 2012 09:01:11 +0000 (UTC) Received: (qmail 80734 invoked by uid 500); 10 Sep 2012 09:01:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80442 invoked by uid 500); 10 Sep 2012 09:01:05 -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 80357 invoked by uid 99); 10 Sep 2012 09:01:01 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 09:01:01 +0000 Received: from localhost (HELO [192.168.1.5]) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 09:01:01 +0000 Subject: Re: Can't kill continuous replication on Windows Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Robert Newson X-Priority: 3 (Normal) In-Reply-To: <3f0dd15fc31c6bd41a427d5ecb8356ec.squirrel@solarapex.com> Date: Mon, 10 Sep 2012 10:00:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3f0dd15fc31c6bd41a427d5ecb8356ec.squirrel@solarapex.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1278) 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. >=20 > I try to kill that replication using curl with no luck. >=20 > Command line: > curl -H "Content-Type: application/json" -d @cancel2 -X POST > http://localhost:5984/_replicate >=20 > where cancel2 is a file with the following contents: >=20 > {"replication_id": "myreplicationidfromactivetasks+continuous", = "cancel": > "true"} >=20 > CouchDB spits this into the log: >=20 > [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 >=20 > curl output is not helpful: >=20 > {"error":"badarg","reason":"true"} >=20 > Both databases are secured by an admin account. >=20 > I tried to provide source/destination/continuous/cancel in different > permutations. Still no luck. >=20 > Any ideas? >=20 > P.S: Love CouchDB! Thank you your contributions! >=20 >=20