"Internal error occurs during Export of VMware vCenter Authentication Framework" while migrating from 6.5 or 6.7 to higher version
search cancel

"Internal error occurs during Export of VMware vCenter Authentication Framework" while migrating from 6.5 or 6.7 to higher version

book

Article ID: 321395

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Windows vCenter Server 6.5 U1 migration to VCSA 6.7 U3 or higher version or from Windows vCenter 6.7 to VCSA 7.0 fails with "Internal error occurs during Export of VMware vCenter Authentication Framework"
  • You will see similar log entries in the Export_com.vmware.vmafd_xxx.log file as mentioned below
Export_com.vmware.vmafd_xxx.log:
2019-11-14T21:33:10.686Z ERROR __main__ Upgrade Phase 'vmafdupgrade:Export' failed. Exception: Failed to stop VMwareCertificateService^M
Traceback (most recent call last):^M
  File "C:\mig4EDD.tmp\PFiles\VMware\CIS\cis_upgrade_runner\payload\component-scripts\vmafdupgrade\componentExporter.py", line 77, in _stopService^M
    serviceManager.stop(serviceName)^M
  File "C:\mig4EDD.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\service_manager.py", line 979, in wrapper^M
    return getattr(controller, attr)(*args, **kwargs)^M
  File "C:\mig4EDD.tmp\PFiles\VMware\CIS\cis_upgrade_runner\libs\sdk\service_manager.py", line 778, in stop^M
    raise IllegalServiceOperation(errorText)^M
service_manager.IllegalServiceOperation: Service cannot be stopped. Error: System error 1051 has occurred.


stderr:

2019-11-15T17:33:37.87Z INFO service_manager Executing command '[['net', 'stop', 'VMwareCertificateService', '/y']]'
2019-11-15T17:33:57.122Z INFO service_manager Command '[['net', 'stop', 'VMwareCertificateService', '/y']]' has exit-code='2' and stdout: The following services are dependent on the VMware Certificate Service service.
Stopping the VMware Certificate Service service will also stop these services.

   VMware Service Lifecycle Manager
   VMware Secure Token Service
   VMware Identity Management Service

The VMware Service Lifecycle Manager service is stopping........
The VMware Service Lifecycle Manager service could not be stopped.
stderr: System error 1051 has occurred.
 


Environment

VMware vCenter Server 6.5.x
VMware vCenter Server 7.0.x
VMware vCenter Server Appliance 6.7.x

Resolution

To resolve this issue follow the below steps,
  1. Take a snapshot of Source Windows vCenter Server.
  2. Take a snapshot of newly deployed vCenter Server Appliance after Stage1.
  3. In Stage 2, during the export of vmafd, log into the Source Windows vCenter Server, stop the vMon process through task manager.
    • Open the Task Manager
    • Go to "Details" and locate vmon.exe
    • Right click on vmon.exe and click on "End Process Tree"
  4. Continue to monitor the migration process it would finish the VMAFD export phase successfully.