[AG-TECH] AG 2.2 Shared Apps
Susanne Lefvert
lefvert at mcs.anl.gov
Fri Jun 18 08:14:13 CDT 2004
Hello Brian,
A 2.2 application should be able to connect to a 2.1.2 server. This is my
response to another email posted on ag-tech regarding log files. The
CmdlineApplication is a new feature in 2.2 and should fix your credential
problem.
Hope this helps,
Susanne
-----Original Message-----
From: owner-ag-tech at mcs.anl.gov [mailto:owner-ag-tech at mcs.anl.gov] On
Behalf
Of Susanne Lefvert
Sent: June 17, 2004 4:06 PM
To: Rob King
Cc: ag-tech at mcs.anl.gov
Subject: Re: [AG-TECH] Errors silenced?
Hello Rob,
I am glad to hear that you are working on a shared application for the AG
and would like to help you with your logging issue. Apparently, log files
for shared apps are not created properly and we are working to get that
fixed. In the mean time, you can use following code to test your app
outside of the venue client:
from AccessGrid.Toolkit import CmdlineApplication
app = CmdlineApplication.instance()
app.Initialize("<appName>")
# Url from app properties dialog in venue client (the 'Location
# URL' field in the dialog that shows up when you right click the
# application session you want to use and select 'Properties').
appUrl = 'https://<host>:<port>/....'
This will print errors to the console and create a log <appName>.log file
where you are running your application. Also,
AccessGrid/tools/VenueApp.py in cvs shows you how to create an
application session in the venue without using the venue client.
Hope this helps,
Susanne
On Thu, 17 Jun 2004, Rob King wrote:
> Hello Everyone,
>
>
>
> I am working on developing a shared application right now,
but
> have been having some problems. I could probably figure them out, but
it
> seems as though the errors are being suppressed somewhere. It's
happened
in
> a couple of places so far, and problems become difficult to debug. I
have
> debug logging mode on, but when it gets to an error, it doesn't log it,
it
> just stops. Is there some way to coax the error messages into a log or
even
> the debug console? My current method of putting a debug log statement
every
> couple lines of code has only met with limited success ;)
>
> Hope someone can help!
>
>
>
> -rob king
>
>
On Thu, 17 Jun 2004, Brian Corrie wrote:
> Hello all (mostly Argonne folks),
>
> I "think" I have written an AG 2.2 shared application. My question is
> about backwards compatibility with AG 2.1.2 venue servers etc.
>
> I can successfully register my shared app with agpm on my 2.2 client on
> my laptop. When I connect to a 2.1.2 venue server sure enough it shows
> up in the client as a shard app. I can even add it as a shared app to a
> venue. That is where I hit a snag. Should I be able to run a 2.2 shared
> app, using a 2.2 Venue Client, but with a 2.1.2 venue server???
>
> It appears not thus far... The first clue is that the app URL that is in
> the Properties dialog for the shared app has the form
> https://venueserver.netera.ca:8000/112. This is the 2.1.2 form I
> believe. In looking at Susanne's Shared Question Tool her test stub has
> a URL of the form
> https://venueserver.netera.ca:8000/Venues/default/apps/somebighexstring.
>
> When I try to open the shared app in the venue client I get nothing...
> no errors, no results! When I run my shared app from the command line
> (this used to work in 2.1.2) I get a credential error as enclosed below.
> I suspect this is the same problem (although the shared app doesn't tell
> me anything when I run it from within the Venue Client). I am using the
> app URL from the properties dialog in the client.
>
> Any thoughts?
>
> Cheers,
>
> Brian
>
> p.s. Where does the log file go when you run something from within the
> venue client??? I could not find it in the Logs directory...
>
>
> 06/17/04 21:07:45 724 SharedVizServer venuevizserverclient.py:263
> DEBUG SharedVizServer.__init__:Started shared vizserver appUrl
> https://venues.cns.ualberta.ca:8000/110, debug 1, log SharedVizServer.log
> 06/17/04 21:07:45 724 Toolkit toolkit.py:79 DEBUG Initializing AG
> Toolkit version 2.2
> 06/17/04 21:07:45 724 SharedVizServer sharedappclient.py:110 ERROR
> SharedAppClient.Join failed: https://venues.cns.ualberta.ca:8000/110
> Traceback (most recent call last):
> File "C:\Python23\Lib\site-packages\AccessGrid\SharedAppClient.py",
> line 105, in Join
> (self.__publicId, self.__privateId) =
> self.__appProxy.Join(clientProfile)
> File "C:\Python23\Lib\site-packages\AccessGrid\SharedApplication.py",
> line 553, in Join
> return self.proxy.Join(clientProfile)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 453, in
> __call__
> return self.__r_call(*args, **kw)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 475, in
> __r_call
> self.__hd, self.__ma)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 347, in
> __call
> config = self.config)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 187, in call
> r.endheaders()
> File "C:\Python23\lib\httplib.py", line 712, in endheaders
> self._send_output()
> File "C:\Python23\lib\httplib.py", line 597, in _send_output
> self.send(msg)
> File "C:\Python23\lib\httplib.py", line 564, in send
> self.connect()
> File "C:\Python23\Lib\site-packages\pyGlobus\io.py", line 1093, in
> connect
> self.sock.connect(self.host, self.port, self.io_attr)
> File "C:\Python23\Lib\site-packages\pyGlobus\io.py", line 671, in connect
> raise ex
> GSITCPSocketException: no credentials:
> Problem with local credentialsunable to access trusted certificates in:
> x509_cert_dir=C:\Documents and Settings\All Users\Application
> Data\AccessGrid\certificates
> Function:proxy_init_cred
> 06/17/04 21:07:45 724 SharedVizServer sharedappclient.py:118 ERROR
> SharedAppClient.Join failed: https://venues.cns.ualberta.ca:8000/110
> Traceback (most recent call last):
> File "C:\Python23\Lib\site-packages\AccessGrid\SharedAppClient.py",
> line 113, in Join
> (self.__publicId, self.__privateId) = oldAppProxy.Join()
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 453, in
> __call__
> return self.__r_call(*args, **kw)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 475, in
> __r_call
> self.__hd, self.__ma)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 347, in
> __call
> config = self.config)
> File "C:\Python23\Lib\site-packages\SOAPpy\Client.py", line 187, in call
> r.endheaders()
> File "C:\Python23\lib\httplib.py", line 712, in endheaders
> self._send_output()
> File "C:\Python23\lib\httplib.py", line 597, in _send_output
> self.send(msg)
> File "C:\Python23\lib\httplib.py", line 564, in send
> self.connect()
> File "C:\Python23\Lib\site-packages\pyGlobus\io.py", line 1093, in
> connect
> self.sock.connect(self.host, self.port, self.io_attr)
> File "C:\Python23\Lib\site-packages\pyGlobus\io.py", line 671, in connect
> raise ex
> GSITCPSocketException: no credentials:
> Problem with local credentialsunable to access trusted certificates in:
> x509_cert_dir=C:\Documents and Settings\All Users\Application
> Data\AccessGrid\certificates
> Function:proxy_init_cred
>
>
>
>
>
> Brian
>
>
More information about the ag-tech
mailing list