Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2385

AAI-GRAPHADMIN migration failing in Dublin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Dublin Release
    • None

      I am trying to execute the runMigration utility of graphadmin but it fails:

       

      aaiadmin@aai-graphadmin:/opt/app/aai-graphadmin/bin$ ./run_Migrations.sh -e UpdateAaiUriIndexMigration --commit --skipPreMigrationSnapShot

       

      Wed Apr 17 09:43:45 UTC 2019    Starting ./run_Migrations.sh

      Exception in thread "main" java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

              at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

              at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)

              at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:595)

      Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.onap.aai.setup.SchemaVersions' available: expected single matching bean but found 3: schemaServiceVersions,schemaConfigVersions,schemaVersions

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1042)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:344)

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:339)

              at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1094)

              at org.onap.aai.migration.MigrationController.main(MigrationController.java:82)

              ... 8 more

      Failed to run the tool ./run_Migrations.sh successfully

       

       

      It used to work fine few days back.

            vk250x vk250x
            mahendrr mahendrr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: