Getting started

From Ogce

Contents

Installing the Portal

The instructions for installing the OGCE Grid portlets and plugins into GridSphere are given in the Installation section. In short, unpack the download and run ./install.sh. To capture the output of the build process, run

  ./install.sh > install.log 2>&1 

You can also do this using Maven 2 (included in the release). Assuming compilation succeeds (and it should--see the nightly build section), start up Tomcat. You can use the convenient startup.sh script. After starting the Tomcat server, it is usually very helpful to follow the log messages. To do this, use

  [shell-prompt1> cd $ogce_home
  [shell-prompt1> tail -f ./portal_deploy/apache-tomcat-5.5.12/logs/catalina.out


If you have problems, this is usually the best place to start looking for the causes.

Note the $ogce_home variable is used here as shorthand. It is the base directory of the OGCE download.

Common Problems

Fedore Core versions of Linux ship with a problem-causing version of Apache Ant. This will result in errors such as the following in the build process, and the GridSphere container will not be built properly. Check to see if your OS has the file /etc/ant.conf. If so, remove it or edit it as necessary.

  Installing GridSphere...
  Unknown argument: -cp
  ant [options] [target [target2 [target3] ...]]
  ...

The result of this error is that GridSphere will not be built. You can check this by

  [shell-prompt> ls -l /path/to/ogce/home/portal_deploy/apache-tomcat/5.5.12/webapps/gridsphere

Solution: rename, delete, or edit /etc/ant.conf.

Logging In and Getting Started

GridSphere 2.1 will prompt you to create an administration account when you log in for the first time. For more information on configuring accounts and managing your GridSphere portal, see the GridSphere Project Documentation page.

Getting a Grid Credential

None of the Grid portlets will be active until you acquire a credential from a MyProxy server. If you have a TeraGrid account, you can get proxy credentials from the TeraGrid MyProxy server. Other Grids may have similar set-ups. If you are doing this for your own Grid installation, you must obtain a Grid user certificate and store it in a MyProxy server using a command similar to the following:

 [shell-prompt> myproxy-init -l username -s proxyserver.host.name

This will store a credential for you for one week, by default. MyProxy can optionally store credentials for much longer time periods, so check the command line options and documentation. After you have stored your credential in MyProxy, you may retreive short-term (2 hour) proxy credentials in the portal. Click the "Proxy Manager" tab to see a veiw similar to the one shown at the end of the previous section.

Click "Get New Proxy" to get the view similar to the screen below. Fill out the form to fetch a credential.

After you have successfully fetched a credential, the JobSubmit/GRAM and GridFTP portlets will become active. Click the "Reload" buttons on these if necessary to get them into an active state.

Running Remote Commands

The Job Submission portlet allows you to run simple remote commands and track their status. This portlet is intended to illustrate basic Grid tasks. After you have obtained a credential and activated the Job Submit portlet, you can fill out the form to submit basic commands. Click the "Check Status" button to get the command's standard output, or redirect it to a file on the specified host.

Image:GRAMPortlet.png


Common Problems

Interactive job submission requires that you run the portal on a machine with a real IP address and that your $HOME/.globus/cog.properties file is configured correctly.

  • Verify that your host server has a real IP address. Try for example using the Unix ifconfig command and check your inet address.
  • In the account where you install the portal, check your $HOME/.globus/cog.properties. It should look something like this:
     [shell-prompt> more $HOME/.globus/cog.properties
     cacert=/your/home/.globus/certificates
     ip=123.456.789

The value of the IP property should be the value you see in your ifconfig "inet addr" field. Several Web sites will also give you your IP address (google "What is my IP").

If you are using a wireless connection, try using a Virtual Private Network connection.

Using GridFTP Portlets

The GridFTP portlets will also become active after you have obtained a credential. Use "Reload" if necessary to activate the portlet. When active, you will be prompted to give the names of either one or two GridFTP servers. The two-host view allows you to display files side-by-side. After you have selected the desired host(s), you will be able to browse remote files and upload/download files.

Image:GridFTPPortlet.png

Common Problems

GridFTP's download feature is implemented using servlet-portlet intercommunication. This unfortunately exposes a Tomcat bug. See http://nagoya.apache.org/jira/browse/PLUTO-53 for details.

A simple workaround exists, and is described here . The OGCE2 2.0 installation automatically applies this patch to the portal server, but you may (if you ever rebuild things by hand) need to make this correction.

In summary, you need to modify Tomcat's server.xml (located in the conf directory) to add the attribute emptySessionPath="true" to the non-SSL HTTP/1.1 descriptor:

   <Connector port="8080"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              connectionTimeout="20000" disableUploadTimeout="true" emptySessionPath="true" /> 


Tomcat seems to be very picky about newlines in this file. We have usually found it best to put the emptySessionPath attribute on the same line as the disableUploadTimeout attribute.

Setting Up GPIR Services

The GPIR portlet by default points to GPIR Web Services installed under $ogce_home/services_gridport_deploy/apache-tomcat-5.5.12/webapps/gpir. More information on configuring GPIR services is available here.

The GPIR browser portlet is described here. By default, this portlet points to dummy resources and values. A configured GPIR browser and services will give output similar to the screen shot below.

Image:GPIRPortlet.png

Common Problems

GPIR portlets by default point to GPIR services running on the TeraGrid, but you can also point to your own local installation by editing the portlet.xml file. If the GPIR web service's Tomcat host is not running, you will get the error message

  Error Contacting Web Service.

in the portlet. To fix, restart the GridPort services with the gp-tomcat-start.sh script and follow the logs in services_gridport_deploy/apache-tomcat-5.5.12/logs/catalina.out. Also point your browser to http://localhost:7070/gpir/webservices to make sure that these are deployed correctly.

Miscellaneous Topics

Getting Grid Software

To obtain Globus Toolkit, Condor and related software, visit the NMI Grids Center. See also Related Links on the left-hand navigation bar.

Note on MyProxy Server Versions

Please use the latest version of MyProxy (0.6.4 or later) to avoid a bug with proxy credential retrieval. If you must use an earlier version of MyProxy, please use the Java CoG Kit's MyProxy init command line tools to store your credential. For more information, please see the MyProxy section of the OGCE FAQ.

Web site tools