Skip to Content
Menu
This question has been flagged
2 Replies
4803 Views

Hello odoo friends, I have a problem deploying a test in odoo sh, at first the module was installed correctly but when I make modifications and try to deploy with the new code updates I have errors when entering the link, I've tried to revert the changes to go back to the previous commit and the error persists. Some help? The version of odoo sh is 16.

This is the error in log.


Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "", line 2, in __getitem__
File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/tools/lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.qweb', , 'web.assets_frontend', True, False, '', False, False, False, False, ('es_ES', None, None, None, None, None, 1))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "", line 2, in __getitem__
File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/tools/lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.qweb', , 'web.assets_frontend', False, False, None, ('es_ES', None, None, None, None, None, 1))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<1850>", line 1365, in template_1850
File "<1850>", line 1030, in template_1850_content
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 2425, in _load_values
return get_value()
File "<1850>", line 1020, in template_1850_t_cache_0_cache
File "<1850>", line 457, in template_1850_t_cache_0
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 2397, in _get_asset_nodes
return self._generate_asset_nodes_cache(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
File "", line 2, in _generate_asset_nodes_cache
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 2452, in _generate_asset_nodes_cache
return self._generate_asset_nodes(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 2523, in _generate_asset_nodes
files, remains = self._get_asset_content(bundle, defer_load=defer_load, lazy_load=lazy_load, media=css and media or None)
File "", line 2, in _get_asset_content
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 2456, in _get_asset_content
asset_paths = self.env['ir.asset']._get_asset_paths(bundle=bundle, css=True, js=True)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_asset.py", line 120, in _get_asset_paths
self._fill_asset_paths(bundle, addons, installed, css, js, asset_paths, [])
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_asset.py", line 210, in _fill_asset_paths
process_path(asset.directive, asset.target, asset.path)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_asset.py", line 169, in process_path
addon, paths = self._get_paths(path_def, installed, exts)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_asset.py", line 310, in _get_paths
raise Exception("Unallowed to fetch files from addon %s" % addon)
Exception: Unallowed to fetch files from addon website_payment

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 1964, in __call__
response = request._serve_db()
File "/home/odoo/src/odoo/odoo/http.py", line 1549, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/odoo/service/model.py", line 134, in retrying
result = func()
File "/home/odoo/src/odoo/odoo/http.py", line 1578, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/odoo/http.py", line 1691, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 227, in _dispatch
response = super()._dispatch(endpoint)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 142, in _dispatch
result.flatten()
File "/home/odoo/src/odoo/odoo/http.py", line 1068, in flatten
self.response.append(self.render())
File "/home/odoo/src/odoo/odoo/http.py", line 1060, in render
return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 418, in _render_template
return super()._render_template(template, values=values)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 2088, in _render_template
return self.env['ir.qweb']._render(template, values)
File "/home/odoo/src/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 568, in _render
result = ''.join(rendering)
File "<1848>", line 39, in template_1848
File "<1848>", line 28, in template_1848_content
File "<1850>", line 1371, in template_1850
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
Exception: Unallowed to fetch files from addon website_payment
Template: website.layout
Path: /t/html/head/t[9]
Node:


Avatar
Discard

Did you find any solutions to this ?

have you resolved this problem ?


Find way to remove these entries use query to remove these entries 

Best Answer

Hi,

Such an error is raised when some asset entries points to a non installed module, here in your case, there is some assets in the db which is from website_payment module and it is failing as it is not installed.


You can run a query and delete those entries from the db and it will be fine.

Thanks

Avatar
Discard

Thanks for the information. It would be very helpful if you could specify in this example which entries have to be deleted?

Please, I have same error. I'm really frustrated and I really don't know how to "run a query and delete those entries from db" :c

Best Answer

I have the same problem after I installed eLearning app in my odoo16 community instance. 

Additionnally, my odoo16 is installed in container, but if I install odoo16 in VPS server, everything works well.

Avatar
Discard

Hello everybody, we got 500 error on odoo16 after we installed website app such as

eCommerce or eLearning. Below is the log:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<180>", line 1439, in template_180
File "<180>", line 1061, in template_180_content
File "/cloudclusters/odoo/odoo/addons/base/models/ir_qweb.py", line 2425, in _load_values
return get_value()
File "<180>", line 1051, in template_180_t_cache_0_cache
File "<180>", line 368, in template_180_t_cache_0
File "/cloudclusters/odoo/addons/website/models/website.py", line 868, in _get_alternate_languages
if not self._is_canonical_url(canonical_params=canonical_params):
File "/cloudclusters/odoo/addons/website/models/website.py", line 1313, in _is_canonical_url
current_url = request.httprequest.url_root[:-1] + request.httprequest.environ['REQUEST_URI']
KeyError: 'REQUEST_URI'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/cloudclusters/odoo/odoo/http.py", line 1985, in __call__
response = request._serve_db()
File "/cloudclusters/odoo/odoo/http.py", line 1584, in _serve_db
exc.error_response = self.registry['ir.http']._handle_error(exc)
File "/cloudclusters/odoo/addons/http_routing/models/ir_http.py", line 657, in _handle_error
code, html = 418, request.env['ir.ui.view']._render_template('http_routing.http_error', values)
File "/cloudclusters/odoo/addons/website/models/ir_ui_view.py", line 418, in _render_template
return super()._render_template(template, values=values)
File "/cloudclusters/odoo/odoo/addons/base/models/ir_ui_view.py", line 2116, in _render_template
return self.env['ir.qweb']._render(template, values)
File "/cloudclusters/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/cloudclusters/odoo/odoo/addons/base/models/ir_qweb.py", line 568, in _render
result = ''.join(rendering)
File "<239>", line 66, in template_239
File "<239>", line 55, in template_239_content
File "<180>", line 1445, in template_180
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
KeyError: 'REQUEST_URI'
Template: web.frontend_layout
Path: /t/html/head/t[8]/t[2]

We have tested odoo16 with python3.7, 3.8 and 3.9. All of them have the same problem.

Does anybody have any idea about this issue? Thanks a lot in advance!

Related Posts Replies Views Activity
0
Sep 20
2269
2
May 25
189
1
May 25
374
1
Mar 25
606
0
Jan 25
585