“Cannot run upgrade script on host” during upgrade from esxi 5.5 to 6.0

“Cannot run upgrade script on host” during upgrade from esxi 5.5 to 6.0

The host upgrade from ESXi 5.5 to ESXi 6.0 failed with the following error: „Cannot execute upgrade script on host“.

cannont

 

I found two possible issues – the second one worked for me:

Issue 1: /bootbank/state.xxxxxxxx directory not empty

Take a look at KB 2007163 „Upgrading a VMware ESXi host fails with the error: Cannot run upgrade script on host“

Issue 2: troubles with the FDM agent (former HA agent) from the host

In my case issue 2 was the problem – performing the steps descriped below did the trick for me.

I found the following message in the /var/log/vua.log:

2015-08-17T12:29:16.999Z error vua[FFF940D0] [Originator@6876 sub=Default] Alert:WARNING: This application is not using QuickExit(). The exit code will be set to 0.@ bora/vim/lib/vmacore/main/service.cpp:162
–> Backtrace:
–>
–> [backtrace begin] product: VMware vSphere Update Manager Agent, version: 6.0.0, build: build-2621470, tag: vua
–> backtrace[00] libvmacore.so[0x0033D8E3]: Vmacore::System::Stacktrace::CaptureFullWork(unsigned int)

 

Resolution:

  • disable HA for the cluster
  • remove the ESXi host from the cluster
  • connect  via SSH to the ESXi host and run the following commands to uninstall the FDM agent:

(as also descriped in KB 1003714 „Verifying and reinstalling the correct version of the VMware vCenter Server agents”)

cp /opt/vmware/uninstallers/VMware-fdm-uninstall.sh /tmp
chmod +x /tmp/VMware-fdm-uninstall.sh
/tmp/VMware-fdm-uninstall.sh

err

  • reboot the host

Now you can re-add the host to the cluster and perform the upgrade to ESXi 5.5. Do not forget to enable HA.

vovando Avatar

9 responses to ““Cannot run upgrade script on host” during upgrade from esxi 5.5 to 6.0”

  1. 172pilot Avatar
    172pilot

    Thanks a LOT.. My problem was the same as yours.. I have a small test lab with 3 ESXi machines, and in my testing, 2 of the hosts upgraded easily, but the last one failed repeatedly with the same cryptic message. Following your instructions fixed me right up.. Thanks!!

    1. Volodymyr Vrublevskyy Avatar

      Happy to help you. You are welcome.

  2. […] “Cannot run upgrade script on host” during upgrade from esxi 5.5 to 6.0 […]

  3. ryfromthemerrimackvalley Avatar
    ryfromthemerrimackvalley

    Thanks! I used the solution in issue 2 and the update from 5.5 to 6.0 u1 using an OEM iso completed successfully. Note, I ran the commands without removing the host from it’s cluster (HA was off however) Thanks again, Ryan

  4. Amit Joshi Avatar
    Amit Joshi

    Upgraded from 5.5 to 6.0 u2 and this worked like a charm. Thanks!

    1. Volodymyr Vrublevskyy Avatar

      You are welcome. Happy to help you 🙂

  5. Luca Viscomi Avatar
    Luca Viscomi

    Good Intel..This fixed an Upgrade from 5.5 – 6.0u3 (Build 6921384)

    1. Volodymyr Vrublevskyy Avatar

      Happy that it works! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *