/ESXi 6.0 reports “error code 99” during Stage patches to entity VUM operation

ESXi 6.0 reports “error code 99” during Stage patches to entity VUM operation

When we have a maintenance window and need to do our work in the Virtual Environment, we always find new issues. This time was in one of the ESXi 6.0 hosts.

This is an HP DL360 G7 with the ESXi 6.0 build 3620759.

When trying to use VMware update manager in this host, the scan runs without any problem, but when trying to Stage the updates, we get:

Stage patches to entity esxi01.localdomain. The host returns esxupdate error code:99.
An unhandled exception was encountered. Check the Update Manager log files and esxupdate log files for more details.

Looking at the esxpudate.log(in ESXi var/log/), I see a lot of failed tries to upload VIB files to the repository. Also this:

2016-04-24T15:43:54Z esxupdate: root: ERROR: Traceback (most recent call last):
2016-04-24T15:43:54Z esxupdate: root: ERROR:   File “/usr/lib/vmware/esxcli-software”, line 462, in <module>
2016-04-24T15:43:54Z esxupdate: root: ERROR:     main()
2016-04-24T15:43:54Z esxupdate: root: ERROR:   File “/usr/lib/vmware/esxcli-software”, line 453, in main
2016-04-24T15:43:54Z esxupdate: root: ERROR:     ret = CMDTABLE
2016-04-24T15:43:54Z esxupdate: root: ERROR:   File “/usr/lib/vmware/esxcli-software”, line 173, in ProfileGetCmd
2016-04-24T15:43:54Z esxupdate: root: ERROR:     raise Exception(“No host image profile defined”)
2016-04-24T15:43:54Z esxupdate: root: ERROR: Exception: No host image profile defined

I needed to check the Host Software profile(not the same as the Host Profile) and check the issue.

Then I noticed that the ESXi somehow lost its software profile, and it was not possible to stage any update or even install a VIB manually.

When troubleshooting the issue, I found out that there was no Software profile in this host.

 

I needed to check the vibs folder and profiles folder in /var/db/esximg. I noticed the two folders were empty. Also, checking the VIB list in this host, I get this:

When checking the same information from a working ESXi host, I get this:

And also this:

Searching on the internet for the same type of issue, I cannot find anything similar. VMware KB2043170 has a solution for the “error code 99” by Initializing VUM without reinstalling. But since this is a problem in one host, this could not be the solution for this issue.

Then found an article with a similar issue in 

Since I didn’t want to reinstall the ESXi host at the moment, so I needed to try this solution. Even was not 100% similar, it was almost the same.

I followed Patrick’s recommendation to copy the esximg files/folders from a working host(esxi-02) to the corrupted ESXi host(esxi-01).

First, if you don’t have your SSH Client enabled in the host firewall, you need to allow to do the next task using the SCP command.

To enable SSH Client in the source ESXi host:

Note: Don’t forget to disable SSH Client after finishing these tasks.

After you run the SCP command, you will be prompted for the root password of the remote host, and once you have successfully authenticated, the file will copy.

After copying the files, check if the files are in the ESXi host(esxi01).

Host Software profile:

After checking that the files are copied into the destination, I rerun the VUM Scan into the host and after Stage, and no errors were found. After that, I remediated the ESXi host, and it is fully updated.

Again, thanks to Patrick for his solution that put me on the right track.

I hope this can help.

Share this article if you think it is worth sharing. If you have any questions or comments, comment here or contact me on Twitter.

©2016 ProVirtualzone. All Rights Reserved
By | 2022-03-29T12:34:50+02:00 April 24th, 2016|vCenter, VMware Posts|6 Comments

About the Author:

I have over 20 years of experience in the IT industry. I have been working with Virtualization for more than 15 years (mainly VMware). I recently obtained certifications, including VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023. Additionally, I have VCP6.5-DCV, VMware vSAN Specialist, vExpert vSAN, vExpert NSX, vExpert Cloud Provider for the last two years, and vExpert for the last 7 years and a old MCP. My specialties are Virtualization, Storage, and Virtual Backup. I am a Solutions Architect in the area VMware, Cloud and Backup / Storage. I am employed by ITQ, a VMware partner as a Senior Consultant. I am also a blogger and owner of the blog ProVirtualzone.com and recently book author.

6 Comments

  1. […] a previous article we have fix some issues regarding the VUM errors and also with ESXi […]

  2. […] a previous article we have fix some issues regarding the VUM errors and also with ESXi […]

  3. Chris P 01/05/2017 at 09:25

    Great article, just wanted to double check that your copy command is correct, as you seem to be copying to same destination as the source?

    [root@esxi02:~] scp -r /var/db/esximg/ root@esxi02:/var/db

    • Luciano Patrao 01/05/2017 at 10:06

      Hi Chris,

      Thank you for your reply.

      Yes you are correct, was a typo error(I have already updated). Is [root@esxi02:~] scp -r /var/db/esximg/ root@esxi01:/var/db

      Is to login to source ESXi, copy the folder esximg(from esxi02) to the foder /var/db (in esxi01).

      Thanks again for your comment.

      Luciano Patrao

  4. James 12/06/2017 at 13:18

    Thanks for this saved my ass!

    Happened on a BL460c Gen9 upgrading from build 3825889.

Leave A Comment