cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace collector upgrade from v6.1 to v6.5 error out in File Migration step with below error when using Dtmigration tool.

Jibin_rajan2
Participant

Microsoft Windows [Version 6.1.7601]
Copyright (coffee) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:\DT_6.5_Package\DT_6.5_Package
C:\DT_6.5_Package\DT_6.5_Package>"C:\Program Files\dynaTrace\dynaTrace Collector 6.1.0\jre\bin\java" -jar dynatrace-migration.jar -migr
ation -sourceArchive "C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma" -targetDTHome "C:\Program Files\dynaTrace\Dynatrace Colle
ctor 6.5"
-------------------------------------------------------------------------------
Dynatrace Migration Tool Copyright (coffee) 2004-2017 Dynatrace
-------------------------------------------------------------------------------
Version 10.0.0.1258 built 2017-01-25T08:18:53.172-0500
Startup 2017-03-20 05:19:43-0400
Do you want to start migrating from C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma to C:\Program Files\dynaTrace\Dynatrace Coll
ector 6.5 ?
Press <Y> or <N>: Y
Reading archive C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma
Starting to migrate files from C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma to installation directory C:\Program Files\dynaTr
ace\Dynatrace Collector 6.5
Calculating required free space for data from C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma ...
Uncompressed size [MB]: 2 035; Required size [MB]: 2 076; Available space [MB]: 448 990
MIGRATION_STARTED Source: C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma -> Target: C:\Program Files\dynaTrace\Dynatrace Collec
tor 6.5
Reading migration entries...
MIGRATION_INFO dtcollector.2015-07-17.ini.toBeMigrated was replaced and has to be migrated manually.
MIGRATION_INFO collector/cache/classes/metaModuleIndex.dtsf was backed up and replaced.
MIGRATION_INFO collector/cache/classes/metaClassIndex.dtsf was backed up and replaced.
MIGRATION_INFO collector/conf/.migrationAgentsNoAutoUpgrade was backed up and replaced.
MIGRATION_INFO collector/lib/agentres-5.6.0.5713.jar was backed up and replaced.
MIGRATION_INFO collector/conf/dt_keystore.salt was backed up and replaced.
MIGRATION_INFO collector/conf/keystore.jks was backed up and replaced.
MIGRATION_INFO collector/cache/classes/blobs.dtsf was backed up and replaced.
MIGRATION_INFO collector/lib/agentres-6.1.0.8218.jar was backed up and replaced.
MIGRATION_INFO collector/conf/dt_keystore.bks was backed up and replaced.
MIGRATION_INFO collector/cache/classes/classCache.dtsf was backed up and replaced.
MIGRATION_INFO collector/conf/collector.config.xml was backed up and replaced.
MIGRATION_INFO dtcollector.ini.toBeMigrated was replaced and has to be migrated manually.
MIGRATION_INFO collector/lib/agentres-6.1.0.8054.jar was backed up and replaced.
MIGRATION_INFO collector/lib/agentres-5.6.0.5924.jar was backed up and replaced.
MIGRATION_INFO collector/cache/classes/moduleCache.dtsf was backed up and replaced.
MIGRATION_INFO collector/conf/.dt_keystore.salt.bkp was backed up and replaced.
MIGRATION_INFO collector/lib/agentres-6.0.0.6717.jar was backed up and replaced.
MIGRATION_INFO collector/lib/agentres-6.0.0.7000.jar was backed up and replaced.
MIGRATION_INFO collector/conf/.dt_keystore.bks.bkp was backed up and replaced.
MIGRATION_INFO collector/cache/classes/strings.dtsf was backed up and replaced.
MIGRATION_INFO collector/cache/classes/metadata.dtsf was backed up and replaced.
Warning: No Javascript agents (collector/conf/sensors/plugins/com.dynatrace.diagnostics.knowledgesensor.js.core/plugin.xml not present)
found for collector in source, skipping agentres conversion. This is ok if the Collector was never connected to a server.
Instance 'collector\instances\m218176apss3096 8998 collector' is just being prepared for migration. This can take some time!
com.dynatrace.diagnostics.cmd.migration.CommandExecutionException: CommandExecutionException: Cannot backup file C:\Program Files\dynaT
race\Dynatrace Collector 6.5\collector\instances\m218176apss3096 8998 collector\conf\sensors\plugins\com.dynatrace.diagnostics.knowledg
esensor.adk\META-INF\MANIFEST.MF to C:\Program Files\dynaTrace\Dynatrace Collector 6.5\migration\backup\m218176apss3096_2017-03-20_03.3
6.02_2017-03-20_05.19.47\collector\instances\m218176apss3096 8998 collector\conf\sensors\plugins\com.dynatrace.diagnostics.knowledgesen
sor.adk\META-INF\MANIFEST.MF.ADDED_COPYOFDEFAULINSTANCE caused by: java.io.IOException: The system cannot find the file specified
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfigFolderRec(MigrationIOUtil.java:334)
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfigFolderRec(MigrationIOUtil.java:305)
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfigFolderRec(MigrationIOUtil.java:305)
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfigFolder(MigrationIOUtil.java:281)
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfig(MigrationIOUtil.java:256)
at com.dynatrace.diagnostics.cmd.migration.entity.MigrationEntity.migrateToDTHome(MigrationEntity.java:727)
at com.dynatrace.diagnostics.cmd.migration.entity.MigrationEntity.executeCommand(MigrationEntity.java:244)
at com.dynatrace.diagnostics.cmd.migration.entity.AbstractCmdEntity.executeCommand(AbstractCmdEntity.java:51)
at com.dynatrace.diagnostics.cmd.migration.MigrationToolImpl.run(MigrationToolImpl.java:113)
at com.dynatrace.diagnostics.cmd.migration.MigrationToolImpl.execute(MigrationToolImpl.java:81)
at com.dynatrace.diagnostics.cmd.migration.MigrationToolImpl.main(MigrationToolImpl.java:74)
Caused by: java.io.IOException: The system cannot find the file specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at com.dynatrace.diagnostics.cmd.migration.io.MigrationIOUtil.prepareInstanceConfigFolderRec(MigrationIOUtil.java:330)
... 10 more
MIGRATION_FAILED Migration to target failed from source: C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma
For detailed Information please refer to C:\Program Files\dynaTrace\Dynatrace Collector 6.5\migration\backup\m218176apss3096_2017-03-20
_03.36.02_2017-03-20_05.19.47\MIGRATION.STATUS.
Command Execution Failure:
CommandExecutionException: Migration to target failed from source: C:\BackUp2017\m218176apss3096_2017-03-20_03.36.02.dtma caused by: c
om.dynatrace.diagnostics.cmd.migration.CommandExecutionException: CommandExecutionException: Cannot backup file C:\Program Files\dynaTr
ace\Dynatrace Collector 6.5\collector\instances\m218176apss3096 8998 collector\conf\sensors\plugins\com.dynatrace.diagnostics.knowledge
sensor.adk\META-INF\MANIFEST.MF to C:\Program Files\dynaTrace\Dynatrace Collector 6.5\migration\backup\m218176apss3096_2017-03-20_03.36
.02_2017-03-20_05.19.47\collector\instances\m218176apss3096 8998 collector\conf\sensors\plugins\com.dynatrace.diagnostics.knowledgesens
or.adk\META-INF\MANIFEST.MF.ADDED_COPYOFDEFAULINSTANCE caused by: java.io.IOException: The system cannot find the file specified caused
by: java.io.IOException: The system cannot find the file specified
C:\DT_6.5_Package\DT_6.5_Package>

