Child pages
  • Grouper v2.3.0 upgrade from v2.2.2 on the demo server
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

We will be cloning and upgrading the grouper demo server WS, UI, and loader.  We want to keep the 2.2.2 version up there.

Tomcats for UI and WS

We have a bunch of tomcats, and will list the 2.2 tomcats and assign new ones

Tomcat nameGrouper VersionFunction
tomcat_d2.2.2UI
tomcat_i2.2.2WS
tomcat_f2.3.0UI
tomcat_g2.3.0WS

 

Migrate data to new database

Lets create the new schemas.  I use SqlYog for MySQL to create a schema, set the pass, and migrate data.  Note, using UTF-8 and bin collation

Copy the UI and WS

[appadmin@i2midev1 tomcat_f]$ rm -rf webapps/grouper_v1_6
[appadmin@i2midev1 tomcat_f]$ rm -rf logs/
Display all 108 possibilities? (y or n)
[appadmin@i2midev1 tomcat_f]$ rm -rf logs/*
[appadmin@i2midev1 tomcat_f]$ /sbin/service tomcat_f stop
Shutting down tomcat_f Tomcat services: 
Using CATALINA_BASE:   /opt/tomcats/tomcat_f
Using CATALINA_HOME:   /opt/tomcat6base
Using CATALINA_TMPDIR: /opt/tomcats/tomcat_f/temp
Using JRE_HOME:        /opt/javas/java_f
Using CLASSPATH:       /opt/tomcat6base/bin/bootstrap.jar
Waiting for exit...
[appadmin@i2midev1 tomcats]$ mv tomcat_f/webapps/grouper_v2_2 tomcat_f/webapps/grouper_v2_3
 
 
[appadmin@i2midev1 tomcat_g]$ /sbin/service tomcat_g stop
Shutting down tomcat_g Tomcat services: 
Using CATALINA_BASE:   /opt/tomcats/tomcat_g
Using CATALINA_HOME:   /opt/tomcat6base
Using CATALINA_TMPDIR: /opt/tomcats/tomcat_g/temp
Using JRE_HOME:        /opt/javas/java_g
Using CLASSPATH:       /opt/tomcat6base/bin/bootstrap.jar
Waiting for exit...
Waiting for exit...
Waiting for exit...
[appadmin@i2midev1 tomcat_g]$ rm -rf webapps/grouper-ws_v2_0_0*
[appadmin@i2midev1 tomcat_g]$ cp -R ../tomcat_i/webapps/grouper-ws_v2_2 webapps
[appadmin@i2midev1 tomcat_g]$ cp -R ../tomcat_i/clients .
[appadmin@i2midev1 tomcats]$ mv tomcat_g/webapps/grouper-ws_v2_2 tomcat_g/webapps/grouper-ws_v2_3
 
 
[appadmin@i2midev1 tomcats]$ cp -R tomcat_d_gsh tomcat_f_gsh
[appadmin@i2midev1 tomcats]$ mv tomcat_f_gsh/webapps/grouper_v2_2 tomcat_f_gsh/webapps/grouper_v2_3

Edit the apache config

ProxyPass /grouper_v2_3/ ajp://localhost:8131/grouper_v2_3/
 
ProxyPass /grouper-ws_v2_3/ ajp://localhost:8141/grouper-ws_v2_3/
 
#match anything that is not grouperExternal
<LocationMatch ^/grouper_v2_3[^/]*/(?!grouperExternal/).*>
  AuthType shibboleth
  ShibRequestSetting requireSession 1
  require valid-user
</LocationMatch>

#match anything that is grouperExternal, note, this could be a different authn system
<LocationMatch ^/grouper_v2_3[^/]*/grouperExternal/.*>
  AuthType shibboleth
  ShibRequestSetting requireSession 1
  require valid-user
</LocationMatch>
 
<LocationMatch ^/grouper-ws_v2_3.*>
  AuthType Basic
  AuthName "By Invitation Only"
  AuthUserFile /etc/httpd/conf.d/users.pass
  Require valid-user
</LocationMatch>

 

Point the config files to point to new database:

  • edit the three grouper.hibernate.properties files
  • edit the UI URL 
  • change the log4j.properties 

 

  • No labels