Skip to Content
Menu
This question has been flagged
7 Replies
22379 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

this will kill all the running python processes :

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

Avatar
Discard
Best Answer

To kill process by name

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Author Best Answer

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


Avatar
Discard
Best Answer

use :ps aux|grep odoo
To kill the process

sudo kill "process id"

Avatar
Discard
Best Answer

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
Avatar
Discard