Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19526

[GSS](7.3.z) CMTOOL-276 - Symbolic links in the path to configuration files, such as is in the RPM installation, cause the migration tool to fail

XMLWordPrintable

    • +
    • Hide

      A workaround is to use zip install, or change the output directory.

      Show
      A workaround is to use zip install, or change the output directory.
    • Hide
      1. Start with JBoss EAP 6.4, such as zip installation
      2. Install the JBoss EAP 7.2 via RPMs on RHEL (tested on 6)
      3. Run
              
        /opt/rh/eap7/root/usr/share/wildfly/bin/jboss-server-migration.sh --source /opt/jboss/jboss-eap-6.4/
        

      Full output:

      ----------------------------------------------------------
      ----  JBoss Server Migration Tool  -----------------------
      ----------------------------------------------------------
      
      Retrieving servers...
      14:11:56,060 INFO  [logger] SOURCE server name: EAP, version: 6.4.22.GA.
      14:11:56,096 INFO  [logger] TARGET server name: JBoss EAP, version: 7.2.7.GA.
      
      ----------------------------------------------------------
      ----------------------------------------------------------
      
      Server migration starting...
      
      14:11:56,286 INFO  [ServerMigrationTask#1:1] --- Migrating modules requested by environment...
      
      14:11:56,287 INFO  [ServerMigrationTask#1:1] No modules to migrate.
      
      Migrate the source's standalone server?
      yes/no? n
      
      Migrate the source's managed domain?
      yes/no? y
      
      14:12:02,072 INFO  [ServerMigrationTask#1:3] --- Migrating managed domain...
      
      14:12:10,383 INFO  [ServerMigrationTask#1:3:2] Source's domain content migrated.
      
      14:12:10,528 INFO  [ServerMigrationTask#1:3:3] Source's domain configurations found: [domain.xml]
      
      Migrate all configurations?
      yes/no? y
      
      14:12:13,766 INFO  [ServerMigrationTask#1:3:3:1] Migrating domain configuration domain.xml...
      14:12:13,770 ERROR [logger] Migration failed: org.jboss.migration.core.ServerMigrationFailureException: Failed to copy /opt/jboss/jboss-eap-6.4/domain/configuration/domain.xml to /opt/rh/eap7/root/usr/share/wildfly/domain/configuration/domain.xml
      	at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:74) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.update.CopySourceXMLConfiguration.getXMLConfiguration(CopySourceXMLConfiguration.java:37) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.update.CopySourceXMLConfiguration.getXMLConfiguration(CopySourceXMLConfiguration.java:31) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:83) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateConfig(ServerConfigurationsMigration.java:151) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateAllConfigs(ServerConfigurationsMigration.java:120) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.run(ServerConfigurationsMigration.java:105) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.DomainMigration$1.run(DomainMigration.java:64) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.runTask(UserConfirmationServerMigrationTask.java:58) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.confirmTaskRun(UserConfirmationServerMigrationTask.java:50) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.run(UserConfirmationServerMigrationTask.java:63) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.config.task.ServerMigration.run(ServerMigration.java:45) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.wfly10.WildFlyServer10.migrate(WildFlyServer10.java:40) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.ServerMigration$1.run(ServerMigration.java:153) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.core.ServerMigration.run(ServerMigration.java:160) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131) [jboss-server-migration-cli.jar:1.3.1.Final-redhat-00009]
      	at org.jboss.modules.Module.run(Module.java:352) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001]
      	at org.jboss.modules.Module.run(Module.java:320) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001]
      	at org.jboss.modules.Main.main(Main.java:593) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001]
      Caused by: java.nio.file.FileAlreadyExistsException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectory(Files.java:674) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectories(Files.java:727) [rt.jar:1.8.0_252]
      	at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:67) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	... 32 more
      
      14:12:13,782 INFO  [logger]
      ------------------------------------------------------------------------------------------------------
       Task Summary
      ------------------------------------------------------------------------------------------------------
      
       server ...................................................................................... FAIL
        domain ..................................................................................... FAIL
         contents.domain.migrate-content-dir ....................................................... SUCCESS
          contents.domain.migrate-content(path=8d/hexidecimal/content) .. SUCCESS
         domain-configurations ..................................................................... FAIL
          domain-configuration(source=domain.xml) .................................................. FAIL
      
      ------------------------------------------------------------------------------------------------------
       Migration Result: FAIL
      ------------------------------------------------------------------------------------------------------
      
      Show
      Start with JBoss EAP 6.4, such as zip installation Install the JBoss EAP 7.2 via RPMs on RHEL (tested on 6) Run /opt/rh/eap7/root/usr/share/wildfly/bin/jboss-server-migration.sh --source /opt/jboss/jboss-eap-6.4/ Full output: ---------------------------------------------------------- ---- JBoss Server Migration Tool ----------------------- ---------------------------------------------------------- Retrieving servers... 14:11:56,060 INFO [logger] SOURCE server name: EAP, version: 6.4.22.GA. 14:11:56,096 INFO [logger] TARGET server name: JBoss EAP, version: 7.2.7.GA. ---------------------------------------------------------- ---------------------------------------------------------- Server migration starting... 14:11:56,286 INFO [ServerMigrationTask#1:1] --- Migrating modules requested by environment... 14:11:56,287 INFO [ServerMigrationTask#1:1] No modules to migrate. Migrate the source's standalone server? yes/no? n Migrate the source's managed domain? yes/no? y 14:12:02,072 INFO [ServerMigrationTask#1:3] --- Migrating managed domain... 14:12:10,383 INFO [ServerMigrationTask#1:3:2] Source's domain content migrated. 14:12:10,528 INFO [ServerMigrationTask#1:3:3] Source's domain configurations found: [domain.xml] Migrate all configurations? yes/no? y 14:12:13,766 INFO [ServerMigrationTask#1:3:3:1] Migrating domain configuration domain.xml... 14:12:13,770 ERROR [logger] Migration failed: org.jboss.migration.core.ServerMigrationFailureException: Failed to copy /opt/jboss/jboss-eap-6.4/domain/configuration/domain.xml to /opt/rh/eap7/root/usr/share/wildfly/domain/configuration/domain.xml at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:74) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.update.CopySourceXMLConfiguration.getXMLConfiguration(CopySourceXMLConfiguration.java:37) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.update.CopySourceXMLConfiguration.getXMLConfiguration(CopySourceXMLConfiguration.java:31) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.ServerConfigurationMigration$1.run(ServerConfigurationMigration.java:83) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateConfig(ServerConfigurationsMigration.java:151) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.migrateAllConfigs(ServerConfigurationsMigration.java:120) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.ServerConfigurationsMigration$Task.run(ServerConfigurationsMigration.java:105) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.DomainMigration$1.run(DomainMigration.java:64) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.runTask(UserConfirmationServerMigrationTask.java:58) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.confirmTaskRun(UserConfirmationServerMigrationTask.java:50) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.console.UserConfirmationServerMigrationTask.run(UserConfirmationServerMigrationTask.java:63) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.env.SkippableByEnvServerMigrationTask.run(SkippableByEnvServerMigrationTask.java:47) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.execute(TaskExecutionImpl.java:159) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:68) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskContextImpl.execute(TaskContextImpl.java:32) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.config.task.ServerMigration.run(ServerMigration.java:45) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.wfly10.WildFlyServer10.migrate(WildFlyServer10.java:40) [jboss-server-migration-wildfly10.0.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.ServerMigration$1.run(ServerMigration.java:153) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.task.TaskExecutionImpl.run(TaskExecutionImpl.java:169) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.core.ServerMigration.run(ServerMigration.java:160) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] at org.jboss.migration.cli.CommandLineServerMigration.main(CommandLineServerMigration.java:131) [jboss-server-migration-cli.jar:1.3.1.Final-redhat-00009] at org.jboss.modules.Module.run(Module.java:352) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001] at org.jboss.modules.Module.run(Module.java:320) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001] at org.jboss.modules.Main.main(Main.java:593) [jboss-modules-1.8.8.Final-redhat-00001.jar:1.8.8.Final-redhat-00001] Caused by: java.nio.file.FileAlreadyExistsException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) [rt.jar:1.8.0_252] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) [rt.jar:1.8.0_252] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) [rt.jar:1.8.0_252] at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) [rt.jar:1.8.0_252] at java.nio.file.Files.createDirectory(Files.java:674) [rt.jar:1.8.0_252] at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) [rt.jar:1.8.0_252] at java.nio.file.Files.createDirectories(Files.java:727) [rt.jar:1.8.0_252] at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:67) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009] ... 32 more 14:12:13,782 INFO [logger] ------------------------------------------------------------------------------------------------------ Task Summary ------------------------------------------------------------------------------------------------------ server ...................................................................................... FAIL domain ..................................................................................... FAIL contents.domain.migrate-content-dir ....................................................... SUCCESS contents.domain.migrate-content(path=8d/hexidecimal/content) .. SUCCESS domain-configurations ..................................................................... FAIL domain-configuration(source=domain.xml) .................................................. FAIL ------------------------------------------------------------------------------------------------------ Migration Result: FAIL ------------------------------------------------------------------------------------------------------

      Migrating from JBoss EAP 6.4 to 7.2.8 fails with an exception

      Caused by: java.nio.file.FileAlreadyExistsException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectory(Files.java:674) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectories(Files.java:727) [rt.jar:1.8.0_252]
      	at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:67) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	... 32 more
      

      Due to the fact that java.nio.file.Files.createDirectories sees the symbolic link "/opt/rh/eap7/root/usr/share/wildfly/domain/configuration", even though it points to a directory, as problem for it creating the path.

      See https://bugs.openjdk.java.net/browse/JDK-8130464

              emartins@redhat.com Eduardo Martins
              rhn-support-dguthrie David Guthrie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: