Odoo 安装“错误:[Errno 98] 地址已被使用" [英] Odoo installation ''error: [Errno 98] Address already in use''

查看:66
本文介绍了Odoo 安装“错误:[Errno 98] 地址已被使用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I followed this installation guide for odoo and I get an error in the very end when I run odoo-bin file it gives me this error

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

I think it may be related to the odoo.conf file because I specify a port but it still assumes de default port 8069

这是我的 odoo.conf 文件

this is my odoo.conf file

[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但失败了,所以我已经为例如创建了数据库用户

Does anyone have an idea of what's happening, for the record I tried to install odoo before but failed so I already had DB user created for e.g.

推荐答案

因为odoo服务在系统启动的时候会自动启动,所以需要手动杀死odoo-service,然后运行./odoo-bin 文件,此时您应该能够看到 odoo 再次运行.

Because odoo service automatically start when system starts, so you have to kill the odoo-service manually, and then run the ./odoo-bin file, at which point you should be able to see odoo running again.

sudo pkill -9 python

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

By doing this you'll stop python from finding the odoo service process id and subsequently killing that process.

ps aux | grep odoo
sudo kill <process id> 

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

There are multiple pid running with odoo, ending with /etc/odoo-server.conf, which you have to select.

我认为最好的选择可能是

I think the best option is probably

sudo pkill -9 python

一切顺利,我希望我解决了你的问题.

All the best, I hope I solved your problem.

这篇关于Odoo 安装“错误:[Errno 98] 地址已被使用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