Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67332 invoked from network); 19 Aug 2010 16:25:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 16:25:18 -0000 Received: (qmail 11068 invoked by uid 500); 19 Aug 2010 16:25:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11007 invoked by uid 500); 19 Aug 2010 16:25:16 -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 10999 invoked by uid 99); 19 Aug 2010 16:25:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:25:16 +0000 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=FREEMAIL_FROM,FS_REPLICA,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:25:09 +0000 Received: by qyk31 with SMTP id 31so968119qyk.11 for ; Thu, 19 Aug 2010 09:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9DGLrfANyaXjD3UeUMCnFef5y1BuIKp1z5PIgeVOCKk=; b=RQ8LwGsoTssNyeTo7BXyOFI0cykI6R6quzOi9FJtoVDMAKuDt613/JnZrDQzkM6XI9 hHoh0YEvjwCtqfuDpf1/4SP9Fbqfc3vgaB4ELmEuUt8rxzylKNG0gDcAgYY5KcURC1hZ jqGhS6A402fhGaAvZKUHrvsxwxTzX4LG31UCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WbONCn9iuJujvTa8kiSncve+T+NIEKzStT6isLHyJvO3fm/4159BPPPA6Nzw8/kwUX /qgPPdPFTlscai72k3n/4tI1LECKjQxk1FtdlVPK8zkOK5FRDtM/43U169TNpmS3ARpf XaVO+Q2nzGk7JjmMTy9X/PpwVidGHBdVlgE9g= MIME-Version: 1.0 Received: by 10.224.119.20 with SMTP id x20mr36766qaq.249.1282235088113; Thu, 19 Aug 2010 09:24:48 -0700 (PDT) Received: by 10.229.26.213 with HTTP; Thu, 19 Aug 2010 09:24:48 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Aug 2010 17:24:48 +0100 Message-ID: Subject: Re: How to cancel a continuous replication task From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Did you get an {"ok":true,"_local_id":"foo"} response from the first _replicate call? I've just verified that adding "cancel":true to the original _replicate setting cancels the task. Perhaps you're on an earlier version than this feature? B. On Thu, Aug 19, 2010 at 5:08 PM, Zachary Zolton wrote: > Howdy, > > I know you're supposed to be able to cancel a continuous replication > task by adding "cancel":true to the JSON body, but I've never been > able to get it working. > > For example, I just started this replication job: > > curl -X POST 'http://localhost:5984/_replicate' -d > '{"source":"my-db","target":"http://username:pass@couch.host/target-db","continuous":true,"create_target":true}' > > Then, I tried to cancel it: > > curl -X POST 'http://localhost:5984/_replicate' -d > '{"source":"my-db","target":"http://username:pass@couch.host/target-db","continuous":true,"cancel":true}' > > I get the following result: > > {"error":"not_found"} > > Any ideas of what I'm doing wrong here? > > > Cheers, > > Zach > > > P.S. I'm aware of the instructions on the wiki: > http://wiki.apache.org/couchdb/Replication#Cancelling_a_continuous_replication_task >