跳至内容
菜单
此问题已终结
2 回复
7633 查看
ubuntu@ip-xxx-xx-xx-xxx:~$ sudo tail -f /var/log/odoo/odoo.log
    from . import models
  File "/opt/odoo/odoo/addons/base/models/__init__\.py",\ line\ 27,\ in\ 
\ \ \ \ from\ \.\ import\ ir_http
\ \ File\ "/opt/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 71,\ in\ 
\ \ \ \ class\ SignedIntConverter\(werkzeug\.routing\.NumberConverter\):
AttributeError:\ module\ 'werkzeug\.routing'\ has\ no\ attribute\ 'NumberConverter'
2023\-07\-13\ 05:42:30,474\ 1385665\ INFO\ \?\ odoo\.service\.server:\ HTTP\ service\ \(werkzeug\)\ running\ on\ ip-xxx-xx-xx-xxx.ap-south-1.compute.internal:8069
2023-07-13 05:42:50,040 1385665 INFO ? odoo.http: HTTP Configuring static files
2023-07-13 05:42:50,103 1385665 INFO ? odoo.http: Generating nondb routing
2023-07-13 05:42:50,147 1385665 INFO ? werkzeug: 127.0.0.1 - - [13/Jul/2023 05:42:50] "GET /my HTTP/1.0" 404 - 1 0.044 0.053

I tried werkzueg 15.0 and Werkzeug==0.16.1 versions still getting the same error

My primary sub-domain intranet.domain.in is showing 404 error and other sub-domains are showing a fresh odoo select database page.

I think the database connection failed due to some issue with the werkzeug.

Please help me to fix this issue.

形象
丢弃
最佳答案

I work by updating Werkzeug to version 2.3.3 in Odoo 14 and then restarting the server

pip install werkzeug==2.3.3


形象
丢弃
最佳答案

Hi,

As per this solution:  https://www.odoo.com/forum/help-1/attributeerror-module-werkzeug-routing-has-no-attribute-numberconverter-207496 it says 0.16.1 version of Werkzeug will resolve the case.


As you said that you already have installed it, can you confirm that you are using the same python environment in which you have installed the package. There is cases, people will install packages in default python version and running odoo with using diff. python, ie using venv , can you confirm the same in your case. Also once package is installed, make sure to stop and start the service.

Thanks

形象
丢弃
相关帖文 回复 查看 活动
2
7月 23
5024
3
5月 24
6333
1
2月 22
3685
2
5月 24
3030
1
4月 24
4775