You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Dmitrii Dimandt <dm...@gmail.com> on 2008/11/14 11:37:43 UTC

DBs lost after CouchDB Update

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 

Re: DBs lost after CouchDB Update

Posted by Chris Anderson <jc...@apache.org>.
On Fri, Nov 14, 2008 at 4:17 AM, Dmitrii Dimandt <dm...@dmitriid.com> wrote:
> --On November 14, 2008 12:04:49 PM +0000 Noah Slater <ns...@apache.org>
>> Now, you can install the latest and greatest CouchDB version and use the
>> same tools to re-import you data.
>
> Thank you! I'll keep those tools on my radar

It is also usually possible to launch the new version of CouchDB on an
alternate port (with alternate data and config directories - cf `make
dev`), and then use replication to copy databases across. There are
version combination with incompatible replication formats, but they
are quite rare.


-- 
Chris Anderson
http://jchris.mfdz.com

Re: DBs lost after CouchDB Update

Posted by Dmitrii Dimandt <dm...@dmitriid.com>.

--On November 14, 2008 12:04:49 PM +0000 Noah Slater <ns...@apache.org> 
wrote:

> 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.
>

That's pretty much what I figured :) Decided it was worth panicking though 
:) It's not that I have loads of data (I'm currently experimenting with 
CouchDB, <http://code.google.com/p/sew-wiki/>), but I thought it would be 
wise to ask just in case this wasn't the expected behaviour


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

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

Thank you! I'll keep those tools on my radar



Re: DBs lost after CouchDB Update

Posted by Noah Slater <ns...@apache.org>.
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