Symptoms:
- When migrating from from a vCenter Server 6.x with external MS SQL database to vCenter Appliance 6.x/7.x, in Stage 2 of the migration, you see an error similar to:
Error disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
- In the /var/log/vmware/upgrade/upgrade-export.log file, you see entries similar to:
2019-02-28T10:23:23.171Z ERROR upgrade_commands Export failed with {'componentKey': 'com.vmware.vcdb', 'detail': [{'args': [' disable_jobs(cur_odbc, con_odbc, args.rdbms)\n'], 'translatable': 'Error while disabling jobs: %(0)s', 'id': 'vcdb.error.export.disable.jobs', 'localized': 'Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)\n'}], 'problemId': None, 'resolution': {'localized': 'Read the log files and address the issues experienced while disabling your jobs.', 'translatable': 'Read the log files and address the issues experienced while disabling your jobs.', 'id': 'vcdb.action.disable.jobs.log'}}. Check UpgradeRunner.log log for details.
- In the Export_com.vmware.vcdb_YYYY_MM_DD_HH_mm.log file (being the date of the migration attempt), you see entries similar to:
2019-02-28T10:22:56.744Z ERROR vcdb.const Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
2019-02-28T10:22:56.746Z ERROR __main__ Upgrade Phase 'vcdb:Export' failed. Exception: Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
2019_02_28_10_16.log: ret = disable_jobs(**kwargs)
2019_02_28_10_16.log: File "C:\migA23E.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts\vcdb\vcdb_db_utils.py", line 883, in disable_jobs
2019_02_28_10_16.log:PermanentError: Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
- In the UpgradeRunner.log file, you see similar entries to:
2019-02-28T10:22:56.744Z ERROR vcdb.const Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
2019-02-28T10:22:56.746Z ERROR __main__ Upgrade Phase 'vcdb:Export' failed. Exception: Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
2019-02-28T10:22:57.706Z INFO upgrade.states.component_states vcdb:Export: PermanentError: Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)
- In the bootstrap.log file, you see entries similar to:
2019-02-28T10:23:23.171Z ERROR upgrade_commands Export failed with {'componentKey': 'com.vmware.vcdb', 'detail': [{'args': [' disable_jobs(cur_odbc, con_odbc, args.rdbms)\n'], 'translatable': 'Error while disabling jobs: %(0)s', 'id': 'vcdb.error.export.disable.jobs', 'localized': 'Error while disabling jobs: disable_jobs(cur_odbc, con_odbc, args.rdbms)\n'}], 'problemId': None, 'resolution': {'localized': 'Read the log files and address the issues experienced while disabling your jobs.', 'translatable': 'Read the log files and address the issues experienced while disabling your jobs.', 'id': 'vcdb.action.disable.jobs.log'}}. Check UpgradeRunner.log log for details.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.