You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Scott Nonnenberg (JIRA)" <ji...@apache.org> on 2012/09/13 02:27:08 UTC

[jira] [Created] (COUCHDB-1533) failed HTTPs replications not removed from _active_tasks

Scott Nonnenberg created COUCHDB-1533:
-----------------------------------------

             Summary: failed HTTPs replications not removed from _active_tasks
                 Key: COUCHDB-1533
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1533
             Project: CouchDB
          Issue Type: Bug
          Components: Replication
    Affects Versions: 1.2
         Environment: MacOSX, .app build 1.2.0
            Reporter: Scott Nonnenberg
            Priority: Minor


I scheduled three separate HTTPS replications (with username/pass in URL) from my iriscouch.com instance down to my local MacOSX instance, and all three eventually failed. Though my _replicator database is empty, two of them are still left in my _active_tasks:

[{"pid":"<0.6884.0>","checkpointed_source_seq":64430,"continuous":true,"doc_id":null,"doc_write_failures":0,"docs_read":0,"docs_written":0,"missing_revisions_found":0,"progress":50,"replication_id":"3bb36f0672c4760efbf913c2ee66b266+continuous","revisions_checked":81930,"source":"https://******:*****@*******.iriscouch.com/n*******/","source_seq":160971,"started_on":1346447834,"target":"n*******","type":"replication","updated_on":1346447856},{"pid":"<0.7400.0>","checkpointed_source_seq":0,"continuous":true,"doc_id":null,"doc_write_failures":0,"docs_read":0,"docs_written":0,"missing_revisions_found":0,"progress":0,"replication_id":"ecf487a0649345263535f338ff35cc6f+continuous","revisions_checked":1,"source":"https://******:*****@*******.iriscouch.com/h********/","source_seq":17360,"started_on":1346447897,"target":"h*******","type":"replication","updated_on":1346447898}]

And the original errors during the replication look like this (from _log):

[Fri, 31 Aug 2012 21:39:27 GMT] [error] [<0.6906.0>] ** Generic server <0.6906.0> terminating 
** Last message in was {'EXIT',<0.7269.0>,
                           {http_request_failed,"GET",
                               "https://******:*****@********.iriscouch.com/n*******/*************?revs=true&open_revs=%5B%221-ca2cc0a4ed768b3eb127670fd88b80b0%22%5D",
                               {error,timeout}}}
