couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <>
Subject Re: I replicate _replicator by chance
Date Sun, 05 Aug 2012 18:57:07 GMT
On 5 August 2012 19:47, Michael Bykov <> wrote:
> Hi,
> I by chance replicate "_replicator" to a destination database. More
> exactly, I click "replicate" button, but nothing happens.
> But now, when I replicate my local db, it wrote in a log on each document:
> [error] [<0.28457.5>] Replicator: couldn't write document
> `4fc8269be10198e2bfa2a137fe1a9333`, revision
> `1-4a8baba0dd74f92ec0da91e8fff84774`, to target database
> `http://admin:*****@localhost:5986/diglossa/`. Error: `forbidden`,
> reason: `The `source' property must exist and be either a string or an
> object.`
> And in Futon:
> {"session_id":"d7c097b8d822f707725b1b79b5bc3bc8","start_time":"Sun, 05
> Aug 2012 17:34:34 GMT","end_time":"Sun, 05 Aug 2012 17:34:42
> GMT","start_last_seq":262336,"end_last_seq":262672,"recorded_seq":262672,"missing_checked":280,"missing_found":280,"docs_read":280,"docs_written":0,"doc_write_failures":280}
> I compact and cleanup both databases, it did not help.
> Please, suggest, what can be done?
> --
> лю.
> xmpp://

Hi Michael,

The thing stopping writing your docs is a validation function (clue
"`The `source' property must exist and be either a string or an
object" is not in the couch source tree). I'm guessing a little but I
think your _replicator db at one end now has "normal" design docs in

What I'd do now is:

1. rename the _replicator.couch db file at the problem end to something else.
2. restart couchdb (get a new, clean _replicator)
3. if you need to, log into futon as admin and delete all ddocs in the
renamed, foobared _replicator and rename it back. You'll likely only
need this if you have continuous replications, or ones that should be
present on a restart of couchdb.
4. any more cleanup as reqd by your application.

I think that's enough to get you started.


View raw message