couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pieter van der Eems <>
Subject Couchdb replication issue (badmatch)
Date Mon, 30 Sep 2013 08:08:41 GMT
 Two couchdb 1.3.0 servers linked via an ssh tunnel.

Server A (the big server).
Couchdb 1.3.0 Ubuntu 11.10

Server B (the server behind firewalls)
Couchdb 1.3.0 Ubuntu 12.10

Database named "repme" on Server B, 52 documents of which 8 are design
Futon reports the size as being 200.7MB.

Server B is located at a clients datacenter. There are firewalls and
security systems in place. We don't know how the security is
configured. We have ssh access to server B via an external ip address.

What I did (all on server A):
 * Create an ssh tunnel (/usr/bin/ssh -f -N -L 5555:<server B
ipv4-addr>:5984 <user>@<server B ipv4 external ipv4-addr>
 * Create an empty "repme" database on sever A
 * Create a replication document in _replicator on server A.

replication document:
   "_id": "pull_repme",
   "_rev": "26-a2ac9b567db0fc33e083475f0a4e260b",
   "source": "http://localhost:5555/repme",
   "target": "http://admin:********@server A:5984/repme",
   "continuous": true,
   "owner": "admin",
   "_replication_state": "triggered",
   "_replication_state_time": "2013-09-30T09:09:41+02:00",
   "_replication_id": "5d32dd7db36baeacf01b3098ff4570ef"

This was done on friday.
On monday the database on server A had only 10 documents.
I removed the replication document. Then I created a new replication
document with the exact same content (without _rev, and _replcation*
fields). Within a few seconds I saw the database on server A now had
45 documents and futon reports it's size as 255.3Mb. Then no more
activity as far as I can see.

In the couch.log file on server A I see this cryptic error twice (only
difference is in process id):
[Mon, 30 Sep 2013 07:09:41 GMT] [error] [emulator] Error in process
<0.10141.295> with exit value:

I don't know what that error means or why the replication is not working.

Searching with google on the error I saw this conversation on the
couchdb user mailinglist:

In it Robert Newson refers to "the mime preamble thing".
I cannot find anything with "mime preamble" so I don't know what is
meant there and neither if it related to my problem.

I hope anyone can help.

Pieter van der Eems

View raw message