incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: DBs lost after CouchDB Update
Date Fri, 14 Nov 2008 12:04:49 GMT
Hey Dmitrii,

On Fri, Nov 14, 2008 at 12:37:43PM +0200, Dmitrii Dimandt wrote:
> I performed an svn update on my couchdb, and upgraded it to the newest
> version
>
> Futon shows all previous databases. However, it doesn't list database
> sizes and doesn't show any documents inside the databases. What could
> possibly be the problem? Thank you

Because CouchDB is still alpha software we are still improving the core database
format. Unfortunately, these changes are backwards-incompatible sometimes. If
you stick to our official releases you can review our release notes, where we
will always add warnings about breaking changes so that you can prepare your
setup before doing an upgrade.

However, there is hopefully a solution for your current situation.

If possible, you need remove the current CouchDB installation (taking care to
backup your CouchDB database files under `/var/lib/couchdb`) and fetch a copy of
the original version you were using. The log files under `/var/log/couchdb` may
be of help if you can't remember. If you really have no clue, you might have to
each previous official release until you find one that works.

Once you have installed an old version that works, and you can access your data
again, you should download Christopher Lenz's CouchDB Python library from:

  http://code.google.com/p/couchdb-python/

It contains some export/import tools, seen here:

  http://code.google.com/p/couchdb-python/source/browse/#svn/trunk/couchdb/tools

Use these tools to dump your CouchDB database to a separate file.

Now, you can install the latest and greatest CouchDB version and use the same
tools to re-import you data.

Hope this helps,

-- 
Noah Slater, http://tumbolia.org/nslater

Mime
View raw message