Skip to Content.
Sympa Menu

grouper-users - [grouper-users] upgrading to 2.4

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] upgrading to 2.4


Chronological Thread 
  • From: Ben Beecher <>
  • To: " Mailing List" <>
  • Subject: [grouper-users] upgrading to 2.4
  • Date: Tue, 19 Mar 2019 16:00:14 -0400

(1) I am trying to upgrade from version 2.3 to version 2.4. The Grouper upgrader wants to upgrade in place (not into a new directory) so do I need to rename the directory after the upgrade is complete? The current directory name is
/var/grouper/installGrouper2.3

and I think the new name should be
/var/grouper/installGrouper2.4


(2) I get an error during the upgrade process. My server is on a secure network so it can't download patch files from the internet. I downloaded the tar file which contains all patches

I uncompressed and extracted the contents to this directory
/var/grouper/grouper.all-2.4.0

I created a properties file that points to the new directory

$ cat /var/grouper/installGrouper2.3/grouper.installer.properties 
download.server.url = "/var/grouper/grouper.all-2.4.0

# default version to install
grouper.version = 2.4.0

I ran the installer with the "upgrade" option but it gets an error when it tries to access one of the 2.3 patch files. It's looking for a 2.3 patch file in the 2.4 directory that was recently downloaded.

##################################
Gather upgrade information

Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/var/grouper/installGrouper2.3/tarballs]: /tmp/grouper/patches
You need to revert all patches to upgrade

################ Checking patch grouper_v2_3_0_api_patch_88
Patch: grouper_v2_3_0_api_patch_88: was applied on: 2018/02/08 16:05:53

Error connecting to URL: /var/grouper/grouper.all-2.4.0/release/2.3.0/patches/grouper_v2_3_0_api_patch_88.tar.gz
Exception in thread "main" java.lang.RuntimeException: Error connecting to URL: /var/grouper/grouper.all-2.4.0/release/2.3.0/patches/grouper_v2_3_0_api_patch_88.tar.gz,

I have attached the session log to this message.

Ben

grouperqatapp01: export
CATALINA_HOME=/var/grouper/installGrouper2.3/apache-tomcat-6.0.35
grouperqatapp01: export
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-1.el6_10.x86_64
grouperqatapp01: cd /var/grouper/installGrouper2.3
grouperqatapp01: java -cp .:grouperInstaller.jar
edu.internet2.middleware.grouperInstaller.GrouperInstaller
Do you want to 'install' a new installation of grouper, 'upgrade' an existing
installation,
'patch' an existing installation, 'admin' utilities, or 'createPatch' for
Grouper developers
(enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for
the default) [install]: upgrade
You should backup your files and database before you start. Press <enter> to
continue.

##################################
Gather upgrade information

Enter in a Grouper temp directory to download tarballs (note: better if no
spaces or special chars) [/var/grouper/installGrouper2.3/tarballs]:
/tmp/grouper/patches
What do you want to upgrade? api, ui, ws, pspng, or psp? [API]:
Are there any running processes using this installation? tomcats? loader?
psp? etc? (t|f)? [f]:

Where is the grouper API installed?
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0
Upgrading to grouper API version: 2.4.0
Do you want to fix the patch index file (download all patches and see if they
are installed?) (not recommended) (t|f)? [f]:


##################################
Download and build grouper packages

Copying local file:
/var/grouper/grouper.all-2.4.0/release/2.4.0/grouper.clientBinary-2.4.0.tar.gz
to file: /tmp/grouper/patches/grouper.clientBinary-2.4.0.tar.gz
Unzipping: /tmp/grouper/patches/grouper.clientBinary-2.4.0.tar.gz
Expanding: /tmp/grouper/patches/grouper.clientBinary-2.4.0.tar to
/tmp/grouper/patches/grouper.clientBinary-2.4.0
Copying local file:
/var/grouper/grouper.all-2.4.0/release/2.4.0/grouper.apiBinary-2.4.0.tar.gz
to file: /tmp/grouper/patches/grouper.apiBinary-2.4.0.tar.gz
Unzipping: /tmp/grouper/patches/grouper.apiBinary-2.4.0.tar.gz
Expanding: /tmp/grouper/patches/grouper.apiBinary-2.4.0.tar to
/tmp/grouper/patches/grouper.apiBinary-2.4.0
Do you want to set gsh script to executable (t|f)? [t]: f
End download and build grouper packages


##################################
Do you want to set existing gsh script to executable (t|f)? [t]: f
Is it ok to run a script that copies change log temp records to the change
log (recommended) (t|f)? [t]:

##################################
Copying records from change log temp to change log with command:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/bin/gsh.sh
/tmp/grouper/patches/grouper.apiBinary-2.4.0/gshChangeLogTempToChangeLog.gsh

