Quantcast
Channel: The Middleware Shop » WebSphere Shell Script
Viewing all articles
Browse latest Browse all 14

MIGR0272E: The migration function cannot complete the command

$
0
0

You are trying to run the WASPreUpgrade.sh script and you get the following error:

IBM WebSphere Application Server, Release 7.0

Product Upgrade PreUpgrade tool, Version 1.0

Copyright IBM Corp., 1997-2008

MIGR0104E: You must specify the currently installed Application Server directory name.

MIGR0001I: The class name of the WASPreUpgrade command is WASPreUpgrade

<backupDirectoryName>

<currentWebSphereDirectory>

[-traceString <trace spec> [-traceFile <file name>]]

[-machineChange <true | false>]

[-oldProfile < old profile name >]

[-workspaceRoot <user workspace folder name>]

MIGR0272E: The migration function cannot complete the command.

The command which was run from A WAS 7 install <was_root>/bin

[root@localhost bin]# ./WASPreUpgrade.sh /var/apps/was7_to_was8550/WAS7_01_AppServer01Prof_backup /var/apps/was7 -oldProfile WAS7_01_AppServer01Prof

Solution:

The solution is to install a WAS 8.5.5.x instance i.e. binaries, then use the ./WASPreUpgrade.sh script from the new WAS instance and set the path to be that of the WAS 7 profile i.e. prepare to migrate the WAS 7 profile by running the WAS 8.5.5.x version of the script. You cannot use WAS 7 to pre upgrade for WAS 8.5.5.x as it does not know about the later version of WAS.

Note: This error can also happend when using WASPostUpgrade.sh and the destination profile ie the WAS 8.5.5.x profile that will be migrated into. What I mean is here is that when you are migrating an existing WAS 7 profile to WAS 8.x, you first must create a destination profile with the same name that exists within the new WAS 8.x installation. So, when you run the WASPostUpgrade.sh script, you are essentially overlaying the old profiles data into the new WAS 8.5.5.x profile. If you use a similar syntax to below

./WASPostUpgrade.sh /var/apps/was7_to_was8550/WAS7_01_AppServer01Prof_backup -oldProfile WAS7_01_AppServer01Prof -profileName WAS7_01_AppServer01Prof -replacePorts true -includeApps script

And you get the following error:

IBM WebSphere Application Server, Release 8.5
Product Upgrade PostUpgrade tool, Version 1.0
Copyright IBM Corp., 1997-2010

MIGR0386E: Profile WAS7_01_AppServer01Prof is not found in the currently installed Application Server.
MIGR0002I: The class name of the WASPostUpgrade command is WASPostUpgrade
        <backupDirectoryName>
        [-profileName < profile name >]
        [-oldProfile < old profile name >]
        [-backupConfig < true | false >]
        [-username < user name >]
        [-password < password >]
        [-traceString <trace spec> [-traceFile <file name>]]
        [-portBlock < port starting block >]
        [-replacePorts < true | false >]
        [-includeApps < true | false | script >]
        [-scriptCompatibility < true | false >]
        [ [-appInstallDirectory < application installation location >] | [-keepAppDirectory < true | false >] ]
        [-keepDmgrEnabled < true | false >]
        [-oldAdminAgentProfilePath < path to old admin agent >]
        [-oldAdminAgentSoapPort < soap port of old admin agent >]
        [-oldAdminAgentHostname < hostname of old admin agent, defaults to localhost >]
        [-oldAdminAgentUsername < login username for old admin agent, if admin security is enabled >]
        [-oldAdminAgentPassword < login password for old admin agent, if admin security is enabled >]
        [-newAdminAgentProfilePath < path to new admin agent >]
        [-newAdminAgentSoapPort < soap port of new admin agent >]
        [-newAdminAgentHostname < hostname of new admin agent, defaults to localhost >]
        [-newAdminAgentUsername < login username for new admin agent, if admin security is enabled >]
        [-newAdminAgentPassword < login password for new admin agent, if admin security is enabled >]
        [ -javaoption < -Xms...m > -javaoption < -Xmx...m > ]
        [ -requestTimeout < number of seconds before a connection timeout occurs >]

MIGR0272E: The migration function cannot complete the command.

The cause can be as simple as the fact thaut there is not destination profile. Create a profile in the new WAS 8.x environment and try again.


Viewing all articles
Browse latest Browse all 14

Trending Articles