The instructions for installing the OGCE Grid portlets and plugins into GridSphere are given in the navigation link, Installing the Portal. In short, unpack the download and run ./install.sh. To capture the output of the build process, run
./install.sh > install.log 2>&1
When installation has completed, the install.sh script will start the portal's Tomcat server on port 8080 and the GridPort Web services' Tomcat server on port 7070. Releases prior to 2.0.1 use port 9090. These servers are under $ogce_home/portal_deploy/ and $ogce_home/services_gridport_deploy, respectively. It is often useful to follow each Tomcat's catalina.log file:
[shell-prompt1> cd $ogce_home [shell-prompt1> tail -f ./portal_deploy/apache-tomcat-5.5.12/logs/catalina.out (and in a separate terminal window) [shell-prompt2> cd $ogce_home [shell-prompt2> tail -f ./services_gridport_deploy/apache-tomcat-5.5.12/logs/catalina.out
Note the $ogce_home variable is used here as shorthand. It is the base directory of the OGCE download.
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] ...]] ...
[shell-prompt> ls -l /path/to/ogce/home/portal_deploy/apache-tomcat/5.5.12/webapps/gridsphere
GridSphere comes with the default "root" account. No password is required for initial login. For more information on configuring accounts and managing your GridSphere portal, see the GridSphere Project Documentation page.
None of the Grid portlets will be active until you acquire a credential from a MyProxy server. You must obtain a Grid user certificate for your Grid installation and store it in a MyProxy server using a command similar to the following:
[shell-prompt> myproxy-init -l username -s proxyserver.host.name
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.
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.
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.
[shell-prompt> more $HOME/.globus/cog.properties cacert=/your/home/.globus/certificates ip=123.456.789
If you are using a wireless connection, try using a Virtual Private Network connection.
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.
.
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
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" emptySessionPath="true" />
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.
GPIR portlets by default point to GPIR services running at http://localhost:7070/gpir/webservices. 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.
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.