...
stderr: Grouper warning: jarfile mismatch, expecting name:
'commons-codec.jar' size: LinkedHashSet size: 1: [0]: 46725
manifest version: 1.3. However the jar detected is:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/lib/custom/commons-codec-1.2.jar,
name: commons-codec-1.2.jar size: 30085 manifest version: 1.2
Grouper warning: jarfile mismatch, expecting name: 'commons-logging.jar'
size: LinkedHashSet size: 1: [0]: 131078
manifest version: 1.1.1. However the jar detected is:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/lib/custom/commons-logging-1.2.jar,
name: commons-logging-1.2.jar size: 61829 manifest version: 1.2
Grouper warning: jarfile mismatch, expecting name: 'jta.jar' size:
LinkedHashSet size: 1: [0]: 8374
manifest version: 1.0.1B. However the jar detected is:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/lib/custom/jta-1.1.jar,
name: jta-1.1.jar size: 15071 manifest version: null

stdout: Using GROUPER_HOME:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/bin/..
Using GROUPER_CONF:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/bin/../conf
Using JAVA:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-1.el6_10.x86_64/bin/java
using MEMORY: 128m-2g
Grouper starting up: version: 2.3.0, build date: null, env: test
grouper.properties read from:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/grouper.properties
Grouper current directory is:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/bin
log4j.properties read from:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/log4j.properties
Grouper logs are not using log4j: class
org.apache.commons.logging.impl.SLF4JLocationAwareLog
grouper.hibernate.properties:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/grouper.hibernate.properties
grouper.hibernate.properties:
grouper@jdbc:oracle:thin:@grouperqatdb01.cc.columbia.edu:1527:grp1q
subject.properties read from:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/subject.properties
sources.xml read from:
/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/sources.xml
sources configured in: sources.xml
sources.xml jdbc source id: idm:
grouper@jdbc:oracle:thin:@//idmsysdevdb01.cc.columbia.edu:1527/idmdev1.cc.columbia.edu
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id: externalUsers:
GrouperJdbcConnectionProvider
Type help() for instructions
Groovy Shell (2.5.0-beta-2, JVM: 1.8.0_201)
Type ':help' or ':h' for help.
-------------------------------------------------------------------------------
groovy:000> :load
'/var/grouper/installGrouper2.3/grouper.apiBinary-2.3.0/conf/groovysh.profile'
groovy:000> :gshFileLoad
/tmp/grouper/patches/grouper.apiBinary-2.4.0/gshChangeLogTempToChangeLog.gsh
===> 9cf9e98d598549618d1522d1fcfb2163,'GrouperSystem','application'
===> loader ran successfully: Ran the changeLogTempToChangeLog daemon
groovy:000> :exit

You need to revert all patches to upgrade

################ Checking patch grouper_v2_3_0_api_patch_88
Patch: grouper_v2_3_0_api_patch_88: was applied on: 2018/02/08 16:05:53

Error connecting to URL:
/var/grouper/grouper.all-2.4.0/release/2.3.0/patches/grouper_v2_3_0_api_patch_88.tar.gz
Exception in thread "main" java.lang.RuntimeException: Error connecting to
URL:
/var/grouper/grouper.all-2.4.0/release/2.3.0/patches/grouper_v2_3_0_api_patch_88.tar.gz,
java.lang.RuntimeException: caller stack
at
edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.threadRunWithStatusDots(GrouperInstallerUtils.java:8408)
at
edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.threadRunWithStatusDots(GrouperInstallerUtils.java:8330)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadFile(GrouperInstaller.java:308)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadAndUnzipPatch(GrouperInstaller.java:8298)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.revertPatches(GrouperInstaller.java:7268)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.patchRevertApi(GrouperInstaller.java:8576)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.upgradeApi(GrouperInstaller.java:5254)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$3900(GrouperInstaller.java:84)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$AppToUpgrade$2.upgradeApp(GrouperInstaller.java:6739)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainUpgradeLogic(GrouperInstaller.java:4720)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$600(GrouperInstaller.java:84)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMainFunction$3.logic(GrouperInstaller.java:1516)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperInstaller.java:1728)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstaller.java:561)

at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadFileHelper(GrouperInstaller.java:422)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$000(GrouperInstaller.java:84)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller$1.run(GrouperInstaller.java:304)
at
edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils$1.run(GrouperInstallerUtils.java:8354)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: host parameter is null
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:221)
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:170)
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(SimpleHttpConnectionManager.java:190)
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:412)
at
edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:338)
at
edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadFileHelper(GrouperInstaller.java:381)
... 4 more
grouperqatapp01: exit



Archive powered by MHonArc 2.6.19.

Top of Page