Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

"TypeError: this.headerButtons is undefined" msg a

I followed the instructions for "Upgrading from 3.0 to 3.0.1 using the upgrade script" (http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/index.jsp?topic=/com.ibm.jazz.install.doc/topics/t_upgrade_rtc3.html) which seemed to go uneventfully enough.

However, I must have missed a step, because after I stopped JTS and CCM, ran the repotools scripts to upgrade JTS and CCM, removed the temporary files and directories in <WASInstallDir>/profiles/AppSrv01/temp/<machine_name>/server1 and <WASInstallDir>/profiles/AppSrv01/temp/wscache, and restarted JTS and CCM, I got a "TypeError: this.headerButtons is undefined" message when I tried to connect to https://<machine_name>:9443/jts/admin

I see the following in my jts.log:

2011-06-17 17:18:44,531 ERROR ComponentVersionMismatch -
CRJAZ1042I The component has a server version mismatch between the installed code and the database.
Package URI == com.ibm.team.repository
Installed Version == 21
Database Version == 24

Any idea what I missed (or maybe did out of order)?

0 votes



4 answers

Permanent link
When you ran with the wrong value of JAZZ_HOME (pointing to your 3.0 installation), I believe that caused the servers to provision from the 3.0 update sites. Just changing the value of JAZZ_HOME and restarting the servers doesn't cause them to re-provision; they only do that once.

You can try forcing the JTS, CCM, and QM applications to re-provision. To do that, start the server, then visit each of these URLs in a browser (logging in as the administrator):

https://your-server:9443/jts/admin/cmd/requestReset
https://your-server:9443/ccm/admin/cmd/requestReset
https://your-server:9443/qm/admin/cmd/requestReset

Each should result in a message about the application reloading on the next startup. Shut down WAS, start it up again, then try visiting /jts/admin and see if the 'version mismatch' error has gone away.

1 vote

Comments

Great !. This should be included in CLM upgrade procedure. It's quite easy to go unnoticed , especially JAZZ_HOME property and you ran into all sorts of problem. 



Permanent link
I should add that RTC thinks the JTS and CCM upgrades finished successfully:

=============================================

=== JTS Upgrade from 3.0 to 3.0.1 ===
=============================================


The upgrade was already done and finished successfully...
Do you want to restart a new one from a specific step?


and

=============================================

=== CCM Upgrade from 3.0 to 3.0.1 ===
=============================================


The upgrade was already done and finished successfully...
Do you want to restart a new one from a specific step?

0 votes


Permanent link
I should add that RTC thinks the JTS and CCM upgrades finished successfully


I uninstalled the applications from WAS, removed whatever temporary files and directories I could find with either "jts" or "ccm" or "clmhelp" in their names, and reinstalled the applications to WAS. I explicitly made sure that I was selecting for installation the .war files in the /opt/IBM/JazzTeamServer_1 directory tree (i.e. the new package group that was created when I installed 3.0.1) and I explicitly made sure that the teamserver.properties files and the .ini files in the provision_profiles directories referenced the /opt/IBM/JazzTeamServer_1 directory tree.

I again got the server version mismatch error in the jts.log, but I also noticed (because this time I was looking for it) the following:

2011-06-20 16:30:21,167 INFO uration.OverridablePropertyFileServerConfiguration - CRJAZ1363I Loading the configuration from "file:///opt/IBM/JazzTeamServer/server/conf/jts/teamserver.properties".

i.e. the old directory tree, not the new one.

So, I changed the values for JAZZ_HOME and log4j.configuration in Application servers > server1 > Process definition > Java Virtual Machine > Custom properties, stopped/started server1 (via the scripts in /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin), and now my jts.log file says:

2011-06-20 17:11:56,088 INFO uration.OverridablePropertyFileServerConfiguration - CRJAZ1363I Loading the configuration from "file:///opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver.properties".
2011-06-20 17:11:57,486 INFO pository.service.internal.ServerDescriptionService - CRJAZ1779I This server is configured as a JTS.
2011-06-20 17:11:58,210 INFO .repository.service.internal.rdb.ConnectionFactory - CRJAZ1365I The server is attempting to connect to the following database: "//localhost:60000/JTS:user=xxxxxxxx;password=xxxxxxxx;"
2011-06-20 17:11:59,072 INFO .repository.service.internal.rdb.ConnectionFactory - CRJAZ1364I The connection to the following database was successful:
Db Product Name: DB2/AIX64
Db Product Version: SQL09057
Db URL: jdbc:db2://localhost:60000/JTS:user=xxxxxxxx;password=xxxxxxxx;
Jdbc Driver Name: IBM DB2 JDBC Universal Driver Architecture
Jdbc Driver Version: 3.57.82
2011-06-20 17:12:00,576 INFO com.ibm.team.jfs
- CRJZS5450I Text live index location: /opt/IBM/JazzTeamServer_1/server/conf/jts/indices/jfs-textindex
2011-06-20 17:12:00,577 INFO com.ibm.team.jfs
- CRJZS5449I Text history index location: /opt/IBM/JazzTeamServer_1/server/conf/jts/indices/jfs-texthistory
2011-06-20 17:12:01,676 ERROR ComponentVersionMismatch - CRJAZ1042I The component has a server version mismatch between the installed code and the database.
Package URI == com.ibm.team.repository
Installed Version == 21
Database Version == 24
2011-06-20 17:12:01,749 WARN ComponentVersionMismatch - CRJAZ1041I The component is installed in the database but is not present in the server: com.ibm.team.diagnostictests
2011-06-20 17:12:01,766 WARN ComponentVersionMismatch - CRJAZ1041I The component is installed in the database but is not present in the server: com.ibm.team.repository.discovery
2011-06-20 17:12:01,790 WARN ComponentVersionMismatch - CRJAZ1041I The component is installed in the database but is not present in the server: com.ibm.team.applicationmigration
2011-06-20 17:12:01,809 ERROR .repository.service.internal.RepositoryItemService - CRJAZ1049I A runtime exception occurred during repository startup.
java.lang.RuntimeException: CRJAZ1050I There is a version mismatch between the installed code and the database. See the product documentation for migrating the Jazz repository.
2011-06-20 17:12:01,869 ERROR t.internal.registry.AbstractActivationManagerOwner - CRJAZ1093I The following service class was not activated: "com.ibm.team.repository.service.internal.RepositoryItemService"
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1092I The service class "com.ibm.team.repository.service.internal.RepositoryItemService" failed during activation.
Caused by:
java.lang.RuntimeException: CRJAZ1050I There is a version mismatch between the installed code and the database. See the product documentation for migrating the
Jazz repository.
...181 lines of Java barf...
... 85 more
2011-06-20 17:12:01,935 INFO com.ibm.team.jfs
- CRJZS5452I RDF live index location: /opt/IBM/JazzTeamServer_1/server/conf/jts/indices/jfs-rdfindex
2011-06-20 17:12:01,936 INFO com.ibm.team.jfs
- CRJZS5451I RDF history index location: /opt/IBM/JazzTeamServer_1/server/conf/jts/indices/jfs-rdfhistory
2011-06-20 17:12:01,951 INFO team.fulltext.service.internal.FullTextServiceImpl - CRJAZ8192I: Fulltext Index Location: /opt/IBM/JazzTeamServer_1/server/conf/jts/indices/workitemindex/fulltext_index
2011-06-20 17:12:04,259 WARN net.jazz.web.app.internal.about.ConsolidatedAbout - Unable to resynconize about services: Unabl
e to query JTS discovery :https://houaxpcm01:9443/jts/discovery?type=http%3A%2F%2Fjazz.net%2Fxmlns%2Fprod%2Fjazz%2Fdiscovery%2F1.0%2FApplication&scope=includeExternal: HTTP status:503:Service Unavailable


Not sure what might have gone wrong... my repotools-jts_migration_jts_updateConfigurationFiles.log file says:

2011-06-16 14:32:36,955 Repo Tools
2011-06-16 14:32:36,956 java.version=1.5.0
2011-06-16 14:32:36,956 java.runtime.version=pap32dev-20100813 (SR12 FP1 )
2011-06-16 14:32:36,964 Provisioning using "./conf/jts/provision_profiles".
2011-06-16 14:32:57,770 repotools-jts -migration_jts_updateConfigurationFiles jtsContextRoot=jts newJTSHome=/opt/IBM/JazzTeamServer_1/server/conf oldJTSHome=/op
t/IBM/JazzTeamServer/server/conf updateTomcatFiles=yes
2011-06-16 14:32:57,771 Jazz Foundation - Core Libraries, Version 3.0.1 (RJF-I
20110602-0017)

