Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7 Trả lời
24019 Lượt xem

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/next/git/Odoo10_Evaultion-Transform/odoo/service/server.py", line 247, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
  File "/home/next/git/Odoo10_Evaultion-Transform/odoo/service/server.py", line 106, in __init__
    handler=RequestHandler)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 410, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/home/next/git/Odoo10_Evaultion-Transform/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 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

use this to know the process id
ps aux | grep odoo

for odoo 9 and 8 use
ps aux | grep openerp

to kill the process:
sudo kill -9 procees id

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

this will kill all the running python processes :

kill -9 (ps -A | grep python3 | awk '{print $1;}')

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

To kill process by name

pkill -f <process name>
Example: pkill -f odoo
This will kill all odoo process with name odoo

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

first you have to get the id of the process with : ps ax. Then you can use the command : kill -9 [id]

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

That is for odoo 8 and 9.. This command is not usealbe for odoo 10..


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

use :ps aux|grep odoo
To kill the process

sudo kill "process id"

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Simplest way is to use fuser:

  -n,--namespace SPACE  search in this name space (file, udp, or tcp)
  -k,--kill             kill processes accessing the named file

fuser -n tcp 8069 -k
Ảnh đại diện
Huỷ bỏ