couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Frazee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1651) Server responds 400 "Exceeded rewrite recursion limit" indefinitely
Date Thu, 14 Feb 2013 23:59:14 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578824#comment-13578824
] 

Paul Frazee commented on COUCHDB-1651:
--------------------------------------

Right, logs from log-level debug:

{code}
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.125.0>] 'GET'
/grimwire/_design/grimwire/grim/env/scripts.js {1,1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Cache-Control',"max-age=0"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"ADmMihqI8QzLK0HgYmgzNw==\""},
          {'Referer',"http://grimwire.com/"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-requested-path",
           "/grimwire/_design/grimwire/_rewrite/grim/env/scripts.js"},
          {"x-couchdb-vhost-path","/grim/env/scripts.js"}]
[Thu, 14 Feb 2013 23:45:27 GMT] [info] [<0.127.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/grim/intents.js 304
[Thu, 14 Feb 2013 23:45:27 GMT] [info] [<0.125.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/grim/env/scripts.js 304
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.126.0>] Vhost Target:
'"/grimwire/_design/grimwire/_rewrite/grim/env/localstorage.js"'

[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.126.0>] 'GET'
/grimwire/_design/grimwire/_rewrite/grim/env/localstorage.js {1,

            1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Cache-Control',"max-age=0"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"e2mEaOyN1HP7H5S5NBqJAA==\""},
          {'Referer',"http://grimwire.com/"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-vhost-path","/grim/env/localstorage.js"}]
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.126.0>] OAuth Params: []
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Vhost Target:
'"/grimwire/_design/grimwire/_rewrite/index.js"'

[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] 'GET'
/grimwire/_design/grimwire/_rewrite/index.js {1,1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Cache-Control',"max-age=0"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"R4O2Zw+PuEQXzwAfH/9BDw==\""},
          {'Referer',"http://grimwire.com/"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-vhost-path","/index.js"}]
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] OAuth Params: []
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.126.0>] rewrite to
"/grimwire/_design/grimwire/grim/env/localstorage.js"

[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.126.0>] 'GET'
/grimwire/_design/grimwire/grim/env/localstorage.js {1,

   1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Cache-Control',"max-age=0"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"e2mEaOyN1HP7H5S5NBqJAA==\""},
          {'Referer',"http://grimwire.com/"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-requested-path",
           "/grimwire/_design/grimwire/_rewrite/grim/env/localstorage.js"},
          {"x-couchdb-vhost-path","/grim/env/localstorage.js"}]
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Minor error in HTTP
request: {bad_request,
                                                  <<"Exceeded rewrite
recursion limit">>}
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Stacktrace:
[{couch_httpd_rewrite,handle_rewrite_req,3,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_rewrite.erl"},
                                   {line,130}]},
                                 {couch_httpd_db,do_db_req,2,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_db.erl"},
                                   {line,230}]},
                                 {couch_httpd,handle_request_int,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd.erl"},
                                   {line,317}]},
                                 {mochiweb_http,headers,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/mochiweb/mochiweb_http.erl"},
                                   {line,136}]},
                                 {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,227}]}]
[Thu, 14 Feb 2013 23:45:27 GMT] [info] [<0.126.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/grim/env/localstorage.js 304
[Thu, 14 Feb 2013 23:45:27 GMT] [info] [<0.129.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/_rewrite/index.js 400
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] httpd 400 error
response:
 {"error":"bad_request","reason":"Exceeded rewrite recursion limit"}

[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Vhost Target:
'"/grimwire/_design/assets/_rewrite/icons/16x16/global_telecom.png"'

[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] 'GET'
/grimwire/_design/assets/_rewrite/icons/16x16/global_telecom.png {1,

                1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"90r3rJkdHUdfszY3CRrZKA==\""},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-vhost-path","/icons/16x16/global_telecom.png"}]
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] OAuth Params: []
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Minor error in HTTP
request: {bad_request,
                                                  <<"Exceeded rewrite
recursion limit">>}
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] Stacktrace:
[{couch_httpd_rewrite,handle_rewrite_req,3,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_rewrite.erl"},
                                   {line,130}]},
                                 {couch_httpd_db,do_db_req,2,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_db.erl"},
                                   {line,230}]},
                                 {couch_httpd,handle_request_int,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd.erl"},
                                   {line,317}]},
                                 {mochiweb_http,headers,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/mochiweb/mochiweb_http.erl"},
                                   {line,136}]},
                                 {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,227}]}]
[Thu, 14 Feb 2013 23:45:27 GMT] [info] [<0.129.0>] 108.95.144.117 - - GET
/grimwire/_design/assets/_rewrite/icons/16x16/global_telecom.png 400
[Thu, 14 Feb 2013 23:45:27 GMT] [debug] [<0.129.0>] httpd 400 error
response:
 {"error":"bad_request","reason":"Exceeded rewrite recursion limit"}

