"License key has expired. License Expired, "Check system date or install a new license" all operation on ESXi host fails
search cancel

"License key has expired. License Expired, "Check system date or install a new license" all operation on ESXi host fails

book

Article ID: 389204

calendar_today

Updated On:

Products

VMware vCenter Server 7.0 VMware vCenter Server 8.0 VMware vSphere ESXi 7.0 VMware vSphere ESXi 8.0

Issue/Introduction

  • Licenses applied to the ESXi hosts are valid.

  • While powering ON a VM or performing a vMotion, might receive the below error: License key has expired. License Expired, "Check system date or install a new license"



  • In vCenter similar log entries could be seen, log file location:/var/log/vmware/vpxd/vpxd.log
    YYYY-MM-DDTHH:MM:SS.###Z error vpxd[76891] [Originator@6876 sub=vpxLro opID=###] [VpxLRO] Unexpected Exception: N3Vim5Fault14LicenseExpired9ExceptionE(Fault cause: vim.fault.LicenseExpired
    --> )
    --> [context]###[/context]
    YYYY-MM-DDTHH:MM:SS.851Z info vpxd[76891] [Originator@6876 sub=vpxLro opID=###] [VpxLRO] -- FINISH lro--###
    YYYY-MM-DDTHH:MM:SS.851Z error vpxd[76891] [Originator@6876 sub=Default opID=###] [VpxLRO] -- ERROR lro--###--  --  -- VmprovWorkflow: :vim.fault.LicenseExpired
    --> Result:
    --> (vim.fault.LicenseExpired) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = (vmodl.LocalizableMessage) [
    -->       (vmodl.LocalizableMessage) {
    -->          key = "com.vmware.vim.license.error.LicenseExpired",
    -->          arg = (vmodl.KeyAnyValue) [
    -->             (vmodl.KeyAnyValue) {
    -->                key = "info",
    -->                value = "expired"
    -->             }
    -->          ],
    -->          message = "License Expired, Check system date or install a new license."
    -->       }
    -->    ],
    -->    licenseKey = "#####-#####-#####-#####-#####"
    -->    msg = "License key has expired."
    --> }
    --> Args:
    -->
    YYYY-MM-DDTHH:MM:SS.###Z warning vpxd[76891] [Originator@6876 sub=drsExec opID=###] Caught MethodFault Fault cause: vim.fault.LicenseExpired
    --> . Failing powerOn
    

 

  • In ESXi host similar log entries could be seen, log file location: /var/run/log/hostd.log
    YYYY-MM-DDTHH:MM:SS.674Z In(166) Hostd[2098847]: [Originator@6876 sub=Vimsvc.TaskManager opID=### sid=### user=vpxuser] Task Completed : haTask--vim.dvs.HostDistributedVirtualSwitchManager.retrieveDVPortgroupConfigSpec-1963280953 Status success
    YYYY-MM-DDTHH:MM:SS.673Z In(166) Hostd[2098830]: [Originator@6876 sub=AdapterServer opID=CdrsLoadBalancer-### sid=### user=vpxuser:<no user>] AdapterServer caught exception; <<<UUID>, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 36101'>>, ha-vmotionmgr, vim.host.VMotionManager.initiateDestination, <vim.version.v8_0_2_0, internal, 8.0.2.0>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE:0x000000acc7e9e478]>, N3Vim5Fault14LicenseExpired9ExceptionE(Fault cause: vim.fault.LicenseExpired
    YYYY-MM-DDTHH:MM:SSZ Db(##) Hostd[2098830]: [Originator@6876 sub=Solo.Vmomi opID=CdrsLoadBalancer-### sid=###user=vpxuser:<no user>] Arg migrationId:
    YYYY-MM-DDTHH:MM:SSZ Db(##) Hostd[2098788]: --> 7313599505281300864
    YYYY-MM-DDTHH:MM:SSZ Db(##) Hostd[2098788]: --> "/vmfs/volumes/<Datastorename>/VM_name/VM_name.vmx"
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098830]: [Originator@6876 sub=Solo.Vmomi opID=CdrsLoadBalancer-### sid=### user=vpxuser:<no user>] Throw vim.fault.LicenseExpired
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098830]: [Originator@6876 sub=Solo.Vmomi opID=CdrsLoadBalancer-###  sid=### user=vpxuser:<no user>] Result:
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: --> (vim.fault.LicenseExpired) {
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->    faultMessage = (vmodl.LocalizableMessage) [
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->       (vmodl.LocalizableMessage) {
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->          key = "com.vmware.vim.license.error.LicenseExpired",
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->          arg = (vmodl.KeyAnyValue) [
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->             (vmodl.KeyAnyValue) {
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->                key = "info",
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->                value = "expired"
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->             }
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->          ],
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->       }
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->    ],
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->    licenseKey = "#####-#####-#####-#####-#####",
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: -->    msg = ""
    YYYY-MM-DDTHH:MM:SSZ In(##) Hostd[2098788]: --> }
    YYYY-MM-DDTHH:MM:SSZ Er(##) Hostd[2098819]: [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/######-#####-####-########/VM_name/VM_name.vmx opID=CdrsLoadBalancer-### sid=### user=vpxuser:<no user>] CheckLicenses: ha-license-manager failed power check

Environment

vCenter 8.x

vSphere 8.x

Cause

In the ESXi host, hostd service does not have the correct information regarding the License assigned to the ESXi host.

Resolution

To resolve the issue, refresh the license information in the host

Follow the below steps:

  1. SSH to the ESXi host in question
  2. Run the below commands

    touch /etc/vmware/license.cfg
    vim-cmd vimsvc/license --show
    These commands enforce the hostd to recheck the license and refresh the correct expiration date.
  3. Try to power on the VM from vCenter or vSphere now.

 



Additional Information

Rebooting the affected ESXi host or restarting the hostd service on ESXi host may fix the issue. 

/etc/init.d/hostd restart