You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Metin Akat <ak...@gmail.com> on 2010/09/28 11:14:21 UTC

problem with replication. Trying to pull and old database (0.10) from 1.0.1

Hello,
We have some databases stored in a stock Ubuntu 09.10 couchdb (0.10).
Now I am preparing it for migration to Ubuntu 10.10 - couchdb 1.0.1.
But I get serious troubles when trying to replicate the databases.

Here is a detailed list of what I do:
1. connect to the new server (1.0.1)
2. from the new server open a tunnel to the old one: ssh -L
5981:127.0.0.1:5984 user@old-server
3. I trigger pull replication on the new-server like this:
curl -d '{"source": "http://127.0.0.1:5981/partners", "target":
"partners"}' -X POST http://127.0.0.1:5984/_replicate -H
'Content-Type: application/json'

Replication succeeds partially, then fails.

I send the log of the new server as an attachment. If there are
problems with the attachment, I will resend as mail body (it's quite
long)

Re: problem with replication. Trying to pull and old database (0.10) from 1.0.1

Posted by Metin Akat <ak...@gmail.com>.
I see. That's just what I did and it worked. Thanks for the info.

On Tue, Sep 28, 2010 at 6:31 PM, Paul Davis <pa...@gmail.com> wrote:
> Replication is not supported between those versions. The simplest
> method to upgrade would be to dump your 0.10 databases to a file and
> then load them into the 1.0.1 node.
>
> There are two scripts couchdb-dump and couchdb-load that come as part
> of the couchdb-python package that will do this quite nicely for you.
>
> HTH,
> Paul Davis
>
> On Tue, Sep 28, 2010 at 5:14 AM, Metin Akat <ak...@gmail.com> wrote:
>> Hello,
>> We have some databases stored in a stock Ubuntu 09.10 couchdb (0.10).
>> Now I am preparing it for migration to Ubuntu 10.10 - couchdb 1.0.1.
>> But I get serious troubles when trying to replicate the databases.
>>
>> Here is a detailed list of what I do:
>> 1. connect to the new server (1.0.1)
>> 2. from the new server open a tunnel to the old one: ssh -L
>> 5981:127.0.0.1:5984 user@old-server
>> 3. I trigger pull replication on the new-server like this:
>> curl -d '{"source": "http://127.0.0.1:5981/partners", "target":
>> "partners"}' -X POST http://127.0.0.1:5984/_replicate -H
>> 'Content-Type: application/json'
>>
>> Replication succeeds partially, then fails.
>>
>> I send the log of the new server as an attachment. If there are
>> problems with the attachment, I will resend as mail body (it's quite
>> long)
>>
>

Re: problem with replication. Trying to pull and old database (0.10) from 1.0.1

Posted by Paul Davis <pa...@gmail.com>.
Replication is not supported between those versions. The simplest
method to upgrade would be to dump your 0.10 databases to a file and
then load them into the 1.0.1 node.

There are two scripts couchdb-dump and couchdb-load that come as part
of the couchdb-python package that will do this quite nicely for you.

HTH,
Paul Davis

On Tue, Sep 28, 2010 at 5:14 AM, Metin Akat <ak...@gmail.com> wrote:
> Hello,
> We have some databases stored in a stock Ubuntu 09.10 couchdb (0.10).
> Now I am preparing it for migration to Ubuntu 10.10 - couchdb 1.0.1.
> But I get serious troubles when trying to replicate the databases.
>
> Here is a detailed list of what I do:
> 1. connect to the new server (1.0.1)
> 2. from the new server open a tunnel to the old one: ssh -L
> 5981:127.0.0.1:5984 user@old-server
> 3. I trigger pull replication on the new-server like this:
> curl -d '{"source": "http://127.0.0.1:5981/partners", "target":
> "partners"}' -X POST http://127.0.0.1:5984/_replicate -H
> 'Content-Type: application/json'
>
> Replication succeeds partially, then fails.
>
> I send the log of the new server as an attachment. If there are
> problems with the attachment, I will resend as mail body (it's quite
> long)
>