c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #03032
[Bug 574874] Re: NETRPC Server Hangs and XMLRPC errors on SIGINT with python 2.6.5
As for 5.0, our policy is to keep the changes applied on stable branches
to a minimum, in order to limit the regression risks for customers that
are in production. This means that bugs reported on Launchpad are fixed
in the trunk branch only by default, even if they were reported against
other stable versions.
We stand of course ready to backport the change to stable releases if it
has an impact on any customer (but this bug is more a nice-to-have than
a showstopper, really). In this case please report it to our maintenance
team via the OpenERP Publisher's Warranty. They will quickly help you
and perhaps even backport the fix if needed (although the new shutdown
architecture in 6.0 cannot be ported to 5.0 without any risks, and some
of the suggested careless uses of os._exit() are unacceptable)
Thank you for your understanding!
** Changed in: openobject-server/5.0
Importance: High => Medium
** Changed in: openobject-server/5.0
Status: In Progress => Invalid
** Changed in: openobject-server/5.0
Milestone: 5.0.12 => None
--
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%