[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Vhost Target:
'"/grimwire/_design/grimwire/_rewrite/"'

[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] 'GET'
/grimwire/_design/grimwire/_rewrite/ {1,1} from "108.95.144.117"
Headers:
[{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Cache-Control',"max-age=0"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'If-None-Match',"\"ZiorsOEzh54IeN8KT+R0Kw==\""},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-vhost-path","/"}]
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] OAuth Params: []
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Minor error in HTTP
request: {bad_request,
                                                  <<"Exceeded rewrite
recursion limit">>}
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Stacktrace:
[{couch_httpd_rewrite,handle_rewrite_req,3,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_rewrite.erl"},
                                   {line,130}]},
                                 {couch_httpd_db,do_db_req,2,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_db.erl"},
                                   {line,230}]},
                                 {couch_httpd,handle_request_int,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd.erl"},
                                   {line,317}]},
                                 {mochiweb_http,headers,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/mochiweb/mochiweb_http.erl"},
                                   {line,136}]},
                                 {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,227}]}]
[Thu, 14 Feb 2013 23:45:28 GMT] [info] [<0.129.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/_rewrite/ 400
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] httpd 400 error
response:
 {"error":"bad_request","reason":"Exceeded rewrite recursion limit"}

[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Vhost Target:
'"/grimwire/_design/grimwire/_rewrite/favicon.ico"'

[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] 'GET'
/grimwire/_design/grimwire/_rewrite/favicon.ico {1,

 1} from "108.95.144.117"
Headers: [{'Accept',"*/*"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
          {'Accept-Encoding',"gzip,deflate,sdch"},
          {'Accept-Language',"en-US,en;q=0.8"},
          {'Connection',"keep-alive"},
          {'Host',"grimwire.com"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0)
AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1408.0 Safari/537.31"},
          {"x-couchdb-vhost-path","/favicon.ico"}]
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] OAuth Params: []
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Minor error in HTTP
request: {bad_request,
                                                  <<"Exceeded rewrite
recursion limit">>}
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] Stacktrace:
[{couch_httpd_rewrite,handle_rewrite_req,3,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_rewrite.erl"},
                                   {line,130}]},
                                 {couch_httpd_db,do_db_req,2,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd_db.erl"},
                                   {line,230}]},
                                 {couch_httpd,handle_request_int,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/couchdb/couch_httpd.erl"},
                                   {line,317}]},
                                 {mochiweb_http,headers,5,
                                  [{file,

"/home/pfraze/tools/build-couchdb/dependencies/couchdb/src/mochiweb/mochiweb_http.erl"},
                                   {line,136}]},
                                 {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,227}]}]
[Thu, 14 Feb 2013 23:45:28 GMT] [info] [<0.129.0>] 108.95.144.117 - - GET
/grimwire/_design/grimwire/_rewrite/favicon.ico 400
[Thu, 14 Feb 2013 23:45:28 GMT] [debug] [<0.129.0>] httpd 400 error
response:
 {"error":"bad_request","reason":"Exceeded rewrite recursion limit"}
{code}




                
> Server responds 400 "Exceeded rewrite recursion limit" indefinitely
> -------------------------------------------------------------------
>
>                 Key: COUCHDB-1651
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1651
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Paul Frazee
>
> Running 1.2.1 on Windows 7 as a service.
> hosts file includes "127.0.0.1 grimwire.local"
> CouchDB conf includes vhosts entries:
> grimwire.local:5984	         /grimwire/_design/grimwire/_rewrite
> grimwire.local:5984/local	 /grimwire/_design/local/_rewrite
> 'grimwire' design doc rewrites:
> [
> 	{
> 		"from": "",
> 		"to": "index.html",
> 		"method": "GET"
> 	},
> 	{
> 		"from": "*",
> 		"to": "*"
> 	}
> ]
> 'local' design doc rewrites:
> [
> 	{
> 		"from":"",
> 		"to":"index.html",
> 		"method":"GET"
> 	},
> 	{
> 		"from":"/posts",
> 		"to":"_list/wallpost/wallpost-by-created_at",
> 		"method":"GET"
> 	},
> 	{
> 		"from":"/posts",
> 		"to":"_update/wallpost",
> 		"method":"POST"
> 	},
> 	{
> 		"from":"/posts/:id",
> 		"to":"_show/wallpost/:id",
> 		"method":"GET"
> 	},
> 	{
> 		"from":"/posts/:id",
> 		"to":"_update/wallpost/:id",
> 		"method":"PUT"
> 	},
> 	{
> 		"from":"*",
> 		"to":"*"
> 	}
> ]
> Problem:
> The requests work as expected for some unknown period, then begin to respond with a 400
status and the "Exceeded rewrite recursion limit" error message. Changing the rewrites rules
for both applications, including setting them to empty arrays, had no effect.
> The problem was solved by restarting the CouchDB service.

--
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

Mime
View raw message