jts_upgrade.sh failing [step 1]
CRJZS5650I Indices directory is /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indicesCRJZS6122I The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices must be updated to correct a version mismatch. The update will occur automatically.CRJZS6120I The server is collecting data to update the indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices.CRJZS6121I The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices are being updated.CRJZS6043E The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices could not be merged. Stop the server and either restore a backup of the indexes and rerun the "repotools-jts -addTables" command, or recover the correct index by running the "repotools-jts -reindex all" command./app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices/_ce2ZIZQJEeOFaqgcFa_Oow/jfs-textindex/_2.fnm (No such file or directory) . See the log file "/app/rtc/IBM/JazzTeamServer502/server/repotools-jts_addTables.log" for details.Running post addTables for "Full Text Migration Handler"...Running post addTables for "com.ibm.team.jfs.indexes"...Running post addTables for "Full Text Migration Handler"...CRJAZ0577E The following SQL query did not execute properly on the server:CREATE UNIQUE INDEX JTS_OWNER.DSCVRDSCVRSRVCCNTRBTNRSRCPPNMD ON JTS_OWNER.DISCOVERY_SERVICE_CNTRBTN_RSRC(APP_NAME)The user "ADMIN" has logged out of the database "xxxxxx".CRJAZ1425E The database could not create indexes for the DISCOVERY_SERVICE_CNTRBTN_RSRC table.CRJAZ1791E The migration completed with errors. The imported database is unstable and should not be used without further analysis.
2015-06-01 17:55:51,887 Running post addTables for "com.ibm.team.jfs.indexes"...
2015-06-01 17:55:51,888 CRJZS5650I Indices directory is /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices
2015-06-01 17:55:51,891 CRJZS6122I The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices must be updated to correct a version mismatch. The update will occur automatically.
2015-06-01 17:55:51,891 CRJZS6120I The server is collecting data to update the indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices.
2015-06-01 17:55:51,955 CRJZS6121I The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices are being updated.
2015-06-01 17:55:52,999 CRJZS6043E The indexes in /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices could not be merged. Stop the server and either restore a backup of the indexes and rerun the "repotools-jts -addTables" command, or recover the correct index by running the "repotools-jts -reindex all" command.
com.ibm.team.repository.common.TeamRepositoryException: /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices/_ce2ZIZQJEeOFaqgcFa_Oow/jfs-textindex/_2.fnm (No such file or directory)
at
com.ibm.team.jfs.indexing.service.internal.MergeIndexService.updateVersion(MergeIndexService.java:971)
at
com.ibm.team.jfs.indexing.service.internal.MergeIndexService.updateVersion(MergeIndexService.java:937)
at
com.ibm.team.jfs.indexing.service.internal.MergeIndexService.mergeIfNeeded(MergeIndexService.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
(...)
Caused by: java.io.FileNotFoundException: /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices/_ce2ZIZQJEeOFaqgcFa_Oow/jfs-textindex/_2.fnm (No such file or directory)
(...)
2015-06-01 17:55:53,004 /app/rtc/IBM/JazzTeamServer502/server/conf/jts/indices/_ce2ZIZQJEeOFaqgcFa_Oow/jfs-textindex/_2.fnm (No such file or directory)
2015-06-01 17:55:53,004 Post addTables for com.ibm.team.jfs.indexes took 1117 ms.
2015-06-01 17:55:53,004 Running post addTables for "Full Text Migration Handler"...
2015-06-01 17:55:53,005 Post addTables for Full Text Migration Handler took 1 ms.
2015-06-01 17:55:53,005 Running post addTables for "com.ibm.team.jfs.indexes"...
2015-06-01 17:55:53,006 Post addTables for com.ibm.team.jfs.indexes took 1 ms.
2015-06-01 17:55:53,006 Running post addTables for "Full Text Migration Handler"...
2015-06-01 17:55:53,007 Post addTables for Full Text Migration Handler took 1 ms.
2015-06-01 17:55:53,232 CRJAZ0577E The following SQL query did not execute properly on the server:
CREATE UNIQUE INDEX JTS_OWNER.DSCVRDSCVRSRVCCNTRBTNRSRCPPNMD ON JTS_OWNER.DISCOVERY_SERVICE_CNTRBTN_RSRC(APP_NAME)
java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
2015-06-01 17:55:53,235 The user "ADMIN" has logged out of the database "xxxxx".
2015-06-01 17:55:53,235 CRJAZ1425E The database could not create indexes for the DISCOVERY_SERVICE_CNTRBTN_RSRC table.
2015-06-01 17:55:53,235 CRJAZ1425E The database could not create indexes for the DISCOVERY_SERVICE_CNTRBTN_RSRC table.
com.ibm.team.repository.common.TeamRepositoryException: CRJAZ1425E The database could not create indexes for the DISCOVERY_SERVICE_CNTRBTN_RSRC table.
Caused by: com.ibm.team.repository.service.internal.db.util.JdbcDB$2: CRJAZ0577E The following SQL query did not execute properly on the server:
CREATE UNIQUE INDEX JTS_OWNER.DSCVRDSCVRSRVCCNTRBTNRSRCPPNMD ON JTS_OWNER.DISCOVERY_SERVICE_CNTRBTN_RSRC(APP_NAME)
at com.ibm.team.repository.service.internal.db.util.JdbcDB.executeQuery(JdbcDB.java:239)
at com.ibm.team.repository.service.internal.db.util.JdbcDB.executeQuery(JdbcDB.java:114)
at com.ibm.team.repository.service.internal.db.util.JdbcDB.executeQueryOn(JdbcDB.java:103)
at com.ibm.team.repository.service.internal.db.util.JdbcDBBuilder.executeStatement(JdbcDBBuilder.java:151)
at com.ibm.team.repository.service.internal.db.util.JdbcDBBuilder.executeStatements(JdbcDBBuilder.java:275)
at com.ibm.team.repository.service.internal.db.util.JdbcDBBuilder.executeStatements(JdbcDBBuilder.java:256)
at com.ibm.team.repository.service.internal.db.util.JdbcDBBuilder.createIndicesUsingStatements(JdbcDBBuilder.java:240)
at com.ibm.team.repository.service.internal.db.util.JdbcDBBuilder.createIndicesForTable(JdbcDBBuilder.java:210)
at com.ibm.team.repository.service.internal.rdb.DatabaseMaintenanceService.addIndexForSingleTable(DatabaseMaintenanceService.java:2005)
... 54 more
Caused by: java.sql.SQLException: ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
... 62 more
2015-06-01 17:55:53,237 CRJAZ1791E The migration completed with errors. The imported database is unstable and should not be used without further analysis.
4 answers
If the same error reported, you can try if the solution in https://jazz.net/forum/questions/91541/rtc-database-reindexing-fails-and-the-database-is-unusable works for you.
The error message says that duplicate values were found in column "APP_NAME" of table DISCOVERY.SERVICE_CONTRIBUTION_RESOURCE (SERVICE_CNTRBTN_RSRC) when the script tried to create a unique index on it. This column should have values such as "/ccm", "/qm" and/or "/rm", and etc. I can't imagine what duplicate values they will be.
Select count(*),APP_NAME
From JTS_OWNER.DISCOVERY_SERVICE_CNTRBTN_RSRC
Havind count(*) > 1
Group by APP_NAME
COUNT(*) APP_NAME
3 svuxdrtc1.gvt.net.br:9443/jts