2011-06-16 14:32:57,817 CRJAZ1363I Loading the configuration from "file:///opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver.properties".
2011-06-16 14:32:57,819 Validating JTS configuration files...
2011-06-16 14:32:57,827 Validating Tomcat configuration files...
2011-06-16 14:32:57,828
2011-06-16 14:32:57,828 Merging JTS configuration files...
2011-06-16 14:32:57,828 Backing up the JTS teamserver properties "/opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver.properties" to "/opt/IBM/JazzTeamServer_1
/server/conf/jts/teamserver-1308252777828backup.properties"...
2011-06-16 14:32:57,843 Backup file "/opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver-1308252777828backup.properties" created.
2011-06-16 14:32:57,843
2011-06-16 14:32:57,843 Updating teamserver properties file "/opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver.properties" using the properties defined in "/opt/IBM/JazzTeamServer/server/conf/jts/teamserver.properties".
2011-06-16 14:32:57,844 - Setting new value for property "com.ibm.team.repository.db.jdbc.password". Current Value = "...cleartext...", New Value = "".
2011-06-16 14:32:57,845 - Adding property "com.ibm.team.repository.ldap.findUsersByUserIdQuery".
2011-06-16 14:32:57,845 - Adding property "com.ibm.team.repository.db.repoLockId".
2011-06-16 14:32:57,845 - Adding property "com.ibm.team.repository.ws.allow.admin.access".
2011-06-16 14:32:57,845 - Adding property "com.ibm.team.repository.ldap.findGroupsForUserQuery".
2011-06-16 14:32:57,938 Updated JTS teamserver.properties file "/opt/IBM/JazzTeamServer_1/server/conf/jts/teamserver.properties".
2011-06-16 14:32:57,938
2011-06-16 14:32:57,938 Backing up the Tomcat users xml file "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/tomcat-users.xml" to "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/tomcat-users-1308252777938backup.xml"...
2011-06-16 14:32:57,942 Backup Tomcat users xml file "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/tomcat-users-1308252777938backup.xml" created.
2011-06-16 14:32:57,943
2011-06-16 14:32:57,943 Copying Tomcat users xml file "/opt/IBM/JazzTeamServer/server/tomcat/conf/tomcat-users.xml"...
2011-06-16 14:32:57,954 The Tomcat users xml file was copied successfully. The copied file is present at "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/tomcat-users.xml".
2011-06-16 14:32:57,954
2011-06-16 14:32:57,954 Backing up Tomcat server xml file "/opt/IBM/JazzTeamServ
er_1/server/tomcat/conf/server.xml"...
2011-06-16 14:32:57,960 Backup Tomcat server xml file "/opt/IBM/JazzTeamServer_1
/server/tomcat/conf/server-1308252777954backup.xml" created.
2011-06-16 14:32:57,960
2011-06-16 14:32:57,960 Copying Tomcat server xml file "/opt/IBM/JazzTeamServer/
server/tomcat/conf/server.xml"...
2011-06-16 14:32:57,979 The Tomcat server xml file was copied successfully. The copied file is present at "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/server.xml".
2011-06-16 14:32:57,979
2011-06-16 14:32:57,979 Updating Tomcat server xml file "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/server.xml"...
2011-06-16 14:32:58,169 Updated Tomcat server xml file "/opt/IBM/JazzTeamServer_1/server/tomcat/conf/server.xml".
2011-06-16 14:32:58,169
2011-06-16 14:32:58,169 CRJAZ2047I The web.xml file "/opt/IBM/JazzTeamServer/server/tomcat/webapps/jts/WEB-INF/web.xml" does not exist. No changes will be made
to the following war files : "jts.war".
2011-06-16 14:32:58,170
2011-06-16 14:32:58,170 The configuration files are merged successfully.

0 votes


Permanent link
...You can try forcing the JTS, CCM, and QM applications to re-provision...


That was it... you're two for two :-)

JTS and CCM re-provisioned successfully. I hadn't yet installed QM as a WAS application (so no need to re-provision) -- I wanted first to get what was there before back up and running.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 17 '11, 6:37 p.m.

Question was seen: 7,041 times

Last updated: Jun 10 '13, 11:05 a.m.

Confirmation Cancel Confirm