incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin R. Coombes" <kevin.r.coom...@gmail.com>
Subject Re: Replication of design docs fails on 1.0.1 (was Re: upgrade on windows)
Date Thu, 05 Jan 2012 19:00:23 GMT
There are no errors in the log file on the remote machine. Here are the 
last few entries from the day I tried the replication:

############
[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31678.14>] 10.105.35.136 - - 'GET' /drugbase/_design%2Fbasic/images%2F.svn%2Fprop-base%2FMDACC_RGB_TC_tag_V.png.svn-base?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
301

[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31679.14>] 10.105.35.136 - - 'GET' /drugbase/_design/basic/images%2F.svn%2Fprop-base%2FMDACC_RGB_TC_tag_V.png.svn-base?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
200

[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31680.14>] 10.105.35.136 - - 'GET' /drugbase/_design%2Fbasic/images%2F.svn%2Ftext-base%2FMDACC_RGB_TC_tag_V.png.svn-base?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
301

[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31681.14>] 10.105.35.136 - - 'GET' /drugbase/_design/basic/images%2F.svn%2Ftext-base%2FMDACC_RGB_TC_tag_V.png.svn-base?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
200

[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31682.14>] 10.105.35.136 - - 'GET' /drugbase/_design%2Fbasic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
301

[Tue, 03 Jan 2012 19:43:42 GMT] [info] [<0.31683.14>] 10.105.35.136 - - 'GET' /drugbase/_design/basic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
200

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.31684.14>] 10.105.35.136 - - 'GET' /drugbase/_design%2Fbasic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
301

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.31685.14>] 10.105.35.136 - - 'GET' /drugbase/_design/basic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
200

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.31686.14>] 10.105.35.136 - - 'POST' /drugbase/_ensure_full_commit?seq=16479
201

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.23231.14>] 10.105.35.136 - - 'PUT' /drugbase/_local%2Fa4413563817bd705ab727a8ab1643a28
201

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.23231.14>] 10.105.35.136 - - 'GET' /drugbase/_design%2Fbasic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
301

[Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.23231.14>] 10.105.35.136 - - 'GET' /drugbase/_design/basic/docs.html?rev=54-4bbfe7f9178fa700740dad1f176ff6ed
200
############

The only thing I see are the repeated 301 (moved permanently) messages 
to get the _design%2Fbasic entries rewritten as _design/basic.  It is 
also worth noting that if I go into a browser and directly request the 
document
     /drugbase/_design/basic/docs.html
it displays in the browser just the way it is supposed to, so the GET 
does really succeed.  Note that this document is an attachment to the 
design document.

Also, when I go into futon (on the local machine) to poke around into 
the stuff that has replicated, there is no design document at all.  In 
other words, it appears that there is no document to which this 
requested thing should be attached.  I don't know if that is the problem 
(or if couch was smart enough not to create any design document when it 
failed on one of the attachments.)

I'm still working on trying to create a minimal (and sharable) db that 
illustrates the same problem.
     Kevin


On 1/4/2012 3:03 PM, Dave Cottlehuber wrote:
> On 3 January 2012 21:12, Kevin R. Coombes<kevin.r.coombes@gmail.com>  wrote:
>> I have good news and bad news.
>>
>> The Good News:   I successfully upgraded to 1.0.2.  All of my JavaScript
>> code still appears to work.
> Woo!
>
>> The Bad News: Pull replication from a remote machine to the local machine
>> still fails on the design document -- maybe.  Here is a transcript of the
>> new session
>>
>> ############
>>
>> C:\MyStuff\MyCodeProjects\CouchReplication>type drugbase-from-gani-to-here
>> {
>>   "target" : "http://testonly:deleteme@bcbwfl6sjn1:5984/drugbase",
>>   "source" : "http://10.105.43.35:5984/drugbase",
>>   "user_ctx": {
>>      "name": "testonly",
>>      "roles": ["_admin"]
>>   }
>> }
>> C:\MyStuff\MyCodeProjects\CouchReplication>curl
>>   -H "Content-Type: application/json" -X POST -d @drugbase-from-gani-to-here
>>   http://testonly:deleteme@bcbwfl6sjn1:5984/_replicate
>> {"error":"json_encode","reason":"{bad_term,{couch_doc,fold_streamed_data,\n
>>                 [#Fun<couch_rep_att.0.90652905>,-1140,\n
>> #Fun<couch_doc.13.28980337>,ok]}}"}
>> ############
>>
>> And here is the relevant portion of the error log:
>>
>> ############
>> [Tue, 03 Jan 2012 19:43:43 GMT] [error] [<0.619.0>] streaming att. ended but
>> more data requested {1325,619823,339311}
>>
>> [Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.619.0>] request for
>> "_design%2Fbasic/docs.html" timed out, retrying in 0.5 seconds
>>
>> [Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.621.0>] 10.105.35.136 - - 'POST'
>> /drugbase/_ensure_full_commit 201
>>
>> [Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.572.0>] recording a checkpoint
>> for http://10.105.43.35:5984/drugbase/ ->
>>   http://testonly:*****@bcbwfl6sjn1:5984/drugbase/ at source update_seq 16479
>>
>> [Tue, 03 Jan 2012 19:43:43 GMT] [info] [<0.649.0>] 10.105.35.136 - - 'PUT'
>> /drugbase/_local%2Fa4413563817bd705ab727a8ab1643a28 201
>>
>> [Tue, 03 Jan 2012 19:43:43 GMT] [error] [emulator] Error in process<0.619.0>
>>   with exit value:
>> {function_clause,[{couch_doc,fold_streamed_data,[#Fun<couch_rep_att.0.90652905>,-1140,#Fun<couch_doc.13.28980337>,ok]},{couch_doc,atts_to_mp,4},{couch_rep_writer,streamer_fun,3}]}
>> ############
> Hi Kevin,
>
> So 1 out of 2 is not too bad, :-/.
>
> Can you get logs from the remote end at the same time? I assume its
> also at 1.0.2 now.
>
> Do you have any info about the ddoc that fails? Are you able to make
> it available, or make a reduced case that exhibits the same issue?
>
> A+
> Dave

Mime
View raw message