Odoo Help


File "<string>", line 1, in bind error: [Errno 98] Address already in use

Mark Yoshida
on 10/24/13, 10:06 PM 3,377 views

How to fix this problem? at same time localhost:8069 blank screen. I can see couple time - Loading and still blank screen.

openerp@host [~]# openerp-server 2013-10-25 00:04:40,072 32440 INFO ? openerp: OpenERP version 7.0-20131023-232420 2013-10-25 00:04:40,072 32440 INFO ? openerp: addons paths: /usr/lib/python2.6/site-packages/openerp-7.0_20131023_232420-py2.6.egg/openerp/addons 2013-10-25 00:04:40,072 32440 INFO ? openerp: database hostname: localhost 2013-10-25 00:04:40,072 32440 INFO ? openerp: database port: 5432 2013-10-25 00:04:40,073 32440 INFO ? openerp: database user: openerp 2013-10-25 00:04:40,705 32440 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.17 detected Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/usr/lib64/python2.6/threading.py", line 484, in run self.__target(self.__args, *self.__kwargs) File "/usr/lib/python2.6/site-packages/openerp-7.0_20131023_232420-py2.6.egg/openerp/service/wsgi_server.py", line 436, in serve httpd = werkzeug.serving.make_server(interface, port, application, threaded=True) File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 402, in make_server passthrough_errors, ssl_context) File "/usr/lib/python2.6/site-packages/werkzeug/serving.py", line 334, in __init__ HTTPServer.__init__(self, (host, int(port)), handler) File "/usr/lib64/python2.6/SocketServer.py", line 402, in __init__ self.server_bind() File "/usr/lib64/python2.6/BaseHTTPServer.py", line 108, in server_bind SocketServer.TCPServer.server_bind(self) File "/usr/lib64/python2.6/SocketServer.py", line 413, in server_bind self.socket.bind(self.server_address) File "<string>", line 1, in bind error: [Errno 98] Address already in use

2013-10-25 00:04:41,113 32440 INFO ? openerp: OpenERP server is running, waiting for connections...


Sudhir Arya (SA)

--Sudhir Arya (SA)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow




Sudhir Arya (SA)
On 10/25/13, 3:09 AM

If you are using two instances of OpenERP, then the following will do the magic:

  1. Type

    sudo netstat -anpt

in terminal. This will list the active processes and the port numbers they are using.

  1. Find the process which uses the port number of OpenERP and note the pid(process id) of that process.

  2. Then type

    ps aux | grep openerp

and verify the pid of that process.

  1. Kill the process which uses the port number of OpenERP(if any) by the following command in terminal.

    sudo kill -9 pid

where pid is the process id. For example if 1234 is the pid you should enter

    sudo kill -9 1234

in terminal.

  1. Then remove the pid of OpenERP server from /var/run/openerp by the following.

    sudo rm /var/run/openerp-server.pid
  2. Restart the openerp-server and it's done.

    sudo /etc/init.d/openerp-server restart


joseph d'souza
On 10/25/13, 3:16 AM

OpenERP process is already Running on some port number:

ps aux | grep openerp

just verify the process id of that OpenERP process.

Kill the process which uses the port number of OpenERP by the following command in terminal.

   sudo kill -9 procees id [ex: sudo kill -9 7876 where 7876 is process id]

Hope it helps then vot me UP ^




Brett Lehrer

--Brett Lehrer--
Brett Lehrer
| 5 4 8
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer
On 10/25/13, 12:24 AM

The address is already in use, meaning you already have a service running on that port.

So, OpenERP is already running.

Try this:

ps aux | grep openerp

You should see the currently running process.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/24/13, 10:06 PM
Seen: 3377 times
Last updated: 3/16/15, 8:10 AM