c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #30407
[Bug 574874] Re: NETRPC Server Hangs and XMLRPC errors on SIGINT with python 2.6.5
I have a similar problem in V6
revno 3470
"-- stop after init" does not exit
it must be data dependant, because it happens only in one db on the same
instance
=== modified file 'bin/openerp-server.py'
--- bin/openerp-server.py 2011-01-06 13:06:54 +0000
+++ bin/openerp-server.py 2011-08-11 20:08:08 +0000
@@ -170,7 +173,11 @@
# if we don't want the server to continue to run after initialization, we quit here
#----------------------------------------------------------------------------------
if tools.config["stop_after_init"]:
- sys.exit(0)
+ logger.info("we are here stop_after init: %s", tools.config["stop_after_init"])
+ try: sys.exit(0)
+ except: logger.error("we can not EXIT, please kill manualy")
+ os._exit(0)
--
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/574874
Title:
NETRPC Server Hangs and XMLRPC errors on SIGINT with python 2.6.5
Status in OpenERP Server:
Fix Released
Status in OpenERP 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%
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/574874/+subscriptions