Child pages
  • Grouper v2.3.0 upgrade from v2.2.2 on the demo server

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.  I exported a script and imported but the views werent there so I ran

Code Block
./gsh -registry -deep -runscript

 

Copy the UI and WS

Code Block
[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

...

  • change morphString.properties, encrypt new passes in external files
  • edit the three grouper.hibernate.properties files
  • edit grouper.properties (ui url and email pass)
  • change the log4j.properties 
  • copy the v2_2 init.d scripts and chkconfig it so its a service and starts at startup

Bring up the UI/WS/loader.  Note it will be pointing to the new database, new tomcat, but with 2.2.2 code and schema.  Try it out

UI: https://grouperdemo.internet2.edu/grouper_v2_3/

WS: https://grouperdemo.internet2.edu/grouper-ws_v2_3/tierApiAuthz/v1/Groups/name:test:testGroup/Members/id:test?indent=true

loader: