Changes between Version 5 and Version 6 of FMEInstall


Ignore:
Timestamp:
03/02/12 11:48:23 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FMEInstall

    v5 v6  
    11== Weekly Rebuild == 
    22 
    3 There is a automatic weekly rebuild that runs as a cron job. Sometimes this will fail. If you ever need to run it manually, log into deltoid and do: 
     3There is a automatic weekly rebuild of the FME that runs as a cron job. If the FMA database gets a cycle in it, it will completely fail to build. You can tell by looking on deltoid in the log file `/var/log/tomcat6/catalina.out`. The FME takes about 11 minutes to build its tree whenever Tomcat starts, such as after a server reboot or FME rebuild. If you ever need to run it manually, log into deltoid and do: 
    44{{{ 
    55su - fmeuser 
     6# you may need to edit the script to choose a different FMA db dump file 
    67./rebuild-fme.sh 
    78}}} 
    89 
    9 To get the FME running: 
    10  
    11 The FME takes about 11 minutes to build its tree whenever Tomcat starts, such as after a server reboot or FME rebuild. 
    12 If the FMA database gets a cycle in it, it will completely fail to build. You can tell by looking in the log file  
    13 `/home/fmeuser/catalina_base/logs/catalina.out`. A working rebuild looks something like this: 
     10A working rebuild looks something like this in `catalina.out`: 
    1411{{{ 
    1512Tue Oct 11 15:04:50 PDT 2011 
     
    7673 
    7774== Tomcat == 
    78 The FME requires a specific configuration of Tomcat4 with a custom catalina.policy and server.xml. The easiest way to achieve this is with a catalina_base directory, which is in SubVersion source:fme/trunk 
    79 {{{ 
    80 adduser fmeuser 
    81 su - fmeuser 
    82 svn co svn+ssh://joshuadf@svn.biostr.washington.edu/src/fme 
    83 mv fme fmesrc 
    84 cd fmesrc/trunk 
    85 cp -r catalina_base /home/fmeuser/ 
    86 cp rebuild-fme.sh /home/fmeuser/ 
    87 cp tomcat4.conf /home/fmeuser/ 
    88 ant war 
    89 cp FME.war /home/fmeuser/catalina_base/webapps 
    9075 
    91 # install tomcat4, check http://tomcat.apache.org/download-41.cgi for latest 
    92 cd /home/fmeuser/ 
    93 wget http://apache.mirrors.pair.com/tomcat/tomcat-4/v4.1.31/bin/jakarta-tomcat-4.1.31.tar.gz 
    94 tar zxvf jakarta-tomcat-4.1.31.tar.gz 
    95 rm -f jakarta-tomcat-4.1.31.tar.gz 
    96 ln -s jakarta-tomcat-4.1.31 tomcat4 
    97 # OK, ready to build the FME 
    98 /home/fmeuser/rebuild-fme.sh 
    99 }}} 
    100  
    101 == Startup script, cron, and Apache == 
    102  
    103  * The fme-tomcat4 script uses `/home/fmeuser/tomcat4.conf` to start the FME on boot 
     76Due to the protege jar, the FME requires the Java Security Manager with a custom catalina.policy : 
    10477 
    10578{{{ 
    106 cp /home/fmeuser/fmesrc/fme-tomcat4 /etc/init.d 
    107 chkconfig --add fme-tomcat4 
    108 chkconfig fme-tomcat4 on 
     79rsync -az /etc/tomcat6/catalina.policy /etc/tomcat6/catalina.policy.orig 
     80cat <<EOF >> /etc/tomcat6/catalina.policy  
    10981 
    110 cat >> /etc/cron.d/fme-rebuild <<EOF 
    111 MAILTO=admin@sig.biostr.washington.edu 
    112 # rebuild the FME 
    113 00 00 * * Sun   fmeuser /home/fmeuser/rebuild-fme.sh 
     82grant codeBase "file:\${catalina.home}/webapps/FME/WEB-INF/-" { 
     83   permission  java.lang.RuntimePermission "*", "read"; 
     84   permission  java.util.PropertyPermission "*", "read"; 
     85   permission  java.util.logging.LoggingPermission "control", ""; 
     86}; 
     87EOF 
     88 
     89rsync -az /etc/sysconfig/tomcat6 /etc/sysconfig/tomcat6.orig 
     90cat <<EOF > /etc/sysconfig/tomcat6 
     91SECURITY_MANAGER="true" 
     92CATALINA_OPTS=-Djava.security.debug=failure 
    11493EOF 
    11594}}} 
    11695 
    117 I also added this to `/etc/httpd/conf.d/sig-local.conf` so apache will redirect requests: 
    11896 
    119 `RedirectMatch ^/(FME/?)?(.*)$ http://fme.biostr.washington.edu:8080/FME/$2` 
     97