gpt4 book ai didi

python - Odoo安装 ''错误: [Errno 98] Address already in use''

转载 作者:太空宇宙 更新时间:2023-11-04 06:49:55 26 4
gpt4 key购买 nike

我按照 odoo 的安装指南进行操作,但最后出现错误当我运行 odoo-bin 文件时它给了我这个错误

teo@teo-Lenovo-Yoga-3-14:/opt/odoo/odoo-10.0$ ./odoo-bin 
2017-07-06 15:03:20,583 3754 INFO ? odoo: Odoo version 10.0
2017-07-06 15:03:20,583 3754 INFO ? odoo: addons paths: ['/home/teo/.local/share/Odoo/addons/10.0', u'/opt/odoo/odoo-10.0/odoo/addons', u'/opt/odoo/odoo-10.0/addons']
2017-07-06 15:03:20,583 3754 INFO ? odoo: database: default@default:default
2017-07-06 15:03:20,601 3754 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
Exception in thread odoo.service.httpd:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/odoo/odoo-10.0/odoo/service/server.py", line 251, in http_thread
self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
File "/opt/odoo/odoo-10.0/odoo/service/server.py", line 106, in __init__
handler=RequestHandler)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 440, in __init__
HTTPServer.__init__(self, (host, int(port)), handler)
File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__
self.server_bind()
File "/opt/odoo/odoo-10.0/odoo/service/server.py", line 116, in server_bind
super(ThreadedWSGIServerReloadable, self).server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

我认为它可能与 odoo.conf 文件有关,因为我指定了一个端口,但它仍然采用默认端口 8069

这是我的 odoo.conf 文件

[options]

; This is the password that allows database operations:

; admin_passwd = PASSWORD

db_host = False

db_port = 8470

db_user = odoo

db_password = False

addons_path = /opt/odoo/odoo-10.0/addons

;Log Settings

logfile = /var/log/odoo/odoo.log

log_level = error

有没有人知道发生了什么,为了记录我之前尝试安装 odoo 但失败了所以我已经为例如创建了数据库用户

最佳答案

因为odoo服务会在系统启动时自动启动,所以你必须手动杀死odoo-service,然后运行./odoo-bin文件,在该文件中点你应该能够看到 odoo 再次运行。

sudo pkill -9 python

通过这样做,您将阻止 python 找到 odoo 服务 process id 并随后终止该进程。

ps aux | grep odoo
sudo kill <process id>

有多个pid与odoo一起运行,以/etc/odoo-server.conf结尾,你必须选择。

我认为最好的选择可能是

sudo pkill -9 python

祝一切顺利,希望我解决了您的问题。

关于python - Odoo安装 ''错误: [Errno 98] Address already in use'',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44952846/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com