postgresql git hub代码更新并重启odoo-service后出现Odoo 15错误,service

a5g8bdjr  于 2024-01-07  发布在  PostgreSQL
关注(0)|答案(1)|浏览(189)

更新odoo github代码后出现错误:

2023-12-31 14:17:02,355 229965 ERROR portal werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/odoo/odoo/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/home/odoo/odoo/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/home/odoo/odoo/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.qweb', <function IrQWeb._compile at 0x7f6f8b3e0280>, 190, ('en_US', None, None, None, None, 1, None, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/odoo/venv/lib/python3.10/site-packages/werkzeug/serving.py", line 319, in run_wsgi
    execute(self.server.app)
  File "/home/odoo/odoo/venv/lib/python3.10/site-packages/werkzeug/serving.py", line 308, in execute
    application_iter = app(environ, start_response)
  File "/home/odoo/odoo/odoo/service/wsgi_server.py", line 110, in application
    return ProxyFix(application_unproxied)(environ, start_response)
  File "/home/odoo/odoo/venv/lib/python3.10/site-packages/werkzeug/middleware/proxy_fix.py", line 187, in __call__
    return self.app(environ, start_response)
  File "/home/odoo/odoo/odoo/service/wsgi_server.py", line 87, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/odoo/odoo/odoo/http.py", line 1305, in __call__

  File "/home/odoo/odoo/addons/http_routing/models/ir_http.py", line 502, in _dispatch
    return cls.reroute('/'.join(path) or '/')

    return self.translate(src_trans.get, value)
  File "/home/odoo/odoo/odoo/tools/translate.py", line 298, in xml_translate
    root = parse_xml(value)
  File "/home/odoo/odoo/odoo/tools/translate.py", line 276, in parse_xml
    return etree.fromstring(text)
  File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
    
  File "src/lxml/parser.pxi", line 1895, in lxml.etree._parseMemoryDocument
    
ValueError: can only parse strings - - -
2023-12-31 14:17:57,554 229968 INFO portal odoo.addons.base.models.ir_cron: Starting job `{'en_US': 'payment: post-process transactions'}`. 
2023-12-31 14:17:57,561 229968 INFO portal odoo.addons.base.models.ir_cron: Job `{'en_US': 'payment: post-process transactions'}` done.

字符串
Afetr更新代码的Odoo 15从关闭repo并重新启动服务,我得到了这个错误,在尝试选择我的数据库。
我也做了恢复到prev提交,但没有帮助。如果我创建一个新的数据库-工程罚款。
有没有人遇到过这样的问题?有没有可能解决?

pzfprimi

pzfprimi1#

您可以尝试以下步骤:
1.打开odoo.conf文件。
1.使用-d your_db_name_here -u your_module_name_here沿着现有参数添加模块自动升级命令。
1.保存对odoo.conf文件的更改。
1.重启Odoo服务器和示例。
此命令触发指定数据库中指定模块的升级。一旦问题解决并且模块成功更新,您可以从odoo.conf文件中删除自动升级命令。

相关问题