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
Many thanks for this reply. I have tried this dump method but even that fails, complaining about the database file : "curl: (56) Problem (2) in the Chunked-Encoded data"
Our files are huge so everything takes ages.
The only other thought I have right now is to process this enormous text file, add whatever curly braces and the like are required to turn it back into valid JSON and then, as you suggest, rewrite it into the database in some way.
I'm just surprised there is no utility to fix bad data sections, it's a real pity.
By the way, I probably should have mentioned, we appear to have couchbase single version 1.2.0
Thanks again
Chris
________________________________
From: Tim Tisdall <tis...@gmail.com>
To: us...@couchdb.apache.org; Chris Ashton <chrisj...@yahoo.co.uk>
Sent: Friday, 21 March 2014, 13:19
Subject: Re: Corrupt database file
Unfortunately, I don't know much. We have a desktop application which uses CouchDB as its back end. Once the developer left, no-one knew how to run it and (of course) last week, it stopped responding.
My best guess as to how it happened is the server ran out of disk space but I can't confirm that as I didn't see the server immediately, it was messed with by our hardware providers. We had not run any compacts or anything through ignorance and it grew very large indeed!
Cheers
Chris
________________________________
From: "Knudsen, Ken" <Ken.K...@imaginecommunications.com>
To: "us...@couchdb.apache.org" <us...@couchdb.apache.org>; Chris Ashton <chrisj...@yahoo.co.uk>; Tim Tisdall <tis...@gmail.com>
Sent: Friday, 21 March 2014, 13:49
Subject: RE: Corrupt database file
Thanks for the tip
Chris
________________________________
From: Garren Smith <gar...@apache.org>
To: us...@couchdb.apache.org; Chris Ashton <chrisj...@yahoo.co.uk>
Cc: Tim Tisdall <tis...@gmail.com>
Sent: Friday, 21 March 2014, 13:53