Closed raularam closed 4 years ago
@raularam for which addon ?
@hilarak Sorry, missed that info. It's in the Odoo Debranding 11
Thanks
@raularam 500 Internal server error possibly occurs with cache problem, try it in incognito mode. If still getting error, then please inform me
insufficient information and not responding. Hope the issue is solved.
Hi Hilarak
Hope it's not too late to reopen this thread.
I installed "odoo-debrand-11" which worked like a charm to begin with (thank for that!), set everything up then logged out of the database. When I next try to sign in, I got 500 Internal Server Error as well. Opening it in Incognito didn't work.
I previously tried Cybrosys' debranding module which failed right off the bat. Do you think this could be a redirect problem when (I'm assuming) redirecting logo files?
Appreciate you creating this module, and hope you might have time to provide some advice on how to solve this issue!
Thanks
Can I get the server log?
On Sat, 8 Jun 2019, 7:19 am csidon, notifications@github.com wrote:
Hi Hilarak
Hope it's not too late to reopen this thread.
I installed "odoo-debrand-11" which worked like a charm to begin with (thank for that!), set everything up then logged out of the database. When I next try to sign in, I got 500 Internal Server Error as well. Opening it in Incognito didn't work.
I previously tried Cybrosys' debranding module which failed right off the bat. Do you think this could be a redirect problem when (I'm assuming) redirecting logo files?
Appreciate you creating this module, and hope you might have time to provide some advice on how to solve this issue!
Thanks
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/hilarak/odoo_community_addons/issues/5?email_source=notifications&email_token=AF6XGJREWDUZOEQJGVGFSMTPZMQLVA5CNFSM4E7UNSM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHMGTI#issuecomment-500089677, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6XGJQ5VWRZD5B6LA2VOMTPZMQLVANCNFSM4E7UNSMQ .
Please see below:
Jun 08 04:19:17 odoo11[4673]: 2019-06-08 04:19:17,418 4677 INFO Testing_DB w
Jun 08 04:19:17 odoo11[4673]: 2019-06-08 04:19:17,426 4677 ERROR Testing_DB
Jun 08 04:19:17 odoo11[4673]: Traceback (most recent call last):
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11-venv/lib/python3.5/site-packages/werk
Jun 08 04:19:17 odoo11[4673]: execute(self.server.app)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11-venv/lib/python3.5/site-packages/werk
Jun 08 04:19:17 odoo11[4673]: application_iter = app(environ, start_response)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/service/server.py", line 319, in
Jun 08 04:19:17 odoo11[4673]: return self.app(e, s)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/service/wsgi_server.py", line 16
Jun 08 04:19:17 odoo11[4673]: return application_unproxied(environ, start_response)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/service/wsgi_server.py", line 15
Jun 08 04:19:17 odoo11[4673]: result = handler(environ, start_response)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 1319, in call
Jun 08 04:19:17 odoo11[4673]: return self.dispatch(environ, start_response)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 1293, in call
Jun 08 04:19:17 odoo11[4673]: return self.app(environ, start_wrapped)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11-venv/lib/python3.5/site-packages/werk
Jun 08 04:19:17 odoo11[4673]: return self.app(environ, start_response)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 1491, in dispatch
Jun 08 04:19:17 odoo11[4673]: result = ir_http._dispatch()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/auth_signup/models/ir_http.py"
Jun 08 04:19:17 odoo11[4673]: return super(Http, cls)._dispatch()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/web_editor/models/ir_http.py",
Jun 08 04:19:17 odoo11[4673]: return super(IrHttp, cls)._dispatch()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/http_routing/models/ir_http.py
Jun 08 04:19:17 odoo11[4673]: result = super(IrHttp, cls)._dispatch()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_http.py", line
Jun 08 04:19:17 odoo11[4673]: return cls._handle_exception(e)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/website/models/ir_http.py", li
Jun 08 04:19:17 odoo11[4673]: return super(Http, cls)._handle_exception(exception)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_http.py", line
Jun 08 04:19:17 odoo11[4673]: return request._handle_exception(exception)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 771, in _handle_e
Jun 08 04:19:17 odoo11[4673]: return super(HttpRequest, self)._handle_exception(exception)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_e
Jun 08 04:19:17 odoo11[4673]: raise pycompat.reraise(type(exception), exception, sys.exc_i
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in
Jun 08 04:19:17 odoo11[4673]: raise value
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_http.py", line
Jun 08 04:19:17 odoo11[4673]: result = request.dispatch()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 830, in dispatch
Jun 08 04:19:17 odoo11[4673]: r = self._call_function(self.params)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_fun
Jun 08 04:19:17 odoo11[4673]: return checked_call(self.db, *args, *kwargs)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in w
Jun 08 04:19:17 odoo11[4673]: return f(dbname, args, kwargs)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 338, in checked_c
Jun 08 04:19:17 odoo11[4673]: result.flatten()
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 1270, in flatten
Jun 08 04:19:17 odoo11[4673]: self.response.append(self.render())
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/http.py", line 1263, in render
Jun 08 04:19:17 odoo11[4673]: return env["ir.ui.view"].render_template(self.template, self
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", l
Jun 08 04:19:17 odoo11[4673]: return self.browse(self.get_view_id(template)).render(values
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/website/models/ir_ui_view.py",
Jun 08 04:19:17 odoo11[4673]: return super(View, self).render(values, engine=engine)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/addons/web_editor/models/ir_ui_view.p
Jun 08 04:19:17 odoo11[4673]: return super(IrUiView, self).render(values=values, engine=en
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", l
Jun 08 04:19:17 odoo11[4673]: return self.env[engine].render(self.id, qcontext)
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/ir_qweb.p
Jun 08 04:19:17 odoo11[4673]: return super(IrQWeb, self).render(id_or_xml_id, values=value
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: self.compile(template, options)(self, body.append, values or
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: raise e
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: return compiled(self, append, new, options, log)
Jun 08 04:19:17 odoo11[4673]: File "", line 1, in template_162_189
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: raise e
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: return compiled(self, append, new, options, log)
Jun 08 04:19:17 odoo11[4673]: File "", line 1, in template_web_login_layout_194
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: raise QWebException("Error to render compiling AST", e, path
Jun 08 04:19:17 odoo11[4673]: odoo.addons.base.ir.ir_qweb.qweb.QWebException: 'NoneType' o
Jun 08 04:19:17 odoo11[4673]: Traceback (most recent call last):
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py",
Jun 08 04:19:17 odoo11[4673]: return compiled(self, append, new, options, log)
Jun 08 04:19:17 odoo11[4673]: File "", line 1, in template_website_layout_226
Jun 08 04:19:17 odoo11[4673]: File "", line 2, in body_call_content_225
Jun 08 04:19:17 odoo11[4673]: AttributeError: 'NoneType' object has no attribute 'id'
Jun 08 04:19:17 odoo11[4673]: Error to render compiling AST
Jun 08 04:19:17 odoo11[4673]: AttributeError: 'NoneType' object has no attribute 'id'
Jun 08 04:19:17 odoo11[4673]: Template: website.layout
Jun 08 04:19:17 odoo11[4673]: Path: /templates/t/t/t[4]
Jun 08 04:19:17 odoo11[4673]: Node: <t t-set="x_icon" t-value="'/web/image/website/%s/favi
[odoo@ip-172-26-14-54 etc]$ sudo journalctl -u odoo11 | less
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
Jun 08 04:19:17 odoo11[4673]: return compiled(self, append, new, options, log)
Jun 08 04:19:17 odoo11[4673]: File "", line 1, in template_web_login_layout_194
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py", line 352, in _compiled_fn
Jun 08 04:19:17 odoo11[4673]: raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
Jun 08 04:19:17 odoo11[4673]: odoo.addons.base.ir.ir_qweb.qweb.QWebException: 'NoneType' object has no attribute 'id'
Jun 08 04:19:17 odoo11[4673]: Traceback (most recent call last):
Jun 08 04:19:17 odoo11[4673]: File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_qweb/qweb.py", line 345, in _compiled_fn
Jun 08 04:19:17 odoo11[4673]: return compiled(self, append, new, options, log)
Jun 08 04:19:17 odoo11[4673]: File "", line 1, in template_website_layout_226
Jun 08 04:19:17 odoo11[4673]: File "", line 2, in body_call_content_225
Jun 08 04:19:17 odoo11[4673]: AttributeError: 'NoneType' object has no attribute 'id'
Jun 08 04:19:17 odoo11[4673]: Error to render compiling AST
Jun 08 04:19:17 odoo11[4673]: AttributeError: 'NoneType' object has no attribute 'id'
Jun 08 04:19:17 odoo11[4673]: Template: website.layout
Jun 08 04:19:17 odoo11[4673]: Path: /templates/t/t/t[4]
Jun 08 04:19:17 odoo11[4673]: Node:
Hi Hilarak
Was wondering if you've had time to take a look at this. I've tried restoring the DB again after uninstalling your module but am still getting the same 500 Internal Error, now with the following logs:
Jun 11 09:15:23 : 2019-06-11 09:15:23,075 5168 INFO Restored_DB werkzeug: 210.246.52.70 - - [11/Jun/2019 09:15:23] "GET /favicon.ico HTTP/1.1" 404 -
Jun 11 09:15:22 : 2019-06-11 09:15:22,989 5168 INFO Restored_DB odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [506]
Jun 11 09:15:22 : 2019-06-11 09:15:22,805 5168 INFO Restored_DB odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [504, 503]
Jun 11 09:15:21 : Node:
Any idea what's causing this?
Sure, I will check and let you know. Make sure you are using latest version of debranding module. Also please try to upgrade base using these command. ./odoo-bin -d dbname -r psqlrole -w password -u base
On Tue, 11 Jun 2019, 1:25 pm csidon, notifications@github.com wrote:
Hi Hilarak
Was wondering if you've had time to take a look at this. I've tried restoring the DB again after uninstalling your module but am still getting the same 500 Internal Error, now with the following logs:
Jun 11 09:15:23 : 2019-06-11 09:15:23,075 5168 INFO Restored_DB werkzeug: 210.246.52.70 - - [11/Jun/2019 09:15:23] "GET /favicon.ico HTTP/1.1" 404 - Jun 11 09:15:22 : 2019-06-11 09:15:22,989 5168 INFO Restored_DB odoo.models.unlink: User #1 https://github.com/hilarak/odoo_community_addons/issues/1 deleted ir.attachment records with IDs: [506] Jun 11 09:15:22 : 2019-06-11 09:15:22,805 5168 INFO Restored_DB odoo.models.unlink: User #1 https://github.com/hilarak/odoo_community_addons/issues/1 deleted ir.attachment records with IDs: [504, 503] Jun 11 09:15:21 : Node: Jun 11 09:15:21 : Path: /templates/t/t/t[4] Jun 11 09:15:21 : Template: website.layout Jun 11 09:15:21 : AttributeError: 'NoneType' object has no attribute 'id' Jun 11 09:15:21 : Error to render compiling AST Jun 11 09:15:21 : AttributeError: 'NoneType' object has no attribute 'id'
Any idea what's causing this?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/hilarak/odoo_community_addons/issues/5?email_source=notifications&email_token=AF6XGJT6B7GTZEUHH27JYC3PZ5VQVA5CNFSM4E7UNSM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMQMYI#issuecomment-500762209, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6XGJTDQOZE6DESDCMG7ULPZ5VQVANCNFSM4E7UNSMQ .
Hi hilarak, trying your code to upgrade base gives me a /usr/bin/env: python3: No such file or directory
error. Am I doing something wrong?
Do that code from odoo directory.
like cd /opt/odoo/
On Wed, Jun 12, 2019 at 8:49 AM csidon notifications@github.com wrote:
Hi hilarak, trying your code to upgrade base gives me a /usr/bin/env: python3: No such file or directory error. Am I doing something wrong?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/hilarak/odoo_community_addons/issues/5?email_source=notifications&email_token=AF6XGJUYWR4H4OA5D6K6VO3P2B55HA5CNFSM4E7UNSM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXPHSDY#issuecomment-501119247, or mute the thread https://github.com/notifications/unsubscribe-auth/AF6XGJRYLYRVCUGTG6GTV7LP2B55HANCNFSM4E7UNSMQ .
-- Hilar AK Python / Odoo Developer
m: +917736617619 e: hilarak@gmail.com Follow me: [image: twitter] https://twitter.com/HiLaR_ak [image: youtube] https://www.youtube.com/channel/UCiqy3V3mlQSIAfXIDtUKMag?view_as=subscriber [image: github] https://github.com/hilarak [image: stack-overflow] https://stackoverflow.com/users/7561347/burmese-pythis
Do one thing, fetch the latest debranding module and paste it in your addons path. Then got to your odoo directory in terminal and 1 ./odoo-bin -d dbname -r psqlrole -w password -u base
Hello Hilar, After I installed the module over a fresh Odoo 11 install running on Ubuntu, I get this error and in my browser I get a 500 server error:
2018-05-14 03:15:02,577 1528 ERROR test-database odoo.addons.website.models.ir_http: 500 Internal Server Error:
Traceback (most recent call last): File "/opt/odoo/odoo/addons/website/models/ir_http.py", line 162, in _handle_exception response = super(Http, cls)._handle_exception(exception) File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 182, in _handle_exception return request._handle_exception(exception) File "/opt/odoo/odoo/http.py", line 763, in _handle_exception return super(HttpRequest, self)._handle_exception(exception) File "/opt/odoo/odoo/http.py", line 309, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo/odoo/http.py", line 1388, in get_response result.flatten() File "/opt/odoo/odoo/http.py", line 1251, in flatten self.response.append(self.render()) File "/opt/odoo/odoo/http.py", line 1244, in render return env["ir.ui.view"].render_template(self.template, self.qcontext) File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1052, in render_template return self.browse(self.get_view_id(template)).render(values, engine) File "/opt/odoo/odoo/addons/website/models/ir_ui_view.py", line 106, in render return super(View, self).render(values, engine=engine) File "/opt/odoo/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render return super(IrUiView, self).render(values=values, engine=engine) File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1061, in render return self.env[engine].render(self.id, qcontext) File "/opt/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 57, in render return super(IrQWeb, self).render(id_or_xml_id, values=values, **context) File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 271, in render self.compile(template, options)(self, body.append, values or {}) File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 343, in _compiled_fn raise e QWebException: 'NoneType' object is not callable Traceback (most recent call last): File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 341, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_web_layout_6406 TypeError: 'NoneType' object is not callable
Error to render compiling AST TypeError: 'NoneType' object is not callable Template: web.layout Path: /templates/t/html/head/t[2]/link Node:
2018-05-14 03:15:03,135 1528 INFO crash-dummy werkzeug: 127.0.0.1 - - [14/May/2018 03:15:03] "GET /favicon.ico HTTP/1.1" 500 -