vSphere 6.5 Patch Update fails with Install Failed error message in VAMI Page .

Snippets from the logs:

software-packages.log:

=============

Executing /lib/systemd/systemd-sysv-install enable vami-lighttp

Created symlink from /etc/systemd/system/multi-user.target.wants/vami-lighttp.service to /usr/lib/systemd/system/vami-lighttp.service.

You are required to change your password immediately (password aged)

useradd: PAM: Authentication token is no longer valid; new one required

You are required to change your password immediately (password aged)

usermod.bk: PAM: Authentication token is no longer valid; new one required

Traceback (most recent call last):

  File “/usr/sbin/usermod”, line 19, in <module>

    errcode = subprocess.check_call(sys.argv)

  File “/opt/vmware/lib/python2.7/subprocess.py”, line 186, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command ‘[‘/usr/sbin/usermod.bk’, ‘-a’, ‘-G’, ‘cis’, ‘cm’]’ returned non-zero exit status 1

error: %pre(vmware-cm-6.5.0-9451637.x86_64) scriptlet failed, exit status 1

error: vmware-cm-6.5.0-9451637.x86_64: install failed

error=Service-control failed. Error Failed to start vmon services.vmon-cli RC=1, stderr=Failed to start cm services. Error: Operation timed out

rc=1

[21889]CRITICAL:root:Installation process failed

[21889]DEBUG:root:Command Failed

Exception:

Traceback (most recent call last):

  File “/usr/lib/applmgmt/support/scripts/software-packages.py”, line 471, in install

    answers=answer)

  File “/usr/lib/applmgmt/base/py/vmware/vherd/base/software_update.py”, line 1949, in installPackagesEP

    logger.error(“Package update failed”)

  File “/usr/lib/applmgmt/base/py/vmware/vherd/base/task_manager.py”, line 160, in trackedfunc

    value = func(*args, **kwargs)

  File “/usr/lib/applmgmt/base/py/vmware/vherd/base/software_update.py”, line 1013, in serviceAction

    progress = True, message = “%s all services ” % messageDict[action]))

  File “/usr/lib/applmgmt/base/py/vmware/vherd/base/software_update.py”, line 814, in _processOutput

    raise GenericException(“Command Failed”)

GenericException: Command Failed

=============

—  Starting services using service-control –start –all fails at vmware-cm service

cm.log:

=============

2019-04-19T05:30:27.158Z

ERROR com.vmware.cis.services.cm.service.Main ()] start: Component Manager failed to start

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘httpServer’ defined in class path resource

: Cannot resolve reference to bean ‘vapiService’ while setting bean property ‘services’ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘vapiService’ defined in class path resource

: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonNode

=============

messages.log:

=============

2019-04-19T03:47:06.953135+00:00 mrkboblvc useradd[42710]: Authentication token is no longer valid; new one required

2019-04-19T03:47:06.953184+00:00 mrkboblvc useradd[42710]: failed adding user ‘imagebuilder’, data deleted

2019-04-19T03:47:06.953727+00:00 mrkboblvc imagebuilder: failed to add user imagebuilder

2019-04-19T03:47:06.979308+00:00 mrkboblvc usermod[42714]: pam_unix(usermod:account): expired password for user root (root enforced)

2019-04-19T03:47:06.979622+00:00 mrkboblvc usermod[42714]: Authentication token is no longer valid; new one required

=============

This issue occurs due to expired root password in the vCenter Server Appliance.

To Resolve this issue:

1. Reset the root password

2. Patch the vCenter Server Appliance again using VAMI or using the command line

3. If Patch Update continue to fail, you may need to :

    — Restore the vCenter Server Appliance to a snapshot state before attempting Patch Update or Restore from Backup

    — Perform step 1 to 3 before attempting Patch Update