Skip to Content
Menu
This question has been flagged
579 Views

Hello,

I have a self hosted odoo 13.0 Database on my own server. After an update today over the apt packages-tool from http://nightly.odoo.com/13.0/nightly/deb/ I get an error when I try to connect to odoo.

Can someone help me to fix the problem ? The serverlog says this:


2021-10-30 12:00:57,966 32134 INFO ? odoo: Odoo version 13.0-20211030
2021-10-30 12:00:57,966 32134 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2021-10-30 12:00:57,966 32134 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/.local/share/Odoo/addons/13.0', '/opt/odoo/addons']
2021-10-30 12:00:57,967 32134 INFO ? odoo: database: emil@default:5434
2021-10-30 12:00:58,068 32134 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
2021-10-30 12:00:58,131 32134 WARNING ? odoo.addons.base.models.res_currency: The num2words python library is not installed, amount-to-text features won't be fully available.
2021-10-30 12:00:58,142 32134 INFO ? odoo.service.server: HTTP service (werkzeug) running on server:8069
2021-10-30 12:01:06,946 32134 INFO ? odoo.http: HTTP Configuring static files
2021-10-30 12:01:06,955 32134 INFO alma odoo.modules.loading: loading 1 modules...
2021-10-30 12:01:06,965 32134 INFO alma odoo.modules.loading: 1 modules loaded in 0.01s, 0 queries
2021-10-30 12:01:07,006 32134 INFO alma odoo.modules.loading: loading 129 modules...
2021-10-30 12:01:07,668 32134 INFO alma odoo.modules.loading: 129 modules loaded in 0.66s, 0 queries
2021-10-30 12:01:08,083 32134 WARNING alma odoo.fields: Field crossovered.budget.user_id: parameter 'oldname' is not longer supported; use an upgrade script instead.
2021-10-30 12:01:08,316 32134 INFO alma odoo.modules.loading: Modules loaded.
2021-10-30 12:01:08,323 32134 INFO alma odoo.addons.base.models.ir_http: Generating routing map for key None
2021-10-30 12:01:08,803 32134 INFO alma odoo.models.unlink: User #1 deleted ir.attachment records with IDs: [5744]
2021-10-30 12:01:08,944 32134 INFO alma werkzeug: 192.168.2.65 - - [30/Oct/2021 12:01:08] "GET /web/login HTTP/1.1" 500 - 329 0.113 1.883
2021-10-30 12:01:08,950 32134 ERROR alma werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 441, in app
return self.app(e, s)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 142, in application
return application_unproxied(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 117, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1287, in __call__
return self.dispatch(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1257, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.9/dist-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1457, in dispatch
result = ir_http._dispatch()
File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 519, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 238, in _dispatch
return cls._handle_exception(e)
File "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 34, in _handle_exception
response = super(IrHttp, cls)._handle_exception(exc)
File "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 610, in _handle_exception
return super(IrHttp, cls)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 206, in _handle_exception
return request._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 750, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 234, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 809, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in checked_call
result.flatten()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1236, in flatten
self.response.append(self.render())
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1229, in render
return env["ir.ui.view"].render_template(self.template, self.qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1191, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render
return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1199, in render
return self.env[engine].render(self.id, qcontext)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 58, in render
result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 260, in render
self.compile(template, options)(self, body.append, values or {})
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 335, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_web_login_6

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 335, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_web_login_layout_12

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 335, in _compiled_fn
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_web_frontend_layout_32

File "", line 2, in compile

File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 113, in compile
return super(IrQWeb, self).compile(id_or_xml_id, options=options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 302, in compile
raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.models.qweb.QWebException: forbidden opcode(s) in "'tests' in debug or test_mode_enabled": CONTAINS_OP
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.qweb', , 'web.conditional_assets_tests', ('de_DE', None, None, None, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 291, in compile
body = self._compile_node(element, _options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 655, in _compile_node
return body + self._compile_directives(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 676, in _compile_directives
return compile_handler(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_qweb.py", line 81, in _compile_directive_tag
return super(QWeb, self)._compile_directive_tag(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 1009, in _compile_directive_tag
content = self._compile_directives(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 676, in _compile_directives
return compile_handler(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 1072, in _compile_directive_content
body.extend(self._compile_node(item, options))
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 655, in _compile_node
return body + self._compile_directives(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 676, in _compile_directives
return compile_handler(el, options)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 1110, in _compile_directive_if
test=self._compile_expr(el.attrib.pop('t-if')),
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 417, in _compile_expr
assert_valid_codeobj(
File "/usr/lib/python3/dist-packages/odoo/tools/safe_eval.py", line 189, in assert_valid_codeobj
raise ValueError("forbidden opcode(s) in %r: %s" % (expr, ', '.join(opname[x] for x in codes)))
ValueError: forbidden opcode(s) in "'tests' in debug or test_mode_enabled": CONTAINS_OP

Error when compiling AST
ValueError: forbidden opcode(s) in "'tests' in debug or test_mode_enabled": CONTAINS_OP
Template: web.conditional_assets_tests
Path: /t/t
Node: - - -
2021-10-30 12:01:20,282 32134 INFO ? odoo.service.server: Initiating shutdown
2021-10-30 12:01:20,282 32134 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
124
2
Sep 23
1514
3
Jun 22
5230
0
Jun 21
1347
1
Sep 20
1569