gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Timeout testing appserver


From: Vitor Figueiro
Subject: Re: Re: Timeout testing appserver
Date: Tue, 23 Jul 2002 21:26:14 +0100

Dear Jan, In the meantime I found out that a client connection is always successfull at the second attempt, so this is not really important for my experiences with GNUe. Maybe it has something to do with my Linux box being so old and slow. Anyway, here is the server output after your fix to the OnErr function:
address@hidden gnue]# gacvs -Z
Exporting our services via xmlrpc (port 8765) ... ... GNUe Application Server up and running ... DB000: Unable to load locale information falling back to default English language translations.
------- ### 1st client connection attempt:
Dispatching:  SessionManager.Status []
Dispatching:  SessionManager.getNewSession []
Dispatching: [9997a82dbfcd84126f044e7c284d883cb95e7b8f].login ['hacker', 'secret']
Trigger for event 'appserver_users:pre_first_inst' does not exist.
User 'hacker' logged in.
Internal server error occured:
server <xmlrpc Source object, fd 6, 127.0.0.1:3168 at 0x8254a28>
on source ('xmlrpc.error', (32, 'Broken pipe'), None).
------- ### 2nd client connection attempt:
Dispatching:  SessionManager.Status []
Dispatching:  SessionManager.getNewSession []
Dispatching: [7665a406a8be537e74609e2acc3a58e29f49642e].login ['hacker', 'secret']
Trigger for event 'appserver_users:pre_first_inst' does not exist.
User 'hacker' logged in.
Dispatching: [7665a406a8be537e74609e2acc3a58e29f49642e].createList ['person']
TestTrigger 1 ausgefuehrt
... rest OK and client works The same happens when I run appservertest.gfd from a Windows client connected to the same server. It only works when I call the form for the 2nd time without shutting down the server. I get the same behaviour with pw_xmlrpc:
address@hidden /root]# gacvs -Z --rpc-type pw_xmlrpc
Exporting our services via pw_xmlrpc (port 8765) ... ... GNUe Application Server up and running ... DB000: Unable to load locale information falling back to default English language translations.
------- ### 1st client connection attempt:
Dispatching:  SessionManager.Status ()
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:01:28] "POST / HTTP/1.1" 200 -
Dispatching:  SessionManager.getNewSession ()
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:01:29] "POST / HTTP/1.1" 200 -
Dispatching: [c9d6c6c9ee64c0fb7317a4bec0fc43e37c1c8b2b].login ('hacker', 'secret')
Trigger for event 'appserver_users:pre_first_inst' does not exist.
User 'hacker' logged in.
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:01:33] "POST / HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 3191)
DB000: Traceback (most recent call last):
DB000: File "/usr/local/lib/python2.2/SocketServer.py", line 458, in process_request_thread
DB000:     self.finish_request(request, client_address)
DB000: File "/usr/local/lib/python2.2/SocketServer.py", line 253, in finish_request
DB000:     self.RequestHandlerClass(request, client_address, self)
DB000: File "/usr/local/lib/python2.2/SocketServer.py", line 514, in __init__
DB000:     self.handle()
DB000: File "/usr/local/lib/python2.2/BaseHTTPServer.py", line 266, in handle
DB000:     method()
DB000: File "/usr/local/src/gnue/.cvsdevelbase/gnue/common/commdrivers/pw_xmlrpc/ServerA dapter.py", line 406,ST
DB000:     self.send_response(200)
DB000: File "/usr/local/lib/python2.2/BaseHTTPServer.py", line 315, in send_response
DB000:     self.send_header('Server', self.version_string())
DB000: File "/usr/local/lib/python2.2/BaseHTTPServer.py", line 321, in send_header
DB000:     self.wfile.write("%s: %s\r\n" % (keyword, value))
DB000: IOError: [Errno 32] Broken pipe
----------------------------------------
------- ### 2nd client connection attempt:
Dispatching:  SessionManager.Status ()
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:03:55] "POST / HTTP/1.1" 200 -
Dispatching:  SessionManager.getNewSession ()
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:03:55] "POST / HTTP/1.1" 200 -
Dispatching: [ad0e8274d44e40eb6f38d33d90dae9c33e9ea794].login ('hacker', 'secret')
Trigger for event 'appserver_users:pre_first_inst' does not exist.
User 'hacker' logged in.
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:03:55] "POST / HTTP/1.1" 200 -
Dispatching: [ad0e8274d44e40eb6f38d33d90dae9c33e9ea794].createList ('person',)
TestTrigger 1 ausgefuehrt
DB000: mflinux.macfig.pt - - [23/Jul/2002 20:03:56] "POST / HTTP/1.1" 200 -
Dispatching: [7e55ccf1ba100af7bd3341ac8ac709de1310bd1c].setPrefetch (['name', 'street', 'city'],) ... rest OK and client works Regards, Vitor
address@hidden writes:
Message: 1
Date: Fri, 19 Jul 2002 15:04:41 +0200
To: address@hidden
Subject: Re: Error 110 testing appserver (fwd)
From: Jan Ischebeck <address@hidden> Dear vfiguerio,
The error you get seems to have something todo with your database
setting, you should check if connection.conf is holding the correct
values. You need a [gnue] database def. in there. The error message you got, should be changing to a better one, because I've fixed the OnErr function in cvs.
The main problem is that I cannot create a similar (timeout) error
on my machine. So I can't really test it. Btw. this is a RPC problem so you possibly want to try the pw-xmlrpc adapter instead. You can activate it with gacvs -Z --rpc-type pw_xmlrpc. Jan
From: "vfigueiro" <address@hidden>
To: address@hidden
Subject: Error 110 testing appserver (fwd)
Date: Fri, 19 Jul 2002 00:46:41 +0100 Hi. While testing appserver I get the following error:

Client:
... # gtestcvs
...
Your choice: 3
Opening RPC connection ...
DB000: Unable to load locale information falling back to default English language translations.
Setup an link to the session manager
Get the status of the session manager
Status:  Running (no sessions created yet)
Creating session object ...
Logging into the session ... ******************************************** Error: (110, 'Connection timed out')

********************************************
address@hidden samples]# Server:
address@hidden samples]# gacvs -Z
Exporting our services via xmlrpc (port 8765) ... ... GNUe Application Server up and running ... DB000: Unable to load locale information falling back to default English language translations.
Dispatching:  SessionManager.Status []
Dispatching:  SessionManager.getNewSession []
Dispatching: [cac80254df4b4c8787a6ae13a7787f7997714d01].login ['hacker', 'secret']
Trigger for event 'appserver_users:pre_first_inst' does not exist.
User 'hacker' logged in.
ERROR HANDLER FAILED!!
DB000: TypeError: OnErr() takes exactly 2 arguments (3 given)
Error from source <127.0.0.1:3160, fd -1>:
************************************************************
Error occured on server:
************************************************************
DB000: Traceback (most recent call last):
DB000: File "/usr/local/src/gnue/.cvsdevelbase/gnue/common/commdrivers/xmlrpc/ServerAdap ter.py", line 117, in serve
DB000:     self.server.work()
DB000: File "/usr/local/lib/python2.2/site-packages/xmlrpc.py", line 114, in work
DB000:     self._o.work(timeout)
DB000: xmlrpc.error: (32, 'Broken pipe')
************************************************************

Can someone help me with this?
(CVS copy 2002/07/18
changed line 123 in common/dbdrivers/_pgsql/DBdriver.py:
encoding = gConfig('encoding')
to
encoding = connectData['encoding']



reply via email to

[Prev in Thread] Current Thread [Next in Thread]