7 REPLIES 7

thomas_klambaue
Dynatrace Pro
Dynatrace Pro

Hi Jibin,

I am not able to reproduce your issue. Can you re-try to execute the command?

If the problem still persists, please open a support ticket with the following information

* provide a file listing of C:\Program Files\dynaTrace\Dynatrace Collector 6.5\collector\instances\

* confirm that in this directory there is a folder with name "m218176apss3096 8998 collector" (incl. spaces)

* a zip of the folder C:\Program Files\dynaTrace\Dynatrace Collector 6.5\log\migration (not C:\Program Files\dynaTrace\Dynatrace Collector 6.5\migration)

* Is the collector in the target running?

Regards,

Thomas

PS: Internal ticket: JLT-184935

If possible, please also provide this text ouput again in a text file and upload it to the support ticket to avoid problems with linebreaks and characters inserted by the formatting system.

Please also provide the ticket number here.

sooryaprabha_mo
Inactive

Hi Jibin,

I can see below error messages:

NF\MANIFEST.MF to C:\Program Files\dynaTrace\Dynatrace Collector 6.5\migration\backup\m218176apss3096_2017-03-20_03.3 6.02_2017-03-20_05.19.47\collector\instances\m218176apss3096 8998 

I guess in your environment you are using more than one collector instances running in the same server.

If this is the Scenario, migration tool dont copy the collector\instances configuration path files when we execute the below command

java -jar
dtmigration.jar -migration -sourceDTHome "C:\Program
Files\dynaTrace\dynaTrace 6.3.0" -targetArchiveDir "C:\Program Files\dynaTrace\dynaTrace_Archive"

we have to run the below command seperately for Collector Instances backup.

java -jar
dtmigration.jar -migration -sourceDTHome "C:\Program
Files\dynaTrace\dynaTrace 6.3.0\”Collector Instance Path”"
-targetArchiveDir "C:\Program Files\dynaTrace\dynaTrace_Archive_CollectorInstances"

Then we will get separate .dtma archieve for collector instances.

In our environment we have more then one collector instances in a single server, we used the above method while using dTmigration tool..

Hope this may help!!

Hope this

Thanks

Soorya Mohan

Hi Soorya,

when running the migration tool, like this:

java -jar dynatrace-migration.jar -migration -sourceDTHome "C:\ProgramFiles\dynaTrace\dynaTrace 6.3.0" -targetArchiveDir "C:\Program Files\dynaTrace\dynaTrace_Archive"

it should copy / migrate also all data of collector instances. In fact it will always collect data from the collector default + collector instances + server default + server instances into the dtma-file. If you see other behavior, please open a ticket.

Also, the syntax

-sourceDTHome "C:\ProgramFiles\dynaTrace\dynaTrace 6.3.0\”Collector Instance Path”"

will not work. Note that instances are different from multiple collector installations (folders) (only possible on unix-based systems).

Please also look into using the latest version of the migration tool. If you are using a file named dtmigration.jar, it is outdated. The current version as of today is named dynatrace-migration.jar, please re-download from the Upgrade and Migration Guide.

Regards,

Thomas

Hello @Soorya Prabha M.,

I will second @Thomas K., that you can get the archive in one go for the default and additional instances and then can migrate one be one.

Upgrade / Migrate Default Collector Instance, use the following command.

java -jar dynatrace-migration.jar -migration -sourceArchive "C:\migration\mymachine_<date>_<time>.dtma" -targetDTHome "C:\Program Files\dynaTrace\dynaTrace 6.3" -migrateInstances defaultCollector

Upgrade / Migrate Additional Collector Instances (Not Default Collector) use the following command.

java -jar dynatrace-migration.jar -migration -sourceArchive "C:\migration\mymachine_<date>_<time>.dtma" -targetDTHome "C:\Program Files\dynaTrace\dynaTrace 6.3" -migrateInstances CollectorInstances

Regards,

Babar

Thanks @Thomas K. and @Babar Q. !! It's really helpful while migration/up-gradation!! AS per Thomas suggestion we will use latest migration tool.

BR,

Soorya Mohan