Skip to Content
Menu
This question has been flagged
2 Replies
7436 Views

When I runn odoo from the command line it fails to start with the error below. Could someone help me resolve this problem? Thanks

adonnini1@actlnxlptp-4:~$ odoo
2021-06-03 20:19:47,082 30797 INFO ? odoo: Odoo version 14.0-20210603
2021-06-03 20:19:47,082 30797 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/home/adonnini1/.local/share/Odoo/addons/14.0']
2021-06-03 20:19:47,082 30797 INFO ? odoo: database: default@default:default
2021-06-03 20:19:47,169 30797 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
Exception in thread odoo.service.httpd:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 442, in http_thread
self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 150, in __init__
handler=RequestHandler)
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 577, in __init__
self.address_family), handler)
File "/usr/lib/python3.7/socketserver.py", line 452, in __init__
self.server_bind()
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 165, in server_bind
super(ThreadedWSGIServerReloadable, self).server_bind()
File "/usr/lib/python3.7/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

Avatar
Discard
Author

Thanks for your help Ermin, Niyas. All set now. Have a good day

Best Answer

Hi,

To solve this, you have to kill the process that already running on the given port. To see the running process/thread you can open the terminal and type as follows: ps aux||grep odoo , once you enter the above command you will be getting list of the running process, from the list, see the odoo process and get its process id, process id will be the second column in the line.


Once you get the process id, you can kill it as follows: sudo kill -9 PID

The above specified is the suggested solution, still i will specify some another options.

Other Options:

Restart the local system

Change the odoo running port.


Thanks

Avatar
Discard
Best Answer

You can not start Odoo twice. If you want to start it from the command line, you have to stop the running Odoo service first.

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 23
1203
1
Sep 15
19145
0
Oct 24
118
1
Feb 21
2736
3
Sep 18
3102