7 Replies Latest reply on Jun 14, 2013 8:00 AM by Bill Robinson

    blmigration_mgr upgrade from BSA 8.1 to 8.2 fails

    Kate Fell

       

      [13 Jun 2013 08:56:29,639] [main] [INFO] [::] [] TOP LEVEL MIGRATION EXCEPTION CAUGHT.

       

      Error while checking the DB required version. Error is:<MigUtils::checkDatabaseIsAtValidVersion:: Exception while getting the DB version.com.bladelogic.mig.framework.common.MigException: MigDatabaseAPI::initializeAPI::Could not retrieve the data source information; The Driver class is null or empty>.Database needs to be at least at version 7.6.0

       

      The database settings are correct in blasadmin.

       

      Any suggestions?

       

       

        • 1. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
          Ankur Maloo

          Could you please mention the SP as well for both the versions and attach the complete logs?

           

          -Ankur

          • 2. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
            Ankur Maloo

            Also, what blasadmin show fileserver all returning against _template deployment?

            • 3. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
              Kate Fell

              BSA 8.1 SP3 to BSA 8.2 SP1 Patch 2

              • 4. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
                Kate Fell

                 

                ROOT@gtbldd02 [DEV Active] /opt/bmc/BladeLogic/8.1/NSH/bin# ./blmigration_mgr /root/12june/bl_8.2.01/db_scripts/oracle/upgrade/

                 

                 

                 

                Migration Manager built on: Thu Jan 01 01:00:00 CET 1970

                 

                ... which is the timestamp of file: opt/bmc/BladeLogic/8.1/NSH/migrationmanager/migration-framework.jar

                 

                 

                 

                [13 Jun 2013 08:56:27,175] [main] [INFO] [::] [] Upgrade path read as parameter =/root/12june/bl_8.2.01/db_scripts/oracle/upgrade/

                 

                [13 Jun 2013 08:56:27,180] [main] [INFO] [::] [] Running default way ( UI or CLI)

                 

                [13 Jun 2013 08:56:27,181] [main] [INFO] [::] [] Running the UI

                 

                [13 Jun 2013 08:56:27,202] [main] [INFO] [::] [] Initializing Database API ...

                 

                [13 Jun 2013 08:56:28,970] [main] [WARN] [::] [] MigDatabaseAPI::cmdLineDriverSourceUserPassPlain=null

                 

                [13 Jun 2013 08:56:28,970] [main] [INFO] [::] [] Datasource creation Driver=

                 

                [13 Jun 2013 08:56:28,971] [main] [INFO] [::] [] Datasource creation connectionString=

                 

                [13 Jun 2013 08:56:28,971] [main] [INFO] [::] [] Datasource creation userId=

                 

                [13 Jun 2013 08:56:28,974] [main] [ERROR] [::] [] MigDatabaseAPI::initializeAPI::Could not retrieve the data source information; The Driver class is null or empty

                 

                com.bladelogic.mig.framework.common.MigException: The Driver class is null or empty

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.createDataSource(MigDatabaseAPI.java:213)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.initializeAPI(MigDatabaseAPI.java:103)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.<init>(MigDatabaseAPI.java:69)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.getInstance(MigDatabaseAPI.java:44)

                 

                at com.bladelogic.mig.db.MigDBAPI.execute(MigDBAPI.java:54)

                 

                at com.bladelogic.mig.db.MigDBAPI.executeSqlId(MigDBAPI.java:96)

                 

                at com.bladelogic.mig.db.MigDBUtils.getDBVersionFromSystemPropertyTable(MigDBUtils.java:80)

                 

                at com.bladelogic.mig.framework.common.MigUtils.checkDatabaseIsAtValidVersion(MigUtils.java:77)

                 

                at com.bladelogic.mig.framework.chainedmigration.ChainedMigration.<init>(ChainedMigration.java:27)

                 

                at com.bladelogic.mig.Migration.runUI(Migration.java:84)

                 

                at com.bladelogic.mig.Migration.main(Migration.java:67)

                 

                [13 Jun 2013 08:56:28,978] [main] [INFO] [::] [] Initializing Database API ...

                 

                [13 Jun 2013 08:56:29,632] [main] [WARN] [::] [] MigDatabaseAPI::cmdLineDriverSourceUserPassPlain=null

                 

                [13 Jun 2013 08:56:29,633] [main] [INFO] [::] [] Datasource creation Driver=

                 

                [13 Jun 2013 08:56:29,634] [main] [INFO] [::] [] Datasource creation connectionString=

                 

                [13 Jun 2013 08:56:29,634] [main] [INFO] [::] [] Datasource creation userId=

                 

                [13 Jun 2013 08:56:29,634] [main] [ERROR] [::] [] MigDatabaseAPI::initializeAPI::Could not retrieve the data source information; The Driver class is null or empty

                 

                com.bladelogic.mig.framework.common.MigException: The Driver class is null or empty

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.createDataSource(MigDatabaseAPI.java:213)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.initializeAPI(MigDatabaseAPI.java:103)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.<init>(MigDatabaseAPI.java:69)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.getInstance(MigDatabaseAPI.java:44)

                 

                at com.bladelogic.mig.db.MigDBAPI.cleanupResources(MigDBAPI.java:31)

                 

                at com.bladelogic.mig.db.MigDBUtils.getDBVersionFromSystemPropertyTable(MigDBUtils.java:93)

                 

                at com.bladelogic.mig.framework.common.MigUtils.checkDatabaseIsAtValidVersion(MigUtils.java:77)

                 

                at com.bladelogic.mig.framework.chainedmigration.ChainedMigration.<init>(ChainedMigration.java:27)

                 

                at com.bladelogic.mig.Migration.runUI(Migration.java:84)

                 

                at com.bladelogic.mig.Migration.main(Migration.java:67)

                 

                [13 Jun 2013 08:56:29,636] [main] [ERROR] [::] [] MigUtils::checkDatabaseIsAtValidVersion:: Exception while getting the DB version.

                 

                com.bladelogic.mig.framework.common.MigException: MigDatabaseAPI::initializeAPI::Could not retrieve the data source information; The Driver class is null or empty

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.initializeAPI(MigDatabaseAPI.java:110)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.<init>(MigDatabaseAPI.java:69)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.getInstance(MigDatabaseAPI.java:44)

                 

                at com.bladelogic.mig.db.MigDBAPI.cleanupResources(MigDBAPI.java:31)

                 

                at com.bladelogic.mig.db.MigDBUtils.getDBVersionFromSystemPropertyTable(MigDBUtils.java:93)

                 

                at com.bladelogic.mig.framework.common.MigUtils.checkDatabaseIsAtValidVersion(MigUtils.java:77)

                 

                at com.bladelogic.mig.framework.chainedmigration.ChainedMigration.<init>(ChainedMigration.java:27)

                 

                at com.bladelogic.mig.Migration.runUI(Migration.java:84)

                 

                at com.bladelogic.mig.Migration.main(Migration.java:67)

                 

                Caused by: com.bladelogic.mig.framework.common.MigException: The Driver class is null or empty

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.createDataSource(MigDatabaseAPI.java:213)

                 

                at com.bladelogic.mig.db.impl.MigDatabaseAPI.initializeAPI(MigDatabaseAPI.java:103)

                 

                ... 8 more

                 

                [13 Jun 2013 08:56:29,639] [main] [INFO] [::] [] TOP LEVEL MIGRATION EXCEPTION CAUGHT.

                 

                Error while checking the DB required version. Error is:<MigUtils::checkDatabaseIsAtValidVersion:: Exception while getting the DB version.com.bladelogic.mig.framework.common.MigException: MigDatabaseAPI::initializeAPI::Could not retrieve the data source information; The Driver class is null or empty>.Database needs to be at least at version 7.6.0

                 

                 

                 

                • 5. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
                  Kate Fell

                  show fileserver all is bringing back the correct information

                  • 6. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
                    Ankur Maloo

                    Please check asDataSourceService.xml file under deployments folder on appserver as this could be related to wrong DB information settings for the _template deployment.

                    Please run:

                     

                    blasadmin -s _template

                    show database all

                    Verify:

                    ConnectionStrring

                    DriverClass

                    UserId

                    Password

                    You may want to use:

                    set database variable values

                     

                    If you are unsure about the values here, and this server was previously working, you can verify these settings with default deployment or any other working deployment on the box.

                     

                    Simple workaround is by copying 'asDataSourceService.xml' from the "default\services" subdirectory in "$bladelogic_installation\OM\br\deployments" to "_template\services"  resolve the issue.

                     

                    • 7. Re: blmigration_mgr upgrade from BSA 8.1 to 8.2 fails
                      Bill Robinson

                      if the _template was not correct this means that the DeployXMLMigrator may have failed during the appserver upgrade - can you check the NSH/br/deployment_upgrade.log and see if there are any errors for the most recent run ?