Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 40418 invoked from network); 29 Aug 2010 19:32:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Aug 2010 19:32:35 -0000 Received: (qmail 87608 invoked by uid 500); 29 Aug 2010 19:32:34 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 87554 invoked by uid 500); 29 Aug 2010 19:32:34 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 87546 invoked by uid 99); 29 Aug 2010 19:32:34 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:32:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Aug 2010 19:32:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7TJVsBq000171 for ; Sun, 29 Aug 2010 19:31:54 GMT Message-ID: <5168455.60561283110314630.JavaMail.jira@thor> Date: Sun, 29 Aug 2010 15:31:54 -0400 (EDT) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Assigned: (COUCHDB-873) problems with auth_cache while logout In-Reply-To: <1916646.60291283109114342.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-873?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Filipe Manana reassigned COUCHDB-873: ------------------------------------- Assignee: Filipe Manana > 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");=20 > db.request("DELETE", "/_users/org.couchdb.user:dima?rev=3D" + user.= _rev); =20 > db.logout(); > gives me in log: > [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.9647.1>] 'DELETE' /_config/ad= mins/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=3DZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-E= yBuF_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 au= th 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=3D19-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=3DZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-E= yBuF_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 D= DocKey: {<<"_design/_auth">>, > <<"1-04d86233b3254bb5a53dcf7103f97fc2">>} > [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6= 286> Input :: ["reset",{"reduce_limit":true}] > [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6= 286> Output :: true > [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6= 286> 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":["c= aa4dadfe4b7f25c800f8b585eab712a","6fcc5b0a5a7dd47b4e0143f9f897d8b0","465151= caeeaacf3a7899fdd577c0a11f","8b1a5160b8baf8683267c4ab1f596db9","4798cfa5fba= e17c305884e9fa9b00ce7","395a5d6deb32afa2ede0a999c9664d57","0719a5b594e9e9dd= cd780aff3fae32f0","ee04d4bb496a14072370039dc3fa2755","603821a30dce8a81ac5e1= 6cb5510eab6","84aa2dc6f08bbbae60fafe50af61b038","bb7cea2f70c43fa476ca5e14a0= 519bac","61219da02b694b82e5293cc1c4ce414f","965c8ed30a3461c1cf0abb73e65f453= 5","2e5d4b836d504982b4f77a5026e9e0a1","58e4b794a304f9adcbeedd911e24f67a","6= 60e73a19dc63e126616196b7ede9782","6e91b60a4b3b25c86c03db036249f08d","8cb300= 0903b76b1352f559a6c063f7b0","a1321bf014ef7dd24a9d990aa2ceb4d4"]}},{"db":"_u= sers","name":null,"roles":["_admin"]},{}]] > [Sun, 29 Aug 2010 18:47:29 GMT] [debug] [<0.8987.1>] OS Process #Port<0.6= 286> 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=3D19-caa4dadfe4b7f25c800f8b585eab712a 2= 00 > [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=3DZGltYTo0QzdBQUI0MTopgYh48jHrr9fyjO9m-E= yBuF_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 co= uch_auth_cache terminating=20 > ** Last message in was refresh > ** When Server state =3D=3D {state,50,1,<0.9877.1>} > ** Reason for termination =3D=3D=20 > ** {{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 HT= TP 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}]}]}} --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.