{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/12288","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/12288/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/12288/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/12288/events","html_url":"https://github.com/odoo/odoo/issues/12288","id":158571232,"number":12288,"title":"\"RuntimeError: maximum recursion depth exceeded\" after running for sometime","user":{"login":"aetna-softwares","id":8860618,"avatar_url":"https://avatars.githubusercontent.com/u/8860618?v=3","gravatar_id":"","url":"https://api.github.com/users/aetna-softwares","html_url":"https://github.com/aetna-softwares","followers_url":"https://api.github.com/users/aetna-softwares/followers","following_url":"https://api.github.com/users/aetna-softwares/following{/other_user}","gists_url":"https://api.github.com/users/aetna-softwares/gists{/gist_id}","starred_url":"https://api.github.com/users/aetna-softwares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aetna-softwares/subscriptions","organizations_url":"https://api.github.com/users/aetna-softwares/orgs","repos_url":"https://api.github.com/users/aetna-softwares/repos","events_url":"https://api.github.com/users/aetna-softwares/events{/privacy}","received_events_url":"https://api.github.com/users/aetna-softwares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-05T19:56:17Z","updated_at":"2016-06-06T08:56:25Z","closed_at":null,"body":"Impacted versions:\r\nV8.0 (maybe 9.0)\r\n\r\nSteps to reproduce:\r\nI never find a way to reproduce the problem but I seen it many time on several installation\r\n\r\nCurrent behavior:\r\nAfter some time of running without problem (can be a day or a month...), Odoo suddently fail on all HTTP requests with the error \"RuntimeError: maximum recursion depth exceeded\"\r\n\r\nAfter restarting Odoo, everything come back to normal. So it is quite difficult to help debugging this :(\r\n\r\nHere is the stacktrace. It is the same for all HTTP call (no matter which URL is called) : \r\n```\r\n2016-06-03 15:37:33,493 11 INFO ads werkzeug: 172.17.0.4 - - [03/Jun/2016 15:37:33] \"POST /web/dataset/search_read HTTP/1.1\" 500 -\r\n2016-06-03 15:37:33,901 11 ERROR ads werkzeug: Error on request:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/serving.py\", line 177, in run_wsgi\r\n    execute(self.server.app)\r\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/serving.py\", line 165, in execute\r\n    application_iter = app(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/server.py\", line 290, in app\r\n    return self.app(e, s)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py\", line 216, in application\r\n    return application_unproxied(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py\", line 202, in application_unproxied\r\n    result = handler(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1290, in __call__\r\n    return self.dispatch(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\r\n    return self.app(environ, start_wrapped)\r\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py\", line 588, in __call__\r\n    return self.app(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\r\n    return self.app(environ, start_wrapped)\r\n\r\n[repeated many many times]\r\n\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\r\n    return self.app(environ, start_wrapped)\r\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py\", line 588, in __call__\r\n    return self.app(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1443, in dispatch\r\n    return response(environ, start_response)\r\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py\", line 1207, in __call__\r\n    start_response(status, headers)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\r\n    start_response(status, new_headers)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\r\n    start_response(status, new_headers)\r\n\r\n[repeated many many times]\r\n \r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\r\n    start_response(status, new_headers)\r\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1250, in start_wrapped\r\n    parsed = urlparse.urlparse(referer)\r\n  File \"/usr/lib/python2.7/urlparse.py\", line 149, in urlparse\r\n    return ParseResult(scheme, netloc, url, params, query, fragment)\r\nRuntimeError: maximum recursion depth exceeded\r\n```\r\nI noticed that there is 2 \"big loop\" at http.py line 1263 on \"start_response(status, new_headers)\" and between http.py line 1264 \"return self.app(environ, start_wrapped)\" and wsgi.py line 588 \"return self.app(environ, start_response)\" but it is not likelly an infinite loop. It looks like there is a collection somewhere in memory that growing and is not cleaning (like user session cache ?).\r\n\r\nI am not familiar with this HTTP layer in Odoo, if you give me some clue, I can help debugging that\r\n\r\nExpected behavior:\r\n\r\nOdoo should continue serving HTTP request\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/223903235","html_url":"https://github.com/odoo/odoo/issues/12288#issuecomment-223903235","issue_url":"https://api.github.com/repos/odoo/odoo/issues/12288","id":223903235,"user":{"login":"tesserB","id":14143175,"avatar_url":"https://avatars.githubusercontent.com/u/14143175?v=3","gravatar_id":"","url":"https://api.github.com/users/tesserB","html_url":"https://github.com/tesserB","followers_url":"https://api.github.com/users/tesserB/followers","following_url":"https://api.github.com/users/tesserB/following{/other_user}","gists_url":"https://api.github.com/users/tesserB/gists{/gist_id}","starred_url":"https://api.github.com/users/tesserB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tesserB/subscriptions","organizations_url":"https://api.github.com/users/tesserB/orgs","repos_url":"https://api.github.com/users/tesserB/repos","events_url":"https://api.github.com/users/tesserB/events{/privacy}","received_events_url":"https://api.github.com/users/tesserB/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T08:56:25Z","updated_at":"2016-06-06T08:56:25Z","body":"@odony I assume this will hit your email and so:\r\n\r\n> After some time of running without problem (can be a day or a month...), Odoo suddently fail on all HTTP requests with the error \"RuntimeError: maximum recursion depth exceeded\r\n> \r\n> After restarting Odoo, everything come back to normal. So it is quite difficult to help debugging this\r\n> \r\n> RuntimeError: maximum recursion depth exceeded\r\n> \r\n> Impacted versions:\r\n> V8.0 (maybe 9.0)\r\n> \r\n\r\nR/S\r\nCody K.\r\n\r\nP.S.\r\nTrying to use the assignation table on the [github wiki](https://github.com/odoo/odoo/wiki/BugManagement), here, and so I apologize if I pinged the wrong person. I thought maybe gde-odoo or aab-odoo, but they're listed as maintaining the 9.0 web client.\r\n\r\n"}}
{"actor":{"display_login":"tesserB"}}