** When Server state == {state,<0.6884.0>,<0.6907.0>,20,
                         {httpdb,
                          "https://******:******@******.iriscouch.com/n*******/",
                          nil,
                          [{"Accept","application/json"},
                           {"User-Agent","CouchDB/1.2.0"}],
                          30000,
                          [{is_ssl,true},
                           {socket_options,[{keepalive,true},{nodelay,false}]},
                           {ssl_options,[{depth,3},{verify,verify_none}]}],
                          10,250,<0.6885.0>,20},
                         {db,<0.6891.0>,<0.6892.0>,nil,
                          <<"1346447833739501">>,<0.6893.0>,<0.6889.0>,
                          <0.6895.0>,
                          {db_header,6,87642,0,
                           {52428775,{85595,1,35838301},5074240},
                           {52431627,85596,4079923},
                           {52678776,[],386},
                           0,nil,nil,1000},
                          87642,
                          {btree,<0.6889.0>,
                           {52428775,{85595,1,35838301},5074240},
                           #Fun<couch_db_updater.10.54616312>,
                           #Fun<couch_db_updater.11.54616312>,
                           #Fun<couch_btree.5.62781489>,
                           #Fun<couch_db_updater.12.54616312>,snappy},
                          {btree,<0.6889.0>,
                           {52431627,85596,4079923},
                           #Fun<couch_db_updater.13.54616312>,
                           #Fun<couch_db_updater.14.54616312>,
                           #Fun<couch_btree.5.62781489>,
                           #Fun<couch_db_updater.15.54616312>,snappy},
                          {btree,<0.6889.0>,
                           {52678776,[],386},
                           #Fun<couch_btree.3.62781489>,
                           #Fun<couch_btree.4.62781489>,
                           #Fun<couch_btree.5.62781489>,nil,snappy},
                          87642,<<"n******">>,
                          "/Users/scottnonnenberg/Library/Application Support/CouchDB/var/lib/couchdb/n******.couch",
                          [],[],nil,
                          {user_ctx,null,
                           [<<"_admin">>],
                           <<"{couch_httpd_auth, default_authentication_handler}">>},
                          nil,1000,
                          [before_header,after_header,on_file_open],
                          [{user_ctx,
                            {user_ctx,null,
                             [<<"_admin">>],
                             <<"{couch_httpd_auth, default_authentication_handler}">>}}],
                          snappy,nil,nil},
                         [<0.10446.0>,<0.10426.0>,<0.10419.0>,<0.9469.0>,
                          <0.9466.0>,<0.9433.0>,<0.9297.0>,<0.8978.0>,
                          <0.8970.0>,<0.7992.0>,<0.7816.0>,<0.7285.0>,
                          <0.7283.0>,<0.7281.0>,<0.7279.0>,<0.7275.0>,
                          <0.7273.0>,<0.7271.0>,<0.7269.0>,<0.7257.0>],
                         nil,
                         {{<0.6907.0>,#Ref<0.0.2.4706>},
                          {<<"******">>,
                           [{1,
                             <<205,170,121,51,17,111,146,216,88,212,9,239,
                               175,149,15,165>>}],
                           []}},
                         nil,
                         {rep_stats,500,500,31,30,0},
                         nil,<0.6908.0>,
                         {batch,
                          [{doc,<<"********">>,
                            {1,
                             [<<30,6,88,39,238,88,229,76,20,56,98,177,238,
                                154,195,197>>]},
                            {[{<<"id">>,<<"154177987213505488">>},
                              {<<"date">>,<<"2012-08-11T02:16:36.631Z">>},
<snip>
                            [],false,[]}],
                          1}}
** Reason for termination == 
** {process_died,<0.7269.0>,
                 {http_request_failed,"GET",
                                      "https://******:*****@******.iriscouch.com/n******/******?revs=true&open_revs=%5B%221-ca2cc0a4ed768b3eb127670fd88b80b0%22%5D",
                                      {error,timeout}}}

[Fri, 31 Aug 2012 21:39:27 GMT] [error] [<0.6906.0>] {error_report,<0.34.0>,
                      {<0.6906.0>,crash_report,
                       [[{initial_call,
                          {couch_replicator_worker,init,['Argument__1']}},
                         {pid,<0.6906.0>},
                         {registered_name,[]},
                         {error_info,
                          {exit,
                           {process_died,<0.7269.0>,
                            {http_request_failed,"GET",
                             "https://******:*****@******.iriscouch.com/n******/******?revs=true&open_revs=%5B%221-ca2cc0a4ed768b3eb127670fd88b80b0%22%5D",
                             {error,timeout}}},
                           [{gen_server,terminate,6,
                             [{file,"gen_server.erl"},{line,737}]},
                            {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}},
                         {ancestors,
                          [<0.6884.0>,couch_rep_sup,couch_primary_services,
                           couch_server_sup,<0.35.0>]},
                         {messages,[]},
                         {links,
                          [<0.7992.0>,<0.9297.0>,<0.9469.0>,<0.10426.0>,
                           <0.10446.0>,<0.10419.0>,<0.9466.0>,<0.9433.0>,
                           <0.8978.0>,<0.8970.0>,<0.7279.0>,<0.7285.0>,
                           <0.7816.0>,<0.7283.0>,<0.7281.0>,<0.7257.0>,
                           <0.7273.0>,<0.7275.0>,<0.7271.0>,<0.6907.0>,
                           <0.6908.0>,<0.6884.0>]},
                         {dictionary,
                          [{last_stats_report,{1346,447856,599478}}]},
                         {trap_exit,true},
                         {status,running},
                         {heap_size,6765},
                         {stack_size,24},
                         {reductions,6331}],
                        [{neighbour,
                          [{pid,<0.7281.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_docs,4}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7282.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"*****">>,
                               [{1,
                                 <<88,143,64,197,224,36,188,146,212,160,160,
                                   86,39,38,65,83>>}],
                               #Ref<0.0.2.2613>,<0.7282.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,23},
                           {reductions,250}]},
                         {neighbour,
                          [{pid,<0.7283.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7284.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<162,187,200,118,120,171,140,157,132,30,
                                   230,225,144,112,45,191>>}],
                               #Ref<0.0.1.258977>,<0.7284.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,294}]},
                         {neighbour,
                          [{pid,<0.7816.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7817.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"*****">>,
                               [{1,
                                 <<124,79,26,83,58,199,182,122,152,192,14,
                                   114,49,231,225,158>>}],
                               #Ref<0.0.2.2643>,<0.7817.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,252}]},
                         {neighbour,
                          [{pid,<0.7285.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7286.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"*****">>,
                               [{1,
                                 <<125,141,44,116,215,119,206,82,9,130,160,
                                   50,179,83,56,8>>}],
                               #Ref<0.0.1.260927>,<0.7286.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,282}]},
                         {neighbour,
                          [{pid,<0.7279.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7280.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<2,114,181,134,166,197,241,236,94,31,48,
                                   223,6,32,109,146>>}],
                               #Ref<0.0.1.261183>,<0.7280.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,2584},
                           {stack_size,27},
                           {reductions,529}]},
                         {neighbour,
                          [{pid,<0.8970.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.8971.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<106,114,84,138,222,134,22,3,44,49,86,16,
                                   197,181,58,236>>}],
                               #Ref<0.0.2.4162>,<0.8971.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,266}]},
                         {neighbour,
                          [{pid,<0.8978.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.8979.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<27,17,100,73,57,227,59,214,150,5,45,2,87,
                                   102,65,106>>}],
                               #Ref<0.0.2.6362>,<0.8979.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,266}]},
                         {neighbour,
                          [{pid,<0.9433.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_docs,4}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.9434.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<171,127,100,131,126,151,145,182,97,174,69,
                                   120,12,243,150,171>>}],
                               #Ref<0.0.2.4737>,<0.9434.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,23},
                           {reductions,252}]},
                         {neighbour,
                          [{pid,<0.9466.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.9467.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<190,71,72,241,55,157,81,55,139,179,120,
                                   201,213,134,213,156>>}],
                               #Ref<0.0.2.6347>,<0.9467.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,271}]},
                         {neighbour,
                          [{pid,<0.10419.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,open_doc_revs,6}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.10420.0>]},
                           {dictionary,[]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,16},
                           {reductions,217}]},
                         {neighbour,
                          [{pid,<0.10446.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,open_doc_revs,6}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.10447.0>]},
                           {dictionary,[]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,16},
                           {reductions,217}]},
                         {neighbour,
                          [{pid,<0.10426.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,open_doc_revs,6}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.10427.0>]},
                           {dictionary,[]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,16},
                           {reductions,217}]},
                         {neighbour,
                          [{pid,<0.9469.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_all,3}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.9470.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<31,217,210,66,227,192,45,131,185,197,10,
                                   213,43,85,253,188>>}],
                               #Ref<0.0.2.4766>,<0.9470.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,27},
                           {reductions,257}]},
                         {neighbour,
                          [{pid,<0.9297.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_docs,4}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.9298.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<194,131,221,58,178,198,56,82,152,64,37,71,
                                   103,22,16,89>>}],
                               #Ref<0.0.2.6065>,<0.9298.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,23},
                           {reductions,236}]},
                         {neighbour,
                          [{pid,<0.7992.0>},
                           {registered_name,[]},
                           {initial_call,{erlang,apply,2}},
                           {current_function,{couch_api_wrap,receive_docs,4}},
                           {ancestors,[]},
                           {messages,[]},
                           {links,[<0.6906.0>,<0.7993.0>]},
                           {dictionary,
                            [{open_doc_revs,
                              {<<"******">>,
                               [{1,
                                 <<209,245,149,18,151,75,152,77,103,101,193,
                                   92,24,20,27,156>>}],
                               #Ref<0.0.1.261047>,<0.7993.0>}}]},
                           {trap_exit,false},
                           {status,waiting},
                           {heap_size,1597},
                           {stack_size,23},
                           {reductions,275}]}]]}}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira