This question has been flagged
3 Replies
3986 Views

Hi,

I am new user to Open ERP and Ubuntu I have followed the step by step installation instructions on how to do get the server up and running. I am getting an error code when I try to start up OpenERP that a port is already in use when I kill the process and try to run the command again I still get the same error. Please see below error that I am getting from the server

 openerp@itsja-PowerEdge-T105:~$ /opt/openerp/server/openerp-server
2013-08-21 20:16:12,179 30116 INFO ? openerp: OpenERP version 7.0-20130818-231031
2013-08-21 20:16:12,179 30116 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2013-08-21 20:16:12,179 30116 INFO ? openerp: database hostname: localhost
2013-08-21 20:16:12,179 30116 INFO ? openerp: database port: 5432
2013-08-21 20:16:12,179 30116 INFO ? openerp: database user: openerp
2013-08-21 20:16:12,730 30116 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.18` detected
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/openerp/server/openerp/service/wsgi_server.py", line 436, in serve
    httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 399, in make_server
    passthrough_errors, ssl_context)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 331, in __init__
    HTTPServer.__init__(self, (host, int(port)), handler)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
    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 419, 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

2013-08-21 20:16:13,227 30116 INFO ? openerp: OpenERP server is running, waiting for connections...
Avatar
Discard
Best Answer

look at the process running. If there are 2 instances of openERP they could be messing each other up.

try stopping the server - type ps aux | grep openerp to confirm you stopped the server, then start the server again.

If that doesn't solve the problem you will have to figure out what other program is using that port and shut it down/ get it to use a different port.

Use netstat -tlnp | grep 8069 to try to figure out what program is using that port.

Avatar
Discard
Best Answer

Hi,

Address already in use.

so kill all process openerp and restart server openerp and must work.

Avatar
Discard
Author

I killed the server and restarted and samething itsja@itsja-PowerEdge-T105:~$ ps ax | grep openerp-server 10068 ? Sl 0:21 python /opt/openerp/server/openerp-server 10214 ? Sl 0:01 python /opt/openerp/server/openerp-server 10914 ? Sl 0:04 python /opt/openerp/server/openerp-server 12733 ? Sl 0:02 python /opt/openerp/server/openerp-server 15465 ? SNl 0:02 /usr/bin/python /usr/bin/openerp-server --config=/etc/openerp/openerp-server.conf --logfile=/var/log/openerp/openerp-server.log 15668 ? Sl 0:02 python /opt/openerp/server/openerp-

Are you sure you are killing the processes - what you pasted looks like you have SIX server processes running.

Best Answer

On your configuration file change the port 8069 to another one. That works for me because I am running 2 versions of OpenERP

Avatar
Discard