Failed to update LPA sample templates after upgrade ( 5.0.1 to 6.0.2)
Failed to update LPA sample templates after upgrade ( 5.0.1 to 6.0.2)
Failed to update LPA sample templates. This can happen if LPA is not configured correctly. You can ignore upgrading the
LPA application by rerunning the "jts_upgrade" script with the "ignoreLPA" parameter if you do not want to upgrade LPA.
Failed to update LPA sample templates. This can happen if LPA is not configured correctly. You can ignore upgrading the
LPA application by rerunning the "jts_upgrade" script with the "ignoreLPA" parameter if you do not want to upgrade LPA.
Accepted answer
Woarkaround:
1) Go to Lifecycle Project Administration - Templates
2) Export the templates ( which is causing issue) and take backup.
3) Delete those templates after they are exported
4) Deploy Predefined Templates
5) When finished go to menu SAMPL to see that the SAMPL
templates are available
If you are upgrading to 6.0.2, Apply latest iFix002 and above it will help.
1) Go to Lifecycle Project Administration - Templates
2) Export the templates ( which is causing issue) and take backup.
3) Delete those templates after they are exported
4) Deploy Predefined Templates
5) When finished go to menu SAMPL to see that the SAMPL
templates are available
If you are upgrading to 6.0.2, Apply latest iFix002 and above it will help.
5 other answers
I copied iFix002 into the patch folder, ran repotools-jts -clean, then ran the script again beginning at step 4 and it worked!
We ran into the same issue migrating from v5.0.2 to v6.0.2. We already deployed last available patch for v6.0.2 (i.e., iFix020 which should include iFix002 itself) before start the migration scripts.
Do we have simply to run repotools-jts -clean to fix that?
Workaround at https://jazz.net/forum/questions/222695/failed-to-update-lpa-sample-templates-after-upgrade-501-to-602/222696 refers to Jazz server at v6.0.2 or v5.0.2?
Thanks in advance.
Cheers.
According to https://www-01.ibm.com/support/docview.wss?uid=swg1PI62336, there is a woarkaround to follow:
Work around:1) Go to Lifecycle Project Administration - Templates2) Export the following templates[...]3) Delete those templates after they are exported4) Deploy Predefined Templates5) When finished go to menu SAMPL to see that the SAMPL templates are available
Skipping 2-3) as we do not have any template.
Executing 4) we get new exception:
2019-04-18 16:14:21,730 [http-bio-443-exec-48 @@ 16:14 USER <jts.lpa.templates/Deploy Predefined Templates@4eeb9d19-359f-4991-8a1c-450231baebfc> /jts/lifecycle-project/templates] ERROR com.ibm.team.lpa.templates -
com.ibm.team.jfs.sdk.common.StorageAreaNotFoundException: com.ibm.team.jfs.sdk.common.StorageAreaNotFoundException
at com.ibm.team.jfs.sdk.storage.internal.StorageService.checkStorageAreaAvailability(StorageService.java:666)
at com.ibm.team.jfs.sdk.storage.internal.StorageService.saveCreate(StorageService.java:1848)
at com.ibm.team.jfs.sdk.storage.internal.StorageService.saveWithStateCheck(StorageService.java:2203)
at com.ibm.team.jfs.sdk.storage.internal.StorageService.save(StorageService.java:1786)
at com.ibm.team.jfs.sdk.storage.internal.StorageService.save(StorageService.java:1732)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at com.sun.proxy.$Proxy698.save(Unknown Source)
at com.ibm.team.lpa.common.jfs.clients.AbstractStorageClient.createResource(AbstractStorageClient.java:133)
at com.ibm.team.lpa.app.templates.internal.TemplateClient.createTemplate(TemplateClient.java:72)
at com.ibm.team.lpa.app.services.TemplateService.deployPredefinedTemplates(TemplateService.java:257)
at com.ibm.team.lpa.app.services.TemplateService.post(TemplateService.java:182)
at com.ibm.team.lpa.common.services.AbstractLpaResource.perform_POST(AbstractLpaResource.java:78)
at com.ibm.team.lpa.common.services.AbstractLpaRestService.perform_POST(AbstractLpaRestService.java:39)
at com.ibm.team.repository.service.TeamRawService.service(TeamRawService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at com.sun.proxy.$Proxy701.service(Unknown Source)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService(AbstractTeamServerServlet.java:975)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2467)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:2256)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1773)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:74)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:165)
at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:339)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:761)