Application "org.talend.repository.TalendMigration" could not be found in the registry

Overview

When a database migration from database X to database Y is performed using the following command in 5.6.1, an exception is reported:

 

./Talend-Studio-linux-gtk-x86 -nosplash -application org.talend.repository.TalendMigration -consoleLog -data migration-workspace 
-sourceUrl "jdbc:h2:file:/tac_database/tac_repo" -sourceUser tisadmin -sourcePasswd tisadmin 
-targetUrl jdbc:mysql://127.0.0.1:3306/tac_530 -targetUser tisadmin -targetPasswd tisadmin -vmargs -Xss5m Xms64m -Xmx1024m

 

Symptoms/Description

The exception reported is:

java.lang.RuntimeException: Application "org.talend.repository.TalendMigration" could not be found in the registry.
The applications available are: org.talend.license.gui.application, org.talend.rcp.branding.generic.application, org.eclipse.help.base.infocenterApplication, 
org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.talend.designer.codegen.CodeGenInit, 
org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.ant.ui.antRunner, org.eclipse.equinox.app.error, 
org.eclipse.emf.mwe.core.WorkflowRunner, org.talend.commandline.CommandLine, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.ant.core.antRunner, 
org.eclipse.emf.codegen.ecore.Generator, org.talend.repository.CreateAutomaticConnectionApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, 
org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.emf.importer.java.Java2GenModel, 
org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.ui.ide.workbench, org.eclipse.equinox.p2.reconciler.application, 
org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, 
org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, 
org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.repository.repo2runnable, 
org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, 
org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.emf.codegen.CodeGen, 
org.eclipse.emf.codegen.JMerger.

Resolution

This happens when the migration process changed in 5.6.1 as following:

To migrate a TAC from database X to database X, you can choose Proceed Migration to upgrade your TAC database when you open the TAC WebUI.

 

But for migration of a TAC from database X to database Y, you will use the Metaservlet to migrate your TAC.

 

For that, you should use the script in C:\Talend\5.6.1\tac\apache-tomcat\webapps\org.talend.administrator\WEB-INF\classes\MetaServletCaller.bat (on Windows, or MetaServletCaller.sh if you are on a Linux system).

 

Call the script with these parameters (run the command: MetaServletCaller.bat --tac-url http://localhost:8080/org.talend.administrator -h migrateDatabase)

 

----------------------------------------------------------
Command: migrateDatabase
----------------------------------------------------------
Description: Database migration.
     'skipBackup' is optional, when set to true, be sure your database has been backed up.
    Requires authentication: false
    Since: 5.6
    Sample:
    Unknown macro: {"Samples"}
 
Generic return codes:
0: Success
1: Unknown error
2: Invalid request
3: Authentication error
4: License problem
5: Invalid parameter
6: Error formatting response

 

For example : MetaServletCaller.bat --tac-url http://localhost:8080/org.talend.administrator --json-params=

{"actionName":"migrateDatabase","dbConfigPassword":"admin","mode":"synchronous","sourceUrl":
"'jdbc:h2:C:/Talend/5.6.1/tac/apache-tomcat/webapps/org.talend.administrator/WEB-INF/database/talend_administrator'",
"sourceUser":"tisadmin","sourcePasswd":"tisadmin","targetPass wd":"root","targetUrl":"'jdbc:postgresql://localhost:5432/postgres'","targetUser":"postgres"}

 

Related Jira Issues

DOCT-4438

Version history
Revision #:
13 of 13
Last update:
‎04-14-2017 10:06 AM
Updated by:
 
Labels (1)