Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

vCenter Migration Fails with internal error (78927)

Last Updated: 6/1/2020Categories: TroubleshootingTotal Views: 6519Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

vCenter Migration Fails with internal error

From UpgradeRunner.log we can see MA fails to get information for most of the components.

For Example:

CollectRequirements_com.vmware.cls_XXXX_XX_XX_XX_XX.log :

2020-04-23T02:50:26.242Z INFO __main__ Set root upgrade folder to: C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts
2020-04-23T02:50:26.430Z INFO sdk_utils Loading external install configuration from C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\config\vcsa_install_config.json
2020-04-23T02:50:27.415Z ERROR install_param_utils Error executing 'install-parameter feature.states': ERROR: 1, stdout: , stderr:   File "C:\Program Files\VMware\vCenter Server\bin\\install-parameter", line 57^M
except IOError, e:^M
^^M
SyntaxError: invalid syntax^M

CollectRequirements_com.vmware.vcdb_XXXX_XX_XX_XX_XX.log :

2020-04-23T02:50:32.799Z INFO vcdb.const MSSQL with Windows Authentication.
2020-04-23T02:50:32.875Z INFO win_executor Running command ['C:\\migA6F4.tmp\\PFiles\\VMware\\CIS\\cis_upgrade_runner\\payload\\component-scripts\\vcdb\\dbupgrade\\dbcupgrade', '-u', b'I3Ztd2FyZXZpbXByb2RcQ0lUWU9GU1lETkVZ', '-p',CENSORED, '-b', '600', '-v', 'C:\\Users\\0GGRIG~1\\AppData\\Local\\Temp\\vcsMigration\\vcdb_warning.log', '-t', 'mssql', '-d', b'VklN', '-y', '-e', '-m'] as user #vmwarevimprod@CITYOFSYDNEY
2020-04-23T02:50:32.875Z ERROR __main__ Upgrade Phase 'vcdb:CollectRequirements' failed. Exception: 'str' object has no attribute 'decode'
Traceback (most recent call last):
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\componentPhaseLauncher.py", line 461, in main
executionResult = systemExtension(exeContext)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\extensions.py", line 94, in __call__
result = self.extension(*args)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\extensions.py", line 110, in _func
return func(*args)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts\vcdb\__init__.py", line 25, in do_collect_upgrade_requirements
req = do_windows_collect_req(context)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts\vcdb\vcdb_collect_requirements_functions.py", line 739, in do_windows_collect_req
DBC_UPGRADE_FOLDER)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\win_executor.py", line 307, in run_as_user
stderr=stderrFile)
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\win_executor.py", line 130, in __init__
user = user.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

CollectRequirements_com.vmware.is_XXXX_XX_XX_XX_XX.log :

2020-04-23T02:50:34.960Z ERROR __main__ Upgrade Phase 'is:CollectRequirements' failed. Exception: Failed to import InventoryService upgrade library: attempted relative import with no known parent package.
Traceback (most recent call last):
File "C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts\is\is_upgrade_600.py", line 27, in <module>
from . import is_upgrade_lib as IUL
ImportError: attempted relative import with no known parent package

CollectRequirements_com.vmware.vpxd_XXXX_XX_XX_XX_XX.log :

2020-04-23T02:50:27.187Z INFO sdk_utils Loading external install configuration from C:\migA6F4.tmp\PFiles\VMware\CIS\cis_upgrade_runner\config\vcsa_install_config.json
2020-04-23T02:50:28.510Z ERROR install_param_utils Error executing 'install-parameter feature.states': ERROR: 1, stdout: , stderr:   File "C:\Program Files\VMware\vCenter Server\bin\\install-parameter", line 57^M
except IOError, e:^M
^^M

SyntaxError: invalid syntax^M

Cause

This error usually happens when the Python path is either incorrect or if additional Python software is installed on the Source Windows machine.

Resolution

For either of the above errors :

Open CMD prompt as Administrator and run service-control --status --all which should fail with below error.

C:\Program Files\VMware\vCenter Server\bin>service-control --status

File "E:\Program Files\VMware\vCenter Server\bin\\service-control", line 28
os.mkdir(dataDir, 0755)
^
SyntaxError: invalid token

To fix this issue :

Go to Computer, Right click and select Properties. Go to Advanced system settings and select Environmental Variables.

Make sure that the Environmental Variables are set properly to the correct installation directory as below.
In some environment the Python path will be set to CIS directory so change it to the proper location by editing the path variable.

For vCenter Server 6.0 & 6.5 :

VMWARE_PYTHON_BIN=C:\Program Files\VMware\vCenter Server\python\python.exe
VMWARE_PYTHON_HOME=C:\Program Files\VMware\vCenter Server\python
VMWARE_PYTHON_MODULES_HOME=C:\Program Files\VMware\vCenter Server\python-modules\cis
VMWARE_PYTHON_PATH=C:\Program Files\VMware\vCenter Server\python-modules

(If you see Python 3 path for 6.0 or 6.5, remove the same from Environmental Variables)

For vCenter Server 6.7 :

VMWARE_PYTHON3_BIN=C:\Program Files\VMware\vCenter Server\python\python.exe
VMWARE_PYTHON3_HOME=C:\Program Files\VMware\vCenter Server\python
VMWARE_PYTHON_BIN=C:\Program Files\VMware\vCenter Server\python\python.exe
VMWARE_PYTHON_HOME=C:\Program Files\VMware\vCenter Server\python
VMWARE_PYTHON_MODULES_HOME=C:\Program Files\VMware\vCenter Server\python-modules\cis
VMWARE_PYTHON_PATH=C:\Program Files\VMware\vCenter Server\python-modules

Once the changes are made, reboot the Windows server and re-run the Migration.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
将 Cloud Director 9.5 迁移到 10.0 的过程中，出现“无法读取或写入配置文件: 密钥库已被篡改，或密码不正确”错误 (78924)

KB
•
「URL を確認して、やり直してください (Check the URL and try again)」- vCenter 7.0 VAMI の [アップデート] パネル (78906)

KB
•
VMware Intelligent Hub 20.04 for iOS リリースのお知らせ (78889)

KB
•
将事件从 vRealize Log Insight 导出到 NFS 失败，并显示 "无法添加新的导出任务。错误：NFS 路径语法无效 " (78902)

Results 1-4 of 4

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vCenter Server

Related Versions:

VMware vCenter Server 6.7.x

VMware vCenter Server 6.5.x

Take Our Survey

Support Assistant