Appliance Reconfiguration Fails, Site Pair Disconnects, or SRM Service Stops - VMware Live Recovery
search cancel

Appliance Reconfiguration Fails, Site Pair Disconnects, or SRM Service Stops - VMware Live Recovery

book

Article ID: 423449

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

  • While reconfiguring VLR appliance it fails with an error 

    UI ERROR




    Operation Failed A general system error occurred: N7Vmacore15SystemExceptionE Failed to reload vpostgres.service: The connection was closed by the remote end during handshake. (1)

    (Or)

    ERROR
    Operation Failed
    A general system error occurred: N7Vmacore9ExceptionE com.vmware.vapi.std.errors.
    unauthorized
       
     
  • srm-server service fails to start on the VLR appliance.

  • Errors in Live Site Recovery UI banner shows, "Unable to retrieve pairs from extension servers at https://##.##.##.##:443/drserver/vcdr/vmomi/sdk."

  • Some times, the site pair gets disconnected and below error messages will be reported when initiating a site pair reconnect operation.

    'Unable to retrieve Live Site Recovery summary data. Unable to login to VMware Live Site Recovery at https://<VLR-FQDN>:443/drserver/vcdr/vmomi/sdk'
  • In cases where site pair is disconnected, options to create new protection group and recovery plan will be disabled

  • When launching the Live Site Recovery plugin via vCenter, the following error is seen: "upstream connectt error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: delayed connect error: Connection refused"



  • Issue is usually observed after vCenter patch upgrade.
  • SRM plugin displays Not accessible in vCenter post convergence of vSphere Replication/Site Recovery Manager into VMware Live Recovery Appliance. 

Environment

  • VMware Live Site Recovery 9.0.3

  • VMware Live Site Recovery 9.0.4

  • VMware Live Site Recovery 9.0.5

  • Protection and Recovery 9.1.1.0
  • VMware vCenter Server

Cause

  • The issue is caused by authentication failures associated with the SRM Service Account. The SRM service is unable to initialize because the existing service account credentials stored in the VMware Directory Service (vmdir) are invalid or out of sync, leading to an UNAUTHORIZED error during service startup and password management operations.

  • Backtrace triggered in local VLR appliance's /opt/vmware/support/logs/srm/vmware-dr.log while starting srm-server service.

    2025-12-23T09:17:51.848+01:00 panic vmware-dr[07533] [SRM@6876 sub=Default] Application error: N7Vmacore9ExceptionE Failed to connect to remote services on ["#######.com"]
    --> [context]zKq7AVECAAQAAL7KeAERdm13YXJlLWRyAABNBU9saWJ2bWFjb3JlLnNvAACiCSUA15kiAYl6AnZtd2FyZS1kcgABUQUMAXHeDAKe9QlsaWJkci1hdXRob3Jp
    emF0aW9uLnNvAAEixQsBM5sMAQ6sCwF+WwMBO98MAxarDGxpYmRyLXZtYWNvcmUuc28AAbAHAwRKcgJsaWJjLnNvLjYABAVzAgFtEwM=[/context]
    --> [backtrace begin] product: vmware-dr, version: 9.0.3.0, build: build-24693438, tag: vmware-dr, cpu: x86_64, os: linux, buildType:
     release
    --> backtrace[00] libvmacore.so[0x004F054D]
    --> backtrace[01] libvmacore.so[0x002509A2]: Vmacore::System::Stacktrace::CaptureWork(unsigned int)
    --> backtrace[02] libvmacore.so[0x002299D7]: Vmacore::System::SystemFactory::CreateQuickBacktrace(Vmacore::Ref<Vmacore::System::Backt
    race>&)
    --> backtrace[03] vmware-dr[0x00027A89]
    --> backtrace[04] vmware-dr[0x000C0551]
    --> backtrace[05] vmware-dr[0x000CDE71]
    --> backtrace[06] libdr-authorization.so[0x0009F59E]: Dr::Authorize::EntityWithPermissionsLifetimeMixin::_Activate(bool)
    --> backtrace[07] vmware-dr[0x000BC522]
    --> backtrace[08] vmware-dr[0x000C9B33]
    --> backtrace[09] vmware-dr[0x000BAC0E]   
  • From the local VLR's /opt/vmware/support/logs/srm/vmware-dr.log it can be observed that the SRM service account is reported to have expired password:
    2025-12-23T09:20:55.062+01:00 verbose vmware-dr[13563] [SRM@6876 sub=LocalSite.LocalStsServer.ConnHandler] Password for SA 'SRM-########-####-####-####-############@vsphere.local' expired. Starting password change. 

2025-12-23T09:20:55.062+01:00 warning vmware-dr[12277] [SRM@6876 sub=LocalSite.LocalStsServer connID=sts-q3] Failed to connect
--> N7Vmacore9ExceptionE {
-->     "ERROR": {
-->         "com.vmware.vapi.std.errors.unauthorized": {
-->             "data": {
-->                 "OPTIONAL": null
-->             },
-->             "error_type": {
-->                 "OPTIONAL": "UNAUTHORIZED"
-->             },
-->             "messages": [
-->                 {
-->                     "STRUCTURE": {
-->                         "com.vmware.vapi.std.localizable_message": {
-->                             "args": [
-->                                 "Invalid Credential, VMware directory error[9234]"
-->                             ],
-->                             "default_message": "User is not authorized for (Invalid Credential, VMware directory error[9234])",
-->                             "id": "com.vmware.vcenter.svcaccountmgmt.unauthorized",
-->                             "localized": {
-->                                 "OPTIONAL": null
-->                             },

  • On the local vCenter's /var/log/vmware/sso/svcaccountmgmt.log the Invalid credential error for the SRM account will be reported:

     ERROR svcaccountmgmt[79:tomcat-http--42] [CorId=###### OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.PasswordMgmt] changeUserPassword: Got Directory Exception
     ERROR svcaccountmgmt[79:tomcat-http--42] [CorId=#### OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.DirectoryError] Invalid Credential, VMware directory error[9234]
     INFO svcaccountmgmt[56:tomcat-http--19] [CorId= OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.PasswordMgmt] Changing Account Password for account: SRM-########@vsphere.local
     ERROR svcaccountmgmt[56:tomcat-http--19] [CorId= OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.PasswordMgmt] changeUserPassword: Got Directory Exception
     ERROR svcaccountmgmt[56:tomcat-http--19] [CorId= OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.DirectoryError] Invalid Credential, VMware directory error[9234]
     INFO svcaccountmgmt[67:tomcat-http--30] [CorId=###### OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.PasswordMgmt] Changing Account Password for account: SRM-#########@vsphere.local
     ERROR svcaccountmgmt[67:tomcat-http--30] [CorId=0b52b9db-bfb1-4821-####-############ OpId=] [com.vmware.vcenter.svcaccountmgmt.impl.PasswordMgmt] changeUserPassword: Got Directory Exception
  • On the local vCenter's /var/log/vmware/vmdird/vmdird.log also reports invalid credentials as below 

    ERROR vmdir 140360638510784 [vc@4413] SASLSessionStep: sasl error (-13)(SASL(-13): authentication failure: client evidence does not match what we calculated. Probably a password error)
   ERROR vmdir 140360638510784 [vc@4413] VdirPasswordFailEvent from user(cn=srm-xxxxxxx-xxxx-xxxx-xxxx-xxxxx685a, cn=serviceprincipals, dc=vsphere, dc=local), error(0)()
   ERROR vmdir 140360638510784 [vc@4413] VmDirSendLdapResult: Request (Bind), Error (LDAP_INVALID_CREDENTIALS(49)), Message ((49)(SASL step failed.)), (0) socket (127.0.0.1)
   ERROR vmdir 140360638510784 [vc@4413] Bind Request Failed (127.0.0.1) error 49: Protocol version: 3, Bind DN: "CN=SRM-xxxxxxx-xxxx-xxxx-xxxx-xxxxx685a, cn=ServicePrincipals, dc=vsphere, dc=local", Method: SASL
   vmdir 140360638510784 [vc@4413] SASLSessionStep: sasl error (-13)(SASL(-13): authentication failure: client evidence does not match what we calculated. Probably a password error)
   WARNING vmdir 140360638510784 [vc@4413] Lockout policy check - account lockout. (cn=com. vmware. vr-sa-xxxxxxx-xxxx-xxxx-xxxx-xxxxxa84, cn=serviceprincipals, dc=vsphere, dc=local)
  ERROR vmdir 140360638510784 [vc@4413] VdirPasswordFailEvent from user(cn=com.vmware.vr-sa-xxxxxxx-xxxx-xxxx-xxxx-xxxxxa84, cn=serviceprincipals, dc=vsphere, dc=local), error(0)()
  ERROR vmdir 140360638510784 [vc@4413] VmDirSendLdapResult: Request (Bind), Error (LDAP_INVALID_CREDENTIALS(49)), Message ((49)(SASL step failed.)), (0) socket (127.0.0.1)
  ERROR vmdir 140360638510784 [vc@4413] Bind Request Failed (127.0.0.1) error 49: Protocol version: 3, Bind DN: "CN=com. vmware.vr-sa-xxxxxxx-xxxx-xxxx-xxxx-xxxxxa84, cn=ServicePrincipals, dc=vsphere, dc=local", Method: SASL

 

  • The above expired credentials may also be reported for the remote SRM service account.

Resolution

  • This issue is currently under investigation by engineering.
     

As a workaround to resolve the credential conflict, first reconfigure the appliance to reset the service account credentials. If the issue persists after reconfiguration, the corrupted service account must be manually cleaned up using the steps below, followed by another appliance reconfiguration to fully resolve the issue:

  1. Take a snapshot of the vCenter Server. (So that it can be reverted back to incase of any unexpected issues) Take offline snapshot if vCenter's are in linked mode.

  2. Make a note of the local SRM's service account and the remote site's SRM service account which are reporting to have expired credentials. (Example SRM-### and SRM-remote-####)

  3. SSH to the vCenter.

  4. Run the following commands to list the service accounts on the vCenter. Validate that the SRM local and remote SRM accounts which were found in the svcaccountmgmt.log (from one vCenter) are listed here & delete the types of solution users listed below. 

    root@vCenter [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli svcaccount list
    Enter password for administrator@vsphere.local:
    1. SRM-49ab8c2b-7093-4542-850f-############
    2. SRM-remote-3f6ac249-e8d7-4609-abfe-############
    3. h5-dr-sa-208ee886-3d9b-460e-a641-############@vsphere.local

  5. Then proceed to delete the local, remote SRM service account and the h5-dr-sa using this command: (Where <service-account-name> - is the SRM service account name as listed in step 4. )

    COMMAND: /usr/lib/vmware-vmafd/bin/dir-cli svcaccount delete --name <SRM-########-####-####-####-############>

    Example:

    root@vCenter [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli svcaccount delete --name SRM-49ab8c2b-7093-4542-850f-############
    Enter password for [email protected]:
    Service account [SRM-49ab8c2b-7093-4542-850f--############@] deleted successfully

    root@vCenter [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli svcaccount delete --name SRM-remote-3f6ac249-e8d7-4609-abfe-############
    Enter password for [email protected]:
    Service account [SRM-remote-3f6ac249-e8d7-4609-abfe--############@] deleted successfully

    root@vCenter [ ~ ]# /usr/lib/vmware-vmafd/bin/dir-cli svcaccount delete --name h5-dr-sa-49ab8c2b-7093-4542-850f-############@vsphere.local
    Enter password for [email protected]:
    Service account [h5-dr-sa-49ab8c2b-7093-4542-850f--############@@vsphere.local] deleted successfull

  6. Perform the Reconfigure operation on the VMware Live Recovery appliance.

  7. Repeat the same steps 1 to 7 on the remote site.

Note:

  • If Reconfigure is stuck on "Stopping Services" SSH into VLSR appliance and run the following:

    sudo systemctl kill -s SIGKILL srm-server

  • Delete the remote SRM service account only if it reports the expired credential issue as well.

Once the the above steps is implemented refer resolution section of KB # 367383 to set service account password to never expire. 

Example snippet from KB # 367383 

Set the password expiry to "password-never-expires":

# /usr/lib/vmware-vmafd/bin/dir-cli user modify --account SRM-########-####-####-####-############ --password-never-expires
Enter password for [email protected]:
Password set to never expire for [<User_Name>].

Validation: 

#  /usr/lib/vmware-vmafd/bin/dir-cli user find-by-name --account <SRM-########-####-####-####-############> --level 2
Enter password for [email protected]:
Account: <SRM-########-####-####-####-############>
UPN: <User_Name>@<SSO_DOMAIN>
Account disabled: FALSE
Account locked: FALSE
Password never expires: TRUE
Password expired: FALSE
Password expiry: N/A

Additional Information

If the user mentioned in the error is not listed under the service account list, then check whether it exists under the solution user list. If present, delete it using the commands below, and then reconfigure the appliance again:

/usr/lib/vmware-vmafd/bin/dir-cli service list

/usr/lib/vmware-vmafd/bin/dir-cli service delete --name <service-account-name>