You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Filipe Manana (JIRA)" <ji...@apache.org> on 2010/08/29 22:57:53 UTC

[jira] Closed: (COUCHDB-873) problems with auth_cache while logout

     [ https://issues.apache.org/jira/browse/COUCHDB-873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filipe Manana closed COUCHDB-873.
---------------------------------

    Resolution: Fixed

That bug was fixed in release 1.0.1.
Please upgrade to 1.0.1.

> problems with auth_cache while logout
> -------------------------------------
>
>                 Key: COUCHDB-873
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-873
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0
>         Environment: Windows 7
>            Reporter: Dmitry Yakimov
>            Assignee: Filipe Manana
>
> sometimes this code (I delete myself before logout):
>       db.login();
>       db.request("DELETE", "/_config/admins/dima"); 
>       db.request("DELETE", "/_users/org.couchdb.user:dima?rev=" + user._rev);       
>       db.logout();
> gives me in log:
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] 'DELETE' /_config/admins/dima {1,1}
> Headers: [{'Accept',"application/json, text/javascript, */*"},
>           {'Cache-Control',"no-cache"},
>           {'Connection',"Keep-Alive"},
>           {"Content-Transfer-Encoding","binary"},
>           {'Content-Type',"application/json"},
>           {'Cookie',"AuthSession=ZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-EyBuF_KGg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Pragma',"no-cache"},
>           {'User-Agent',"TIScript [ru]"}]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] OAuth Params: []
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] timeout 600
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] Successful cookie auth as: "dima"
> [Sun, 29 Aug 2010 18:47:29 GMT] [info] [<0.9647.1>] 127.0.0.1 - - 'DELETE' /_config/admins/dima 200
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] 'DELETE' /_users/org.couchdb.user:dima?rev=19-caa4dadfe4b7f25c800f8b585eab712a {1,
>                                                                                 1}
> Headers: [{'Accept',"application/json, text/javascript, */*"},
>           {'Cache-Control',"no-cache"},
>           {'Connection',"Keep-Alive"},
>           {"Content-Transfer-Encoding","binary"},
>           {'Content-Type',"application/json"},
>           {'Cookie',"AuthSession=ZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-EyBuF_KGg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Pragma',"no-cache"},
>           {'User-Agent',"TIScript [ru]"}]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] OAuth Params: [{"rev","19-caa4dadfe4b7f25c800f8b585eab712a"}]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] timeout 600
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8885.1>] DDocProc found for DDocKey: {<<"_design/_auth">>,
>                              <<"1-04d86233b3254bb5a53dcf7103f97fc2">>}
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6286> Input  :: ["reset",{"reduce_limit":true}]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6286> Output :: true
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6286> Input  :: ["ddoc","_design/_auth",["validate_doc_update"],[{"_id":"org.couchdb.user:dima","_rev":"19-caa4dadfe4b7f25c800f8b585eab712a","_deleted":true,"_revisions":{"start":19,"ids":["caa4dadfe4b7f25c800f8b585eab712a"]}},{"_id":"org.couchdb.user:dima","_rev":"19-caa4dadfe4b7f25c800f8b585eab712a","roles":[],"type":"user","name":"dima","_revisions":{"start":19,"ids":["caa4dadfe4b7f25c800f8b585eab712a","6fcc5b0a5a7dd47b4e0143f9f897d8b0","465151caeeaacf3a7899fdd577c0a11f","8b1a5160b8baf8683267c4ab1f596db9","4798cfa5fbae17c305884e9fa9b00ce7","395a5d6deb32afa2ede0a999c9664d57","0719a5b594e9e9ddcd780aff3fae32f0","ee04d4bb496a14072370039dc3fa2755","603821a30dce8a81ac5e16cb5510eab6","84aa2dc6f08bbbae60fafe50af61b038","bb7cea2f70c43fa476ca5e14a0519bac","61219da02b694b82e5293cc1c4ce414f","965c8ed30a3461c1cf0abb73e65f4535","2e5d4b836d504982b4f77a5026e9e0a1","58e4b794a304f9adcbeedd911e24f67a","660e73a19dc63e126616196b7ede9782","6e91b60a4b3b25c86c03db036249f08d","8cb3000903b76b1352f559a6c063f7b0","a1321bf014ef7dd24a9d990aa2ceb4d4"]}},{"db":"_users","name":null,"roles":["_admin"]},{}]]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6286> Output :: 1
> [Sun, 29 Aug 2010 18:47:29 GMT] [info] [<0.9647.1>] 127.0.0.1 - - 'DELETE' /_users/org.couchdb.user:dima?rev=19-caa4dadfe4b7f25c800f8b585eab712a 200
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] 'DELETE' /_session {1,1}
> Headers: [{'Accept',"application/json, text/javascript, */*"},
>           {'Cache-Control',"no-cache"},
>           {'Connection',"Keep-Alive"},
>           {"Content-Transfer-Encoding","binary"},
>           {'Content-Type',"application/json"},
>           {'Cookie',"AuthSession=ZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-EyBuF_KGg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Pragma',"no-cache"},
>           {'User-Agent',"TIScript [ru]"}]
> [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] OAuth Params: []
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.9876.1>] ** Generic server couch_auth_cache terminating 
> ** Last message in was refresh
> ** When Server state == {state,50,1,<0.9877.1>}
> ** Reason for termination == 
> ** {{badmatch,{not_found,deleted}},
>     [{couch_auth_cache,refresh_entry,2},
>      {couch_btree,stream_kv_node2,8},
>      {couch_btree,fold,4},
>      {couch_db,enum_docs_since,5},
>      {couch_auth_cache,refresh_entries,1},
>      {couch_auth_cache,handle_call,3},
>      {gen_server,handle_msg,5},
>      {proc_lib,init_p_do_apply,3}]}
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.9876.1>] {error_report,<0.33.0>,
>               {<0.9876.1>,crash_report,
>                [[{initial_call,{couch_auth_cache,init,['Argument__1']}},
>                  {pid,<0.9876.1>},
>                  {registered_name,couch_auth_cache},
>                  {error_info,{exit,{{badmatch,{not_found,deleted}},
>                                     [{couch_auth_cache,refresh_entry,2},
>                                      {couch_btree,stream_kv_node2,8},
>                                      {couch_btree,fold,4},
>                                      {couch_db,enum_docs_since,5},
>                                      {couch_auth_cache,refresh_entries,1},
>                                      {couch_auth_cache,handle_call,3},
>                                      {gen_server,handle_msg,5},
>                                      {proc_lib,init_p_do_apply,3}]},
>                                    [{gen_server,terminate,6},
>                                     {proc_lib,init_p_do_apply,3}]}},
>                  {ancestors,[couch_secondary_services,couch_server_sup,
>                              <0.34.0>]},
>                  {messages,[{'EXIT',<0.9877.1>,normal}]},
>                  {links,[<0.8875.1>]},
>                  {dictionary,[]},
>                  {trap_exit,true},
>                  {status,running},
>                  {heap_size,2584},
>                  {stack_size,24},
>                  {reductions,1645}],
>                 []]}}
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.9647.1>] Uncaught error in HTTP request: {exit,
>                                  {{{badmatch,{not_found,deleted}},
>                                    [{couch_auth_cache,refresh_entry,2},
>                                     {couch_btree,stream_kv_node2,8},
>                                     {couch_btree,fold,4},
>                                     {couch_db,enum_docs_since,5},
>                                     {couch_auth_cache,refresh_entries,1},
>                                     {couch_auth_cache,handle_call,3},
>                                     {gen_server,handle_msg,5},
>                                     {proc_lib,init_p_do_apply,3}]},
>                                   {gen_server,call,
>                                    [couch_auth_cache,refresh,infinity]}}}
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.8875.1>] {error_report,<0.33.0>,
>               {<0.8875.1>,supervisor_report,
>                [{supervisor,{local,couch_secondary_services}},
>                 {errorContext,child_terminated},
>                 {reason,{{badmatch,{not_found,deleted}},
>                          [{couch_auth_cache,refresh_entry,2},
>                           {couch_btree,stream_kv_node2,8},
>                           {couch_btree,fold,4},
>                           {couch_db,enum_docs_since,5},
>                           {couch_auth_cache,refresh_entries,1},
>                           {couch_auth_cache,handle_call,3},
>                           {gen_server,handle_msg,5},
>                           {proc_lib,init_p_do_apply,3}]}},
>                 {offender,[{pid,<0.9876.1>},
>                            {name,auth_cache},
>                            {mfargs,{couch_auth_cache,start_link,[]}},
>                            {restart_type,permanent},
>                            {shutdown,1000},
>                            {child_type,worker}]}]}}
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.8875.1>] {error_report,<0.33.0>,
>               {<0.8875.1>,supervisor_report,
>                [{supervisor,{local,couch_secondary_services}},
>                 {errorContext,shutdown},
>                 {reason,reached_max_restart_intensity},
>                 {offender,[{pid,<0.9876.1>},
>                            {name,auth_cache},
>                            {mfargs,{couch_auth_cache,start_link,[]}},
>                            {restart_type,permanent},
>                            {shutdown,1000},
>                            {child_type,worker}]}]}}
> [Sun, 29 Aug 2010 18:47:29 GMT] [error] [<0.80.0>] {error_report,<0.33.0>,
>     {<0.80.0>,supervisor_report,
>      [{supervisor,{local,couch_server_sup}},
>       {errorContext,child_terminated},
>       {reason,shutdown},
>       {offender,
>           [{pid,<0.8875.1>},
>            {name,couch_secondary_services},
>            {mfargs,{couch_server_sup,start_secondary_services,[]}},
>            {restart_type,permanent},
>            {shutdown,infinity},
>            {child_type,supervisor}]}]}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.