Package: openerp-server Version: 5.0.6-4 Severity: important
Hi, I am unable to start the openerp server. The logfile has this: [2010-02-26 10:52:01,773] INFO:server:version - 5.0.6 [2010-02-26 10:52:01,773] INFO:server:addons_path - /usr/lib/openerp-server/addons [2010-02-26 10:52:01,773] INFO:server:database hostname - localhost [2010-02-26 10:52:01,774] INFO:server:database port - 5432 [2010-02-26 10:52:01,774] INFO:server:database user - openerp [2010-02-26 10:52:01,774] INFO:objects:initialising distributed objects services [2010-02-26 10:52:02,005] INFO:web-services:starting XML-RPC services, port 8070 When I start the server with the init script, I get: # /etc/init.d/openerp-server start Starting openerp-server: openerp-server. When I'm doing it by hand, I get: # sh -x /usr/bin/openerp-server --config=/etc/openerp-server.conf + cd /usr/lib/openerp-server + exec /usr/bin/python ./openerp-server.py --config=/etc/openerp-server.conf want to listen on 127.0.0.1:8070 Traceback (most recent call last): File "./openerp-server.py", line 178, in <module> tinySocket = netsvc.TinySocketServerThread(netinterface, netport, False) File "/usr/lib/openerp-server/netsvc.py", line 398, in __init__ self.socket.bind((self.__interface, self.__port)) File "<string>", line 1, in bind socket.error: (98, 'Address already in use') The additional statement "want to listen on..." stems from my attempts to debug the problem, because initially, it appeared to me that 'interface' might be None, which is not allowed in the socket.* calls, so I added this code at line 175 in openerp-server.py: if netinterface is None or netinterface == '': netinterface = u'127.0.0.1' print "want to listen on %s:%s" % (str(netinterface), str(netport)) after fiddling with the command line. In any case... the server does not make it. Although the error message looks quite clear, it appears to be wrong: $ netstat -an|grep 8070 $ Moreover, I find: $ python Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> interface = '' >>> port = 8070 >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) >>> s.bind((interface, port)) >>> s.listen(1) >>> s.shutdown(socket.SHUT_RDWR) >>> whith a socket on 0.0.0.0:8070 being opened at the "s.listen(1)" step, and the same socket being cleanly shut down when I issue the shutdown() socket call. Now I'm stumped. Kind regards, --Toni++ -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (990, 'stable'), (500, 'proposed-updates'), (450, 'testing'), (250, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages openerp-server depends on: ii adduser 3.110 add and remove users and groups ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy ii python 2.5.2-3 An interactive high-level object-o ii python-libxslt1 1.1.24-2 Python bindings for libxslt1 ii python-lxml 2.1.1-2.1 pythonic binding for the libxml2 a ii python-psycopg2 2.0.7-4 Python module for PostgreSQL ii python-pychart 1.39-6 Python library for creating high q ii python-pydot 1.0.2-1 Python interface to Graphviz's dot ii python-reportlab 2.1dfsg-2 ReportLab library to create PDF do ii python-tz 2008c-2 Python version of the Olson timezo Versions of packages openerp-server recommends: ii ghostscript 8.62.dfsg.1-3.2lenny1 The GPL Ghostscript PostScript/PDF ii graphviz 2.20.2-3 rich set of graph drawing tools ii postgresql 8.3.9-0lenny1 object-relational SQL database (su ii postgresql-client 8.3.9-0lenny1 front-end programs for PostgreSQL ii postgresql-client- 8.2.7-1~bpo40+2 front-end programs for PostgreSQL ii postgresql-client- 8.3.9-0lenny1 front-end programs for PostgreSQL ii python-imaging 1.1.6-3 Python Imaging Library ii python-matplotlib 0.98.1-1+lenny4 Python based plotting system in a ii python-openssl 0.7-2 Python wrapper around the OpenSSL ii python-pyparsing 1.5.0-1 Python parsing module Versions of packages openerp-server suggests: ii openerp-client 5.0.6-3 Enterprise Resource Management (cl -- debconf information: openerp-server/username: openerp -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org