couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin R. Coombes" <>
Subject Replication of design docs fails on 1.0.1 (was Re: upgrade on windows)
Date Tue, 03 Jan 2012 17:45:33 GMT
Thanks for all the advice.  I haven't upgraded yet; instead, inspired by 
the claim that "it works for me", I decided to poke around some more 
into the replication issue. I'm now going to report that replication of 
design docs *sometimes* fails on version 1.0.1, which is probably the 
worse kind of bug to report....

First, here is a transcript of the (64-bit Windows 7) cmd window:



C:\MyStuff\MyCodeProjects\CouchReplication>type testrepl.json
   "target" : "http://testonly:deleteme@bcbwfl6sjn1:5984/reptarget",
   "source" : "http://bcbwfl6sjn1:5984/testrepl",
   "user_ctx": {
      "name": "testonly",
      "roles": ["_admin"]

  -H "Content-Type: application/json" -X POST -d @testrepl.json
"Tue, 03 Jan 2012 17:22:52 GMT","end_time":"Tue, 03 Jan 2012 17:22:52 GMT",

C:\MyStuff\MyCodeProjects\CouchReplication>type drugbase-from-gani-to-here
   "target" : "http://testonly:deleteme@bcbwfl6sjn1:5984/drugbase",
   "source" : "",
   "user_ctx": {
      "name": "testonly",
      "roles": ["_admin"]

  -H "Content-Type: application/json" -X POST -d @drugbase-from-gani-to-here

Note that the first replication attempt (which works) goes from one 
database to another on the same machine. This attempt uses a small test 
database that has the usual sorts of design document attachments for a 
CouchApp along with only one ordinary document.

The second attempt is a pull replication from a remote machine to the 
local machine.  This has the same kind of CouchApp design documents, and 
has about 16000 ordinary documents. All 16000+ ordinary documents get 
replicated without a problem.  Only yte design document fails.  Here is 
the start of the error message from the log file,to confirm that it is 
(an attachment to) the design document that fails:

[Tue, 03 Jan 2012 17:25:25 GMT] [error] [<0.650.0>] streaming att. ended 
but more data requested {1325,611525,197841}

[Tue, 03 Jan 2012 17:25:25 GMT] [info] [<0.650.0>] request for 
"_design%2Fbasic/docs.html" timed out, retrying in 0.5 seconds

[Tue, 03 Jan 2012 17:25:25 GMT] [error] [<0.650.0>] streaming att. ended 
but more data requested {1325,611525,712841}

[Tue, 03 Jan 2012 17:25:25 GMT] [info] [<0.650.0>] request for 
"_design%2Fbasic/docs.html" timed out, retrying in 0.5 seconds

[Tue, 03 Jan 2012 17:25:26 GMT] [error] [emulator] Error in process 
<0.650.0> with exit value: 

Any suggestions? (I am open to the suggestion that "upgrading to Version 
X will solve the problem" for a specific value of X....)


On 1/2/2012 8:28 PM, Dave Cottlehuber wrote:
> On 2 January 2012 21:43, Kevin R. Coombes<>  wrote:
>> Hi,
>> I am currently running CouchDB 1.0.1 on a 64-bit Windows 7 machine.  I know
>> this version is somewhat old, and I would like to upgrade to something
>> newer.  My main reason for wanting to upgrade is that I am currently unable
>> to _replicate design documents along with the rest of the database
>> (regardless of where and how many times I supply the relevant admin
>> passwords...).
> Hi Kevin,
> "It works for me" using 1.0.2 and should be the same for 1.0.1.
> Apologies if this is simplistic, but:
> You don't happen to have any weird characters, or : or @ in your passwords?
> Can you make a new DB using curl -vX PUT $user@$passwd:$host/newdb ?
> Can you demonstrate the replication failure using curl.exe? The syntax,
> -vX POST output from curl, and both couch logs with debug logging enabled
> on a pastie site please if it fails.
> Refer to for quoting
> syntax under windows.
> interested in at the moment is that I would like my
> existing CouchApp JavaScript code to continue to work....
> Re JS changes, poking around in:
> and
> should help.
> A+ Dave 

View raw message