← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 788966] Re: Cannot start server on port 28070

 

Hi,

Configuration is broken in trunk. I think that is the reason for this
bug, so I reopen it.

In recent revisions of trunk, all options from the configuration file
are reset to their default values. This happens around line 300 of
openerp/tools/config.py:

        for arg in keys:
            if getattr(opt, arg):
                self.options[arg] = getattr(opt, arg)

Up until that moment, self.options contain the values from the
configuration file.

Cheers,
Stefan.


** Changed in: openobject-server
       Status: Invalid => New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/788966

Title:
  Cannot start server on port 28070

Status in OpenERP Server:
  New

Bug description:
  When start an instance on port 28070, I receive the error
  "socket.error: [Errno 98] Address already in use". However, the
  netstat shows that there is nothing on port 28070.

  $ netstat -na | grep -e 8070 -e 8069
  tcp        0      0 0.0.0.0:8069            0.0.0.0:*               LISTEN     
  tcp        0      0 0.0.0.0:8070            0.0.0.0:*               LISTEN     
  tcp        0      0 0.0.0.0:18069           0.0.0.0:*               LISTEN     
  tcp        0      0 0.0.0.0:18070           0.0.0.0:*               LISTEN     
  tcp        0      0 192.168.100.251:8070    192.168.100.11:3378     CLOSE_WAIT 

  
  The complete error trace is below:

  + dirname bin//openerp-server
  + cd bin
  + pwd
  + topdir=/var/local/software/6.1dev-20110527-1228/server/bin
  + cd /var/local/software/6.1dev-20110527-1228/server/bin
  + logger -i /var/local/software/6.1dev-20110527-1228/server/bin
  + exec /usr/bin/python ./openerp-server.py --config=/var/local/software/6.1dev-2
  0110527-1228/server/openerp-server.conf
  Traceback (most recent call last):
    File "openerp-server", line 96, in <module>
      http_server.init_servers()
    File "/var/local/software/6.1dev-20110527-1228/server/openerp/service/http_ser
  ver.py", line 232, in init_servers
      int(tools.config.get('xmlrpc_port', 8069)))
    File "/var/local/software/6.1dev-20110527-1228/server/openerp/service/http_ser
  ver.py", line 212, in __init__
      handler=MultiHandler2)
    File "/var/local/software/6.1dev-20110527-1228/server/openerp/service/http_ser
  ver.py", line 147, in __init__
      self.server = ThreadedHTTPServer((interface, port), handler, proto=self._Rea
  lProto)
    File "/var/local/software/6.1dev-20110527-1228/server/openerp/service/http_ser
  ver.py", line 75, in __init__
      HTTPServer.__init__(self, addr, requestHandler)
    File "/usr/lib/python2.6/SocketServer.py", line 402, in __init__
      self.server_bind()
    File "/usr/lib/python2.6/BaseHTTPServer.py", line 108, in server_bind
      SocketServer.TCPServer.server_bind(self)
    File "/usr/lib/python2.6/SocketServer.py", line 413, in server_bind
      self.socket.bind(self.server_address)
    File "<string>", line 1, in bind

  I'm using the trunk, latest version as of 27/05/2011
  (launchpad_translations_on_behalf_of_openerp-20110527044550-75mzo90wnocq320y)

  $ bzr version-info
  revision-id: launchpad_translations_on_behalf_of_openerp-20110527044550-75mzo90wnocq320y
  date: 2011-05-27 04:45:50 +0000
  build-date: 2011-05-27 12:55:30 +0700
  revno: 3433
  branch-nick: server

  Configuration file (only include the relevant parts)
  $ grep -e xml -e port openerp-server.conf 
  smtp_port = 25
  xmlrpcs_interface = 
  xmlrpcs_port = 28071
  test_report_directory = False
  xmlrpc_interface = 
  port = 28070
  xmlrpc_port = 28069
  xmlrpcs = True
  import_partial = 
  reportgz = False
  xmlrpc = True
  netrpc_port = 28070
  db_port = 5432


References