I have two couchdb servers: the first is on Windows, the second is on
Linux. Version 0.11.0 install on both computers. I have the database on
Windows server (database size is 12.6MB) and try to replicate it to
couchdb installed on Linux.
Replication fails with following error, but in target database on Linux
I see two records from the source database:
[Thu, 08 Apr 2010 11:10:24 GMT] [info] [<0.2419.0>] starting new
replication "91b53baa2964c7ca334c8e690dfb4e50" at <0.2484.0>
[Thu, 08 Apr 2010 11:10:29 GMT] [info] [<0.2484.0>] recording a
checkpoint for test -> http://clabs.eu:5984/topby/ at source update_seq 2
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.2494.0>] couch_rep_httpc
request failed after 10 retries: http://clabs.eu:5984/topby/
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.2484.0>] ** Generic server
<0.2484.0> terminating
** Last message in was {'EXIT',<0.2494.0>,
{http_request_failed,
<<"failed to replicate
http://clabs.eu:5984/topby/">>}}
** When Server state == {state,<0.2488.0>,<0.2490.0>,<0.2492.0>,<0.2494.0>,
{db,<0.676.0>,<0.677.0>,nil,
<<"1270723342563000">>,<0.674.0>,<0.678.0>,
{db_header,4,79,0,
{13206788,{59,0}},
{13207707,59},
{13239894,[]},
0,nil,nil,1000},
79,
{btree,<0.674.0>,
{13206788,{59,0}},
#Fun<couch_db_updater.7.132302543>,
#Fun<couch_db_updater.8.107957134>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.9.46112288>},
{btree,<0.674.0>,
{13207707,59},
#Fun<couch_db_updater.10.19027664>,
#Fun<couch_db_updater.11.35033879>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.12.56344865>},
{btree,<0.674.0>,
{13239894,[]},
#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
79,<<"test">>,"../var/lib/couchdb/test.couch",
[],[],nil,
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth,
default_authentication_handler}">>},
nil,1000,
[before_header,after_header,on_file_open]},
{http_db,"http://clabs.eu:5984/topby/",[],[],
[{"User-Agent","CouchDB/0.11.0"},
{"Accept","application/json"},
{"Accept-Encoding","gzip"}],
[],get,nil,
[{response_format,binary},
{inactivity_timeout,30000}],
10,500,nil},
false,false,
["91b53baa2964c7ca334c8e690dfb4e50",
{[{<<"source">>,<<"test">>},
{<<"target">>,
<<"http://clabs.eu:5984/topby">>}]},
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth,
default_authentication_handler}">>}],
nil,0,[],
{doc,
<<"_local/91b53baa2964c7ca334c8e690dfb4e50">>,
{0,[<<"1">>]},
{[]},
[],false,[]},
{doc,
<<"_local/91b53baa2964c7ca334c8e690dfb4e50">>,
{0,[<<"1">>]},
{[]},
[],false,[]},
"Thu, 08 Apr 2010 11:10:24 GMT",
<<"1270723342563000">>,<<"1270725016601287">>,
{[{<<"session_id">>,
<<"64b6dc0a8bbee8b125cf61150b7b234c">>},
{<<"source_last_seq">>,2},
{<<"history">>,
[{[{<<"session_id">>,
<<"64b6dc0a8bbee8b125cf61150b7b234c">>},
{<<"start_time">>,
<<"Thu, 08 Apr 2010 11:10:24 GMT">>},
{<<"end_time">>,
<<"Thu, 08 Apr 2010 11:10:29 GMT">>},
{<<"start_last_seq">>,0},
{<<"end_last_seq">>,2},
{<<"recorded_seq">>,2},
{<<"missing_checked">>,0},
{<<"missing_found">>,59},
{<<"docs_read">>,59},
{<<"docs_written">>,2},
{<<"doc_write_failures">>,0}]}]}]},
[{<0.2419.0>,#Ref<0.0.0.12568>}],
false,2,114735,nil}
** Reason for termination ==
** {http_request_failed,<<"failed to replicate
http://clabs.eu:5984/topby/">>}
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.2484.0>] {error_report,<0.33.0>,
{<0.2484.0>,crash_report,
[[{initial_call,{couch_rep,init,['Argument__1']}},
{pid,<0.2484.0>},
{registered_name,[]},
{error_info,
{exit,
{http_request_failed,
<<"failed to replicate http://clabs.eu:5984/topby/">>},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[couch_rep_sup,couch_primary_services,couch_server_sup,<0.34.0>]},
{messages,[]},
{links,[<0.2492.0>,<0.83.0>]},
{dictionary,[{task_status_update,{{1270,725024,844000},0}}]},
{trap_exit,true},
{status,running},
{heap_size,1597},
{stack_size,24},
{reductions,5476}],
[]]}}
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.2492.0>] ** Generic server
<0.2492.0> terminating
** Last message in was {'EXIT',<0.2484.0>,
{http_request_failed,
<<"failed to replicate
http://clabs.eu:5984/topby/">>}}
** When Server state == {state,<0.2484.0>,
{db,<0.676.0>,<0.677.0>,nil,
<<"1270723342563000">>,<0.674.0>,<0.678.0>,
{db_header,4,79,0,
{13206788,{59,0}},
{13207707,59},
{13239894,[]},
0,nil,nil,1000},
79,
{btree,<0.674.0>,
{13206788,{59,0}},
#Fun<couch_db_updater.7.132302543>,
#Fun<couch_db_updater.8.107957134>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.9.46112288>},
{btree,<0.674.0>,
{13207707,59},
#Fun<couch_db_updater.10.19027664>,
#Fun<couch_db_updater.11.35033879>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.12.56344865>},
{btree,<0.674.0>,
{13239894,[]},
#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
79,<<"test">>,"../var/lib/couchdb/test.couch",
[],[],nil,
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth,
default_authentication_handler}">>},
nil,1000,
[before_header,after_header,on_file_open]},
<0.2490.0>,<0.2493.0>,[],0,
{[],[]},
nil,true,0,nil,[],"O"}
** Reason for termination ==
** {http_request_failed,<<"failed to replicate
http://clabs.eu:5984/topby/">>}
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.2492.0>] {error_report,<0.33.0>,
{<0.2492.0>,crash_report,
[[{initial_call,{couch_rep_reader,init,['Argument__1']}},
{pid,<0.2492.0>},
{registered_name,[]},
{error_info,
{exit,
{http_request_failed,
<<"failed to replicate http://clabs.eu:5984/topby/">>},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[<0.2484.0>,couch_rep_sup,couch_primary_services,couch_server_sup,
<0.34.0>]},
{messages,[]},
{links,[]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,46368},
{stack_size,24},
{reductions,8814}],
[]]}}
[Thu, 08 Apr 2010 11:24:28 GMT] [error] [<0.83.0>] {error_report,<0.33.0>,
{<0.83.0>,supervisor_report,
[{supervisor,{local,couch_rep_sup}},
{errorContext,child_terminated},
{reason,
{http_request_failed,
<<"failed to replicate http://clabs.eu:5984/topby/">>}},
{offender,
[{pid,<0.2484.0>},
{name,"91b53baa2964c7ca334c8e690dfb4e50"},
{mfa,
{gen_server,start_link,
[couch_rep,
["91b53baa2964c7ca334c8e690dfb4e50",
{[{<<"source">>,<<"test">>},
{<<"target">>,<<"http://clabs.eu:5984/topby">>}]},
{user_ctx,null,
[<<"_admin">>],
<<"{couch_httpd_auth,
default_authentication_handler}">>}],
[]]}},
{restart_type,temporary},
{shutdown,1},
{child_type,worker}]}]}}
[Thu, 08 Apr 2010 11:24:28 GMT] [info] [<0.2419.0>] 192.168.4.60 - -
'POST' /_replicate 500
Any ideas?
Thank you!
Regards,
Yauhen Zenko.