Odoo Help

Welcome!

This community 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.

0

Exception in thread openerp.service.httpd: | error: [Errno 98] Address already in use

By
Billie Mead
on 10/27/14, 2:51 AM 4,321 views

When I run odoo.py --help I get the following. Odoo service is running and the installation seems to be fine.

2014-10-27 06:23:50,009 6972 INFO ? openerp: OpenERP version 8.0
2014-10-27 06:23:50,009 6972 INFO ? openerp: addons paths: ['/home/admin/.local/                                                     share/Odoo/addons/8.0', u'/opt/odoo/openerp/addons', u'/opt/odoo/addons']
2014-10-27 06:23:50,009 6972 INFO ? openerp: database hostname: localhost
2014-10-27 06:23:50,009 6972 INFO ? openerp: database port: 5432
2014-10-27 06:23:50,009 6972 INFO ? openerp: database user: admin
2014-10-27 06:23:50,119 6972 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

Exception in thread openerp.service.httpd:
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 "/opt/odoo/openerp/service/server.py", line 281, in http_thread self.httpd = ThreadedWSGIServerReloadable(self.interface, self.port, app)
  File "/opt/odoo/openerp/service/server.py", line 91, in __init__handler=RequestHandler)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 410, in __in                                                      it__HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__self.server_bind()
  File "/opt/odoo/openerp/service/server.py", line 101, 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

I checked to see if there was any port conflict:

ps -ax | grep server

gave this list of processes:

 3359 ?        Sl     1:49 python /opt/odoo/openerp-server -c /etc/odoo-server.conf
 3530 ?        Sl     0:01 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid
 3812 ?        Ss     0:00 /usr/lib/openssh/sftp-server
 6348 ?        Ss     0:00 /usr/lib/openssh/sftp-server
 7047 pts/3    S+     0:00 grep --color=auto server

 

ps -ef | grep openerp-server

odoo      3359     1  1 Oct26 ?        00:01:55 python /opt/odoo/openerp-server -c /etc/odoo-server.conf
admin     7264  3731  0 02:43 pts/3    00:00:00 grep --color=auto openerp-server

 

 

I guess it means the server is already running

Shokri Alnajjar
on 10/27/14, 2:57 AM
0

Yenthe

--Yenthe--
6721
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 10/27/14, 3:29 AM

Your server is already running somewhere.
On your Ubuntu do this command: ps aux and look for a process named Odoo (or OpenERP).
There should be one there. Then kill it with sudo kill -9 yourProcessIdHere.

If I'm not mistaking I can see the processid of your Odoo server in your post; which is this line:
odoo      3359     1  1 Oct26 ?        00:01:55 python /opt/odoo/openerp-server -c /etc/odoo-server.conf

I'm not sure what you want to do. Do you want to start the process yourself? Then kill it with sudo kill -9 and afterwards starts yours with ./openerp-server. Do you want to check if it is running? try http://localhost:8069/ 

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/27/14, 2:51 AM
Seen: 4321 times
Last updated: 3/16/15, 8:10 AM