From user-return-21689-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Aug 5 18:57:36 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 5E94E921D for ; Sun, 5 Aug 2012 18:57:36 +0000 (UTC) Received: (qmail 62990 invoked by uid 500); 5 Aug 2012 18:57:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62965 invoked by uid 500); 5 Aug 2012 18:57:34 -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 62956 invoked by uid 99); 5 Aug 2012 18:57:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2012 18:57:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave@muse.net.nz designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2012 18:57:29 +0000 Received: by pbcwz12 with SMTP id wz12so4729680pbc.11 for ; Sun, 05 Aug 2012 11:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muse.net.nz; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=kekMPml1vYI+DAPNFteOG/2rj9+1cEc0iT7oThHVaN4=; b=An8ybIXU5QkJzEU04MlgyNVTeQHNwcqb+eECz9fM48FnJoNee49aapqMMEBceo/X6P HNmUDq8HUqlppmeTo5gOgp03B0O/6zH1sDFbX+y4rlyTvq9DvitgrDwEEDTqwthr9OY/ n/7ZIpo/IE6x8xkVaSiC4DQhckOA0C13crChk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding :x-gm-message-state; bh=kekMPml1vYI+DAPNFteOG/2rj9+1cEc0iT7oThHVaN4=; b=QAbpy3xUD2BKkX2YbxDO2ffBIvP2pY380JaYj85QFJY89Sf70yj8xEEJpNV/EMifQj aZHuav/a/5V4tTxZPUJk24DGYqddQUoIpjQtpJz5dpsfolbDxmSXWuIIBHyQ0cckyDZO C2oYx3bjmiD4vy/msrz+zbl5bGj0FQXqIfvBBnghXkRhwVpau7UBkI0qti8p9aol89Up t3+C0gVrZvJkX9etvYoNx1xW5ORMzixpEPMope3wZSiVepfL3vKH7v0rZ1qjnaVBbbm0 QnAOm5BQ6atd+eaGQiGU0N9f0JtelY9Piphvr7sFC+F32owoWBwcfFRgyF7LGsjhk2+c CpHw== MIME-Version: 1.0 Received: by 10.68.220.163 with SMTP id px3mr13680748pbc.167.1344193027374; Sun, 05 Aug 2012 11:57:07 -0700 (PDT) Received: by 10.68.132.131 with HTTP; Sun, 5 Aug 2012 11:57:07 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Sun, 5 Aug 2012 20:57:07 +0200 Message-ID: Subject: Re: I replicate _replicator by chance From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmCyjrVejS/1PyXsG6roZ2Q34JMVHs+rX1X1X3IZGsFOb9RJk9bawvOT1fRzBLjH5FSk8KI X-Virus-Checked: Checked by ClamAV on apache.org On 5 August 2012 19:47, Michael Bykov wrote: > Hi, > > I by chance replicate "_replicator" to a destination database. More > exactly, I click "replicate" button, but nothing happens. > > But now, when I replicate my local db, it wrote in a log on each document= : > > [error] [<0.28457.5>] Replicator: couldn't write document > `4fc8269be10198e2bfa2a137fe1a9333`, revision > `1-4a8baba0dd74f92ec0da91e8fff84774`, to target database > `http://admin:*****@localhost:5986/diglossa/`. Error: `forbidden`, > reason: `The `source' property must exist and be either a string or an > object.` > > And in Futon: > > {"session_id":"d7c097b8d822f707725b1b79b5bc3bc8","start_time":"Sun, 05 > Aug 2012 17:34:34 GMT","end_time":"Sun, 05 Aug 2012 17:34:42 > GMT","start_last_seq":262336,"end_last_seq":262672,"recorded_seq":262672,= "missing_checked":280,"missing_found":280,"docs_read":280,"docs_written":0,= "doc_write_failures":280} > > I compact and cleanup both databases, it did not help. > > Please, suggest, what can be done? > > > > -- > =ED. > > http://diglossa.ru > xmpp://m.bykov@jabber.ru Hi Michael, The thing stopping writing your docs is a validation function (clue "`The `source' property must exist and be either a string or an object" is not in the couch source tree). I'm guessing a little but I think your _replicator db at one end now has "normal" design docs in it. What I'd do now is: 1. rename the _replicator.couch db file at the problem end to something els= e. 2. restart couchdb (get a new, clean _replicator) 3. if you need to, log into futon as admin and delete all ddocs in the renamed, foobared _replicator and rename it back. You'll likely only need this if you have continuous replications, or ones that should be present on a restart of couchdb. 4. any more cleanup as reqd by your application. I think that's enough to get you started. A+ Dave