"ERROR __main__ Upgrade Phase 'is:Import' failed" while importing or exporting of vCenter Inventory Services during VC upgrade from 5.5 to 6.0
search cancel

"ERROR __main__ Upgrade Phase 'is:Import' failed" while importing or exporting of vCenter Inventory Services during VC upgrade from 5.5 to 6.0

book

Article ID: 338821

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Importing or exporting of VMware vCenter Inventory Service fails when upgrading from vCenter Server 5.5 to 6.0
  • When upgrading from vCenter Server 5.5 to 6.0, you may experience one or more of these symptoms:
  • Importing or exporting of VMware vCenter Inventory Service fails.
  • You see the error:

    Internal error occurs during Export of VMware vCenter Inventory Service.
     
  • In the VMware-VCS-logs-YYYY-MM-DD/vcsUpgrade/Export_com.vmware.is_YYYY-MM-DD.log file, you see entries similar to:
<YYYY-MM-DD>T<time>:INFO is Backup PBM on destination vSphere...
<YYYY-MM-DD>T<time>:WARNING transport.local BAD REQUEST: Cannot execute [u'C:\\Program Files\\VMware\\Infrastructure\\JRE\\bin\\java', '-Xms256m', '-Xmx512m', '-classpath',
'-classpath', 'Z:\\PFiles\\VMware\\CIS\\cis_upgrade_runner\\payload\\component-scripts\\is\\lib;...Error: [Error 2] The system cannot find the file specified
<YYYY-MM-DD>T<time>: ERROR __main__ Upgrade Phase 'is:Export' failed. Exception:</time></time></time>


Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
  • In the Import_com.vmware.is_YYYY_MM_DD_HH_MM.log,you see entries similar to:
Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@70edb9a5: defining beans [propertyConfigurer,dsVmodlContext,storeDirectory,storeFactory,queryPool,providerPool,store,purgeProviders]; root of factory hierarchy
Error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeFactory' defined in class path resource [purge.xml]: Invocation of init method failed; nested exception is com.xhive.error.XhiveException: FEDERATION_ALREADY_OPEN: Federation

.
.
.
.
<YYYY-MM-DD>T<time> INFO is Reset providers StdErr:
</time><YYYY-MM-DD>T<time></time> INFO is
<YYYY-MM-DD>T<time></time> ERROR __main__ Upgrade Phase 'is:Import' failed. Exception: Error attempting Reset providers


Environment

VMware vCenter Server 5.5.x
VMware vCenter Server 6.0.x

Cause

This issue occurs if:
  • vCenter Server 5.1 JRE registry key exists in vCenter Server 5.5. In this case, the upgrade fails to use the vCenter Server 5.5 JRE key.
  • Non-functional Inventory Service upgraded before upgrading.

Resolution

To resolve this issue, use of these options:
  • When the vCenter Server 5.1 JRE registry key exist in vCenter Server 5.5:
Remove the vCenter Server 5.1 JRE registry key.
 
To remove the JRE Key:
  1. Click Start > Run, type regedit, and click OK. The Registry Editor window opens.
  2. Navigate to HKLM > Software > VMware,Inc. > VMware Infrastructure > JRE.
  3. Right-Click the 5.1 JRE key and click Delete.
  • When non-functional Inventory Service upgraded before upgrading:
Rollback to the vCenter Server 5.x system and investigate the status of the Inventory Service.
 
Note: To investigate issue with the Inventory Service, review the C:\ProgramData\VMware\Infrastructure\Inventory Service\logs\ds.log file.


Additional Information

Resetting the VMware vCenter Server 5.x Inventory Service database
VMware vCenter Server 5.5 升级到 6.0 时显示错误: 导出 VMware vCenter Inventory Service 时出现内部错误
VMware vCenter Server 5.5 から 6.0 へのアップグレードが次のエラーで失敗する: VMware vCenter Inventory Service のエクスポート中に内部エラーが発生します。