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 9D18B10916 for ; Fri, 21 Mar 2014 13:20:16 +0000 (UTC) Received: (qmail 63811 invoked by uid 500); 21 Mar 2014 13:20:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62426 invoked by uid 500); 21 Mar 2014 13:20:12 -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 62418 invoked by uid 99); 21 Mar 2014 13:20:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 13:20:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tisdall@gmail.com designates 209.85.215.51 as permitted sender) Received: from [209.85.215.51] (HELO mail-la0-f51.google.com) (209.85.215.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 13:20:03 +0000 Received: by mail-la0-f51.google.com with SMTP id pv20so1678410lab.10 for ; Fri, 21 Mar 2014 06:19:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=D4BlXMLaf2DsVkDHaogU+kNKk4+AKNyxtOYBUw4Pxoo=; b=pSH8eSaBnB0665CxMActVCuaixnGIbLiTUXjfRiNhCxjLDxvONY6sKcoL+vDoDEZkw ds8a9Lwb9wnUKANxMO3CY8EhZnThh77epMwyCSrcWNvqv4aWSzlOqK1e2stuNNThLMr5 LXTp6vHUr2//yR993qJMasjRB1BckLvZcTlEGZDEAfOo9ELpS1UOy+NIOaID7tqZm0/3 xK4PLAqsOxvxM0h6/2NbbeXsrHjlfWtw6ZoBkY1Fyfm1lIHB2ceyoOir+gU5rQ33jOgw z+EerVHRSNVc/2TB67NBzbYIF6j5UGJfSM/R2kr3SMs3mTqAgI1/RErrVPUkgkcVMAux Z6Bw== MIME-Version: 1.0 X-Received: by 10.152.234.130 with SMTP id ue2mr34215298lac.0.1395407982351; Fri, 21 Mar 2014 06:19:42 -0700 (PDT) Received: by 10.112.159.229 with HTTP; Fri, 21 Mar 2014 06:19:42 -0700 (PDT) In-Reply-To: <1395402372.93156.YahooMailNeo@web171406.mail.ir2.yahoo.com> References: <1395402372.93156.YahooMailNeo@web171406.mail.ir2.yahoo.com> Date: Fri, 21 Mar 2014 09:19:42 -0400 Message-ID: Subject: Re: Corrupt database file From: Tim Tisdall To: user@couchdb.apache.org, Chris Ashton Content-Type: multipart/alternative; boundary=001a113484bc1adc6504f51dbdf5 X-Virus-Checked: Checked by ClamAV on apache.org --001a113484bc1adc6504f51dbdf5 Content-Type: text/plain; charset=ISO-8859-1 I don't think there's any tool for fixing corrupted db files... What I'd try doing is dumping all the content from the DB and reconstructing it. You can fetch everything in the database by downloading http://127.0.0.1:5984/my_database/_all_docs?include_docs=true (where the IP and domain is your server, and 'my_database' is your DB). You'd then need to write some sort of script to read that JSON document and then write the values back into a _new_ database. Does anyone know if there's a way to do this same sort of thing with replication? (I have to do it the other way because I don't have enough space for 2 copies of my DB on my system) On 21 March 2014 07:46, Chris Ashton wrote: > Hi > > I am a novice with CouchDB and really struggling to support a product that > someone developed before leaving the company. No one else has any skills in > Couch so I'm trying to pick up the pieces. > > Our database has stopped responding and we've tried compacting but to no > avail. > > We are getting errors like the following in the log file, which I presume > mean that we have a corrupt db file for one reason or another: > > > [Fri, 21 Mar 2014 10:06:56 GMT] [error] [<0.213.0>] ** Generic server > <0.213.0> terminating > ** Last message in was {'EXIT',<0.217.0>, > {file_corruption,<<"file corruption">>}} > > I was wondering if there was a utility which would scan DB files and > remove badly formed parts or anything like that? We are running on Windows. > > Many thanks > > Chris > --001a113484bc1adc6504f51dbdf5--