0

How do I find what's preventing odoo from starting properly?

nicholas@mordor:~$ 
nicholas@mordor:~$ odoo
2021-05-01 00:30:04,854 44082 INFO ? odoo: Odoo version 14.0-20210430 
2021-05-01 00:30:04,854 44082 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/home/nicholas/.local/share/Odoo/addons/14.0'] 
2021-05-01 00:30:04,854 44082 INFO ? odoo: database: default@default:default 
2021-05-01 00:30:04,983 44082 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports. 
2021-05-01 00:30:05,041 44082 WARNING ? odoo.addons.base.models.res_currency: The num2words python library is not installed, amount-to-text features won't be fully available. 
Exception in thread odoo.service.httpd:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 441, in http_thread
    self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 149, in __init__
    super(ThreadedWSGIServerReloadable, self).__init__(host, port, app,
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 740, in __init__
    HTTPServer.__init__(self, server_address, handler)
  File "/usr/lib/python3.8/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.8/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
^C2021-05-01 00:30:13,195 44082 INFO ? odoo.service.server: Initiating shutdown 
2021-05-01 00:30:13,195 44082 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown. 
nicholas@mordor:~$ 
nicholas@mordor:~$ lsof -i :80
nicholas@mordor:~$ 
nicholas@mordor:~$ lsof -i :8080
nicholas@mordor:~$ 
nicholas@mordor:~$ lsof -i :8000
nicholas@mordor:~$ 
nicholas@mordor:~$ sudo apt install odoo
[sudo] password for nicholas: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
odoo is already the newest version (14.0.20210430).
0 upgraded, 0 newly installed, 0 to remove and 158 not upgraded.
nicholas@mordor:~$ 

Nothing seems to be running on localhost that I can see. This is just to run locally.

1 Answers1

1

This usually happens when the openerp-service is already running. You should be able to find any running instance with the following command:

ps aux | grep openerp

If there is a running instance, you’ll see its PID and, with that, you can terminate the process.

If Odoo continues to report Errno 98, then you will need to change the default port the service runs on to something like 7654.

matigo
  • 24,752
  • 7
  • 50
  • 79