[AG-TECH] AG 2.2 Shared Apps

Susanne Lefvert lefvert at mcs.anl.gov
Fri Jun 18 18:06:29 CDT 2004


Hello Brian,

Good to hear your application is working!  You are right regarding that 
exception, that's how we are handling interop with old servers at the 
moment. I should probably make the message more informative and change 
the log level to info instead of exception.  Thanks for pointing that out. 

Regards,

Susanne


On Fri, 18 Jun 2004, Brian Corrie wrote:

> Hi Susanne,
> 
> Thanks for the info... That seems to have sorted things out. My shared 
> app is now working under 2.2 but I am still getting the error messages 
> described below. This looks like an exception that is caught and ignored 
> on the join method as it then uses "the old software" Join method. Is 
> that expected behavior when using a 2.1.2 server???
> 
> Just checking to make sure I am not doing something bad.
> 
> By the way, a small rant about Python!!! I had a problem with my shared 
> app as it didn't seem to be working correctly within the venue client. I 
> had no idea what was going on! Can anyone tell me what is wrong with 
> this code snippet:
> 
>      if len(sys.argv) < 3:
>          print "Usage: %s <venueURL> <appUrl>" % sys.argv[0]
>         sys.exit(1)
> 
> Cheers,
> 
> Brian
> 
> 
> 06/18/04 14:19:16 3064 Toolkit     toolkit.py:79 DEBUG Initializing AG 
> Toolkit version 2.2
> 06/18/04 14:19:16 3064 Toolkit     config.py:205 DEBUG System hostname 
> of colab-wgrid1.cecm.sfu.ca is valid
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:261 
> DEBUG Opened repository C:\Documents and Settings\bcorrie\Application 
> Data\AccessGrid\Config\certRepo
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:717 
> DEBUG Configuring standard environment
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:783 
> DEBUG Using default identity /O=Access 
> Grid/OU=agdev-ca.mcs.anl.gov/OU=sfu.ca/CN=Brian Corrie
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:854 
> DEBUG Initializing environment with proxy cert for /O=Access 
> Grid/OU=agdev-ca.mcs.anl.gov/OU=sfu.ca/CN=Brian Corrie
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:873 
> DEBUG Configuring for user proxy issued from /O=Access 
> Grid/OU=agdev-ca.mcs.anl.gov/OU=sfu.ca/CN=Brian Corrie
> 06/18/04 14:19:16 3064 CertificateManager     certificatemanager.py:876 
> DEBUG Proxy C:\DOCUME~1\bcorrie\LOCALS~1\Temp\proxy will expire 06/18/04 
> 18:32:31
> 06/18/04 14:19:16 3064 SharedVizServer     venuevizserverclient.py:264 
> DEBUG SharedVizServer.__init__:Started shared vizserver  appUrl 
> https://venueserver.netera.ca:8000/112, debug 1, log SharedVizServer.log
> 06/18/04 14:19:16 3064 Toolkit     toolkit.py:79 DEBUG Initializing AG 
> Toolkit version 2.2
> 06/18/04 14:19:17 3064 SharedVizServer     sharedappclient.py:110 ERROR 
> SharedAppClient.Join failed: https://venueserver.netera.ca:8000/112
> 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 389, in 
> __call
>      raise p
> faultType: <Fault exceptions.TypeError: TypeError: Join() takes exactly 
> 1 argument (2 given): Traceback (most recent call last):
>    File 
> "/usr/lib/python2.2/site-packages/AccessGrid/hosting/AccessControl.py", 
> line 583, in __call__
>      rc = self.callback(*args)
> TypeError: Join() takes exactly 1 argument (2 given)
>  >
> 06/18/04 14:19:18 3064 SharedVizServer     sharedappclient.py:115 INFO 
> SharedAppClient.Join: https://venueserver.netera.ca:8000/112 using old 
> software
> 06/18/04 14:19:19 3064 EventClient     eventclient.py:166 DEBUG Have 
> callback handle _50798001_p_callbackStruct
> 
> Susanne Lefvert wrote:
> 
> > 
> > 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