← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 574874] Re: NETRPC Server Hangs and XMLRPC errors on SIGINT with python 2.6.5

 

BTW this is already available in 6.0RC1

-- 
NETRPC Server Hangs and XMLRPC errors on SIGINT with python 2.6.5
https://bugs.launchpad.net/bugs/574874
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Fix Released
Status in OpenObject Server 5.0 series: Invalid

Bug description:
Mac OS X 10.6.3
Python 2.6.5 and dependencies built from MacPorts

When invoked with --no-xmlrpc, upon SIGINT, server hangs indefinitely.  Server must be killed with SIGTERM.

[phellerws2:openerp-5.0-stable/server/bin] pheller% olbpy ./openerp-server.py --no-xmlrpc
[2010-05-03 21:49:03,512] INFO:server:version - 5.0.9
[2010-05-03 21:49:03,512] INFO:server:addons_path - /Users/pheller/Projects/src/openerp-5.0-stable/server/bin/addons
[2010-05-03 21:49:03,512] INFO:server:database hostname - localhost
[2010-05-03 21:49:03,512] INFO:server:database port - 5432
[2010-05-03 21:49:03,512] INFO:server:database user - pheller
[2010-05-03 21:49:03,512] INFO:objects:initialising distributed objects services
[2010-05-03 21:49:03,650] INFO:web-services:starting NET-RPC service, port 8070
[2010-05-03 21:49:03,650] INFO:web-services:the server is running, waiting for connections...
^C[2010-05-03 21:49:05,775] INFO:shutdown:Shutdown Server! - SIGINT
^Z
Suspended
[phellerws2:openerp-5.0-stable/server/bin] pheller% kill -9 %1
[phellerws2:openerp-5.0-stable/server/bin] pheller% jobs
[1]    Killed                        /opt/local/bin/python ./openerp-server.py --no-xmlrpc


When invoked with --no-netrpc, upon SIGINT, server errors with the following message, then exits:

[phellerws2:openerp-5.0-stable/server/bin] pheller% olbpy ./openerp-server.py --no-netrpc
[2010-05-03 21:48:02,478] INFO:server:version - 5.0.9
[2010-05-03 21:48:02,478] INFO:server:addons_path - /Users/pheller/Projects/src/openerp-5.0-stable/server/bin/addons
[2010-05-03 21:48:02,478] INFO:server:database hostname - localhost
[2010-05-03 21:48:02,478] INFO:server:database port - 5432
[2010-05-03 21:48:02,478] INFO:server:database user - pheller
[2010-05-03 21:48:02,478] INFO:objects:initialising distributed objects services
[2010-05-03 21:48:02,644] INFO:web-services:starting XML-RPC services, port 8069
[2010-05-03 21:48:02,644] INFO:web-services:the server is running, waiting for connections...
^C[2010-05-03 21:48:40,968] INFO:shutdown:Shutdown Server! - SIGINT
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/Users/pheller/Projects/src/openerp-5.0-stable/server/bin/netsvc.py", line 355, in run
    self.server.handle_request()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketServer.py", line 262, in handle_request
    fd_sets = select.select([self], [], [], timeout)
error: (9, 'Bad file descriptor')

[phellerws2:openerp-5.0-stable/server/bin] pheller%