{"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://avatars1.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,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-06-05T19:56:17Z","updated_at":"2017-03-19T09:32:06Z","closed_at":null,"body":"Impacted versions:\nV8.0 (maybe 9.0)\n\nSteps to reproduce:\nI never find a way to reproduce the problem but I seen it many time on several installation\n\nCurrent behavior:\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\"\n\nAfter restarting Odoo, everything come back to normal. So it is quite difficult to help debugging this :(\n\nHere is the stacktrace. It is the same for all HTTP call (no matter which URL is called) : \n\n```\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 -\n2016-06-03 15:37:33,901 11 ERROR ads werkzeug: Error on request:\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/serving.py\", line 177, in run_wsgi\n    execute(self.server.app)\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/serving.py\", line 165, in execute\n    application_iter = app(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/server.py\", line 290, in app\n    return self.app(e, s)\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py\", line 216, in application\n    return application_unproxied(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py\", line 202, in application_unproxied\n    result = handler(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1290, in __call__\n    return self.dispatch(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\n    return self.app(environ, start_wrapped)\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py\", line 588, in __call__\n    return self.app(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\n    return self.app(environ, start_wrapped)\n\n[repeated many many times]\n\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1264, in __call__\n    return self.app(environ, start_wrapped)\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py\", line 588, in __call__\n    return self.app(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1443, in dispatch\n    return response(environ, start_response)\n  File \"/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py\", line 1207, in __call__\n    start_response(status, headers)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\n    start_response(status, new_headers)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\n    start_response(status, new_headers)\n\n[repeated many many times]\n\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1263, in start_wrapped\n    start_response(status, new_headers)\n  File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 1250, in start_wrapped\n    parsed = urlparse.urlparse(referer)\n  File \"/usr/lib/python2.7/urlparse.py\", line 149, in urlparse\n    return ParseResult(scheme, netloc, url, params, query, fragment)\nRuntimeError: maximum recursion depth exceeded\n```\n\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 ?).\n\nI am not familiar with this HTTP layer in Odoo, if you give me some clue, I can help debugging that\n\nExpected behavior:\n\nOdoo should continue serving HTTP request\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/287604572","html_url":"https://github.com/odoo/odoo/issues/12288#issuecomment-287604572","issue_url":"https://api.github.com/repos/odoo/odoo/issues/12288","id":287604572,"user":{"login":"intellisec","id":1464673,"avatar_url":"https://avatars0.githubusercontent.com/u/1464673?v=3","gravatar_id":"","url":"https://api.github.com/users/intellisec","html_url":"https://github.com/intellisec","followers_url":"https://api.github.com/users/intellisec/followers","following_url":"https://api.github.com/users/intellisec/following{/other_user}","gists_url":"https://api.github.com/users/intellisec/gists{/gist_id}","starred_url":"https://api.github.com/users/intellisec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellisec/subscriptions","organizations_url":"https://api.github.com/users/intellisec/orgs","repos_url":"https://api.github.com/users/intellisec/repos","events_url":"https://api.github.com/users/intellisec/events{/privacy}","received_events_url":"https://api.github.com/users/intellisec/received_events","type":"User","site_admin":false},"created_at":"2017-03-19T09:32:06Z","updated_at":"2017-03-19T09:32:06Z","body":"Is there a solution for this problem? I've encountered it today."}}
{"actor":{"display_login":"intellisec"}}