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 D7F6110706 for ; Mon, 15 Jul 2013 17:21:06 +0000 (UTC) Received: (qmail 24736 invoked by uid 500); 15 Jul 2013 17:21:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 24417 invoked by uid 500); 15 Jul 2013 17:21:04 -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 24408 invoked by uid 99); 15 Jul 2013 17:21:03 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 17:21:03 +0000 Received: from localhost (HELO mail-ve0-f174.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 17:21:03 +0000 Received: by mail-ve0-f174.google.com with SMTP id oz10so10217077veb.33 for ; Mon, 15 Jul 2013 10:21:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RHN0ZVP8cyXbYkTKd1p5rBI1zOVt6AEjSUb4v4rf0rs=; b=BGw9hjjn4l/L4feH10BO/n3eXG29P+SQXnpo4GM6xxmbba6JK53MxJfPvoYNY1KPWQ HzPGL77ohJkZgT74lrxtfuzqE7GpCUQTru/2koSD9SMnA3JGhpEmMZ49WZd6x4oP1fov BXwwROfI8a6zwwTlPSuYITDZDLArDgHboQYikck+XZN6Vnw6ZjxbzKgYj5r5W2b7q6uR 9MFOXRxMDkRrq+neYDwT59gmHIj44Qoxfyxi7igfMoZ9I9/Kbn+JfgPdgfcAOg19yCCl wq5QPWAoquwEz60AcTT7Yi6dO2pqK8WK5uuL4Q/wQUsc8az6ahlkp2yeW7dWC11/19t0 dM6A== MIME-Version: 1.0 X-Received: by 10.52.248.206 with SMTP id yo14mr23943050vdc.61.1373908862610; Mon, 15 Jul 2013 10:21:02 -0700 (PDT) Received: by 10.220.149.73 with HTTP; Mon, 15 Jul 2013 10:21:02 -0700 (PDT) In-Reply-To: <931d322264da4d14ab604a10ad2a4ac2@BLUPR03MB150.namprd03.prod.outlook.com> References: <931d322264da4d14ab604a10ad2a4ac2@BLUPR03MB150.namprd03.prod.outlook.com> Date: Mon, 15 Jul 2013 18:21:02 +0100 Message-ID: Subject: Re: Understanding 'Source database out of sync' error From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 The replicator checks the instance_start_time of both servers and restarts the replication if they change. This is essential to ensure we replicate everything. The reason it recommends increasing max_dbs_open is that instance_start_time only changes if the database has previously closed, and this is commonly because the LRU has done so. Does it sound plausible that you have more actively replicating databases at either end than your current max_dbs_open value? I believe the default value is 100. B. On 15 July 2013 18:09, Will Perry wrote: > Hi Folks, > > I'm seeing the following error pop up when attempting to write a new document into the _replicator database referencing a newly created database: > > checkpoint_commit_failure,<<"Source database out of sync. Try to increase max_dbs_open at the source's server.">> > > The scenario I'm running is: > > 1. On 2 couch nodes A and B > > 2. Create a new database named 'Foo' on A, then on B > > 3. Create a replication relationship on A to pull changes from B > > 4. Create a replication relationship on B to pull changes from A > > This is failing at step 3 with a 400 (bad request) and Couch's logs are showing me the error above. Incidentally, the same code used to work (on 1.2) - is there a known issue or workaround? > > Cheers, > > Will