This guide supports version 1.2 of the Dataverse Network application.
This installation guide is intended for anyone who chooses to install the Dataverse Network (DVN) software. If you encounter any problems during installation, maintenance or upgrades, please contact the DVN development team at dvn_support@help.hmdc.harvard.edu.
This guide describes the following:
Tools required for installation include a minimum of the following:
Before you install the DVN application, make sure that your installation platform meets the system requirements needed to support installation. System requirements for installation of the DVN software are:
Use the following checklist to plan installation of the DVN. Detailed descriptions of each entry are provided in the next topics:
Deployment of the DVN core is dependent on a minimum installation of the following:
Deployment of the DSB component is dependent on the following minimum installation:
mod_perl 1.99 installed. (The Project recommends strongly that you use a packaged Perl distribution that comes with the OS.)libxslt XSLT C library - Version 1.1.11.Note: Red Hat Linux is the recommended OS, because it is the system in use at the Project and is the distribution tested most thoroughly. However, after the required components are installed, the DSB component should work under any Linux or UNIX system. All four systems are standard and well-supported packages.
See the following topics for detailed information about how to prepare the system:
To install the DVN software, make sure that all necessary ports are open and unrestricted. If access is not available, installation or configuration can fail without obvious cause.
Ports that are required to be open locally on the server consist of the following:
Install the dependent applications:
To install GlassFish, go to https://glassfish.dev.java.net/public/downloadsindex.html to download the current application.
glassfish-installer-v2ur1-b09d-linux.jar.JAVA_HOME variable to your JDK 6 directory, /usr/java/<jdk 1.6 directory>.java -Xmx256m -jar <filename>.jar.java -Xmx256m -jar glassfish-installer-v2ur1-b09d-linux.jar.glassfish directory is created by the jar file, change to that directory.cd glassfish.glassfish/lib/ant.set ANT_HOME=glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup.xmlTo install PostgreSQL, perform the short version of the installation instructions at the PostgreSQL website. On the Documentation page, select the Manuals option, and then choose the appropriate version to read.
/usr/local/pqsql/bin.su - postgres
cd /usr/local/pgsql/bin
./createuser -lPE dvnAppno to the superuser prompt.yes to the create databases prompt.yes to the create new roles prompt.dvnApp) as the owner../createdb dvnDb --owner=dvnApp"dvnApp"./usr/local/pgsql/data/postgresql.conf.listen_addresses and port, and change the first line to listen_addresses='*'./usr/local/glassfish/bin/asadmin stop-domain domain1./usr/local/pgsql/bin/pg_ctl restart -D /usr/local/pgsql/data.<servername> 5432.To install the JDBC driver:
postgresql-8.3-603.jdbc4.jar in the <GlassFish directory>/lib folder./usr/local/glassfish/bin/asadmin start-domain domain1.Log in to the GlassFish admin console to configure GlassFish.
Type http://<hostname>:4848. The default user name is admin, and the default password is adminadmin.
Perform each of the following configuration tasks. The order in which you configure these components is not important:
Paths to JDBC configuration items are specified by using the menu tree on the left side of the admin console.
To configure JDBC connection pools and resources:
dvnDbPooljavax.sql.DataSourcePostGreSQLorg.postgresql.ds.PGPoolingDataSourcejavax.sql.DataSource;create=truedvnApp5432 (Port 5432 is the PostgreSQL default.)<dvnApp's password>dvnDblocalhosttrueClick Finish to complete the configuration.
Ping Succeeded.jdbc/VDCNetDSdvnDbPoolTo configure JMS resources for DSBIngest and indexing:
jms/DSBQueueConnectionFactoryjavax.jms.QueueConnectionFactoryjms/DSBIngestDSBIngestjavax.jms.Queue.jms/IndexMessageFactoryjavax.jms.QueueConnectionFactory.jms/IndexMessageIndexMessagejavax.jms.QueueTo configure JavaMail:
JNDI Name to mail/notifyMailSession.localhost for this entry.dataversenotify (this does not need to be a real mail account).do-not-reply@<your mail server hostname>.Configure the following JVM options for the production machine:
-client to -server.-Dsun.rmi.dgc.server.gcInterval=3600000-Dsun.rmi.dgc.client.gcInterval=3600000-Xmx512m to whatever size you can allot for Java heap space.-Xmx2048m.-Xms2048m.-XX:MaxPermSize=128m or -XX:MaxPermSize=192m
-XX:+AggressiveHeap
-Xss128k
-XX:+DisableExplicitGC
-Dcom.sun.enterprise.ss.ASQuickStartup=false-Ddvn.index.location=/usr/local/glassfish/domains/domain1/config-XX:+UseParallelOldGC-Ddvn.googleanalytics.key=<googleanalyticsTrackingCode>WARNING to INFO:-Djava.util.logging.config.file= /usr/local/glassfish/domains/domain1/config/logging.propertiesTo configure JVM options for files locations and DSB communications:
-Dvdc.temp.file.dir, -Dvdc.export.log.dir, and -Dvdc.import.log.dir values as presented here. The four remaining values are examples only; make the right side of the entry specific to the file setup at your location.
-Dvdc.study.file.dir=/nfs/iqss/DVN/data/usr/local/glassfish/domains/domain1/config/data. This works because it is under the config directory and is in the path.-Dvdc.temp.file.dir=${com.sun.aas.instanceRoot}/config/files/temp-Dvdc.dsb.host=<DSB server hostname>-Dvdc.dsb.port=<DSB server host port>.-Dvdc.export.log.dir=${com.sun.aas.instanceRoot}/logs/export-Dvdc.import.log.dir=${com.sun.aas.instanceRoot}/logs/import-Dvdc.legacy.file.dir=/nfs/mra/VDC/data/-Dvdc.repository.url=http://vdc.hmdc.harvard.edu/VDC/Repository/0.1/The values mentioned here are suggested defaults. These settings are very important.
If your server becomes so busy that it drops connections, adjust the Thread Counts to improve the performance.
There are no right values to recommend; the values depend on the specifics of your web traffic, how many requests you get, how long they take to process on average, and the hardware. For more information, refer to the Java Application Server Administration Guide, available at the Sun Microsystems Documentation website.
To configure HTTP and HTTP threads, use the admin console and set up the following:
http-listener-1.Restart the server to make the configuration take effect.
Installation of the core code in general consists of copying a .jar or .tar archive file to the server, and then extracting the archive. The installation script creates or installs to the correct file structure. After installation, you can remove the original .jar or .tar archive file.
General steps to install the DVN software are described in the following topics:
Before you can install the DVN core code, you must download the download the latest
DVN-EAR.ear package. Go to the official DVN SourceForge.net project site and download the latest package.
Then, in a file browser, copy the files in <DVN download directory>/working_directory and paste them in <GlassFish install directory>/domains/domain1/config.
To install the DVN core code:
http://<hostname>:4848/), select the Applications menu Enterprise Applications option.DVN-EAR.ear to choose the file.referenceData.sql script.http://<hostname>/dvn.networkAdmin as both the user name and password.networkAdmin name on the top-right corner of the main menu, and then click Update Account.To change any other default settings (banner, footer, about page, and so on), or to create dataverses and start uploading studies and data files, refer to the user guides available at http://thedata.org/guides.
Before you can install the DVN core code, you must download the download the latest
DVN-DSB.rpm package. Go to the official DVN SourceForge.net project site and download the latest package.
You also can download the package from the HMDC web repository at http://porkchop.hmdc.harvard.edu/dvn-dsb/.
To install the DSB package bundle:
rpm –ivh DVN-DSB-1.1-16a.i386.rpm./usr/local/VDC./etc/httpd/conf.d/00-vdc.conf with the following line in it:Include /usr/local/VDC/etc/vdc.conf00-vdc.conf is included in the etc directory of the DVN distribution bundle.http://<hotname>:[port]/VDC/DSB/1.0/Diagnose.You can set up the following optional components to use in the DVN:
This material is not developed yet.
This capability is not yet packaged with the DVN core code. Check back after future releases to find out if it is part of the downloadable packages at that time.
Network Admins can use the Google Analytics tools to view DVN website usage statistics.
Note: It take about 24 hours for Google Analytics to validate tracking of your website after registration of the DVN with Google Analytics. Your data is not available until that validation takes place.
To enable the use of Google Analytics from the Network Options page:
http://www.google.com/analytics/indexu.html.Ddvn.googleanalytics.key assignment for the tracking code. See Configure JVM Options for details.This material is not developed yet.
Maintenance includes the following tasks:
Perform the following when needed:
<GlassFish directory>/domains/domain1/logs. The main log file is server.log.asadmin utility is located in <GlassFish directory>/bin. You can use this utility to perform the following:
bin/asadmin stop-domain domain1ulimit -n 32768
bin/asadmin start-domain domain1/etc/rc.d/init.d/glassfish, and then type the following:chmod +x /etc/rc.d/init.d/glassfish
chkconfig --add glassfishservice glassfish stop
service glassfish start /usr/local/glassfish, you must change the following line in the GlassFish script to the location in which you installed the application:ASADMIN=/usr/local/glassfish/bin/asadminCheck the following components regularly:
The DVN software does not provide automatic back ups of your application data in the database or of your files in the file system.
Plan to do regular back ups of all data and files, to ensure that users have reliable access to current data.
To upgrade the full DVN installation, you must do each of the following:
If you upgrade from an existing installation of the DVN core code to version 1.2 of the code, check the following GlassFish configuration file:
<glassfish directory>/config/asenv.conf
Ensure that the AS_JAVA setting contains the <JVM V1.6 (JDK 5) install directory>.
To upgrade the DVN core code:
DVN-EAR.ear and buildupdate.sql database script from SourceForge.net.DVN-EAR in the Action column on the right.VDCNet-EAR.ear file, and then click OK.buildupdate.sql file.buildupdate.sql in the query tool in the same way as referenceData.sql.If there were no changes to the database, you do not need to run the buildupdate.sql script.
Download the new DSB package RPM from SourceForge.net.
Then, follow the steps described in the section Install DSB Services.
Install new versions of GlassFish, PostgreSQL, and JVM applications in your production environment only after you test them for the DVN build you are running. Some DVN builds might require a new version of a dependent application.