Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Remediating an ESXi 5.x host fails with the error: The host returns esxupdate error code:15. The package manager transaction is not successful (2030665)

Symptoms

  • You cannot remediate an ESXi 5.x host using vCenter Update Manager.
  • Remediating ESXi 5.x hosts fails.
  • A package to updated on the host, particularly VMware_locker_tools-light* is corrupt.
  • You see the error:

    error code:15. The package manager transaction is not successful. Check the Update Manager log files and esxupdate log files for more details .
  • The esxupdate.log file (located at /var/log/) contains entries similar to:

    T09:35:10Z esxupdate: HostImage: DEBUG: --- Stage: LockerInstaller adding [VMware_locker_tools-light_5.0.0-1.12.653509], removing []
    T09:35:10Z esxupdate: HostImage: INFO: Attempting to download VIB tools-light

    T09:35:10Z esxupdate: downloader: DEBUG: Downloading from http://10.2.90.21:9084/vum/repository/hostupdate/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-1.12.653509.vib...

    T09:35:10Z esxupdate: LockerInstaller: WARNING: There was an error in cleaning up product locker: [Errno 9] Bad file descriptor: '/locker/packages/5.0.0/floppies'

    T09:35:10Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:

    T09:35:10Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main

    T09:35:10Z esxupdate: esxupdate: ERROR: cmd.Run()

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in Run

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 630, in Stage

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 463, in _download_and_stage
    T09:35:10Z esxupdate: esxupdate: ERROR: InstallationError: ('VMware_locker_tools-light_5.0.0-1.12.653509', '[Errno 32] Broken pipe')
    T09:35:10Z esxupdate: esxupdate: DEBUG: <<<

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: esxupdate: INFO: ---


    Or

    T12:43:18Z esxupdate: esxupdate: ERROR: DatabaseIOError: ('/locker/packages/var/db/locker', "Failed to create temporary DB dir: [Errno 28] No space left on device: '/locker/packages/var/db/locker/vibs.new'"

  • The esxupdate.log file (located at /var/log/) contains entries similar to:

    T09:35:10Z esxupdate: HostImage: DEBUG: --- Stage: LockerInstaller adding [VMware_locker_tools-light_5.0.0-1.12.653509], removing []
    T09:35:10Z esxupdate: HostImage: INFO: Attempting to download VIB tools-light

    T09:35:10Z esxupdate: downloader: DEBUG: Downloading from http://10.2.90.21:9084/vum/repository/hostupdate/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-1.12.653509.vib...

    T09:35:10Z esxupdate: LockerInstaller: WARNING: There was an error in cleaning up product locker: [Errno 9] Bad file descriptor: '/locker/packages/5.0.0/floppies'

    T09:35:10Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:

    T09:35:10Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main

    T09:35:10Z esxupdate: esxupdate: ERROR: cmd.Run()

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in Run

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 630, in Stage

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 463, in _download_and_stage
    T09:35:10Z esxupdate: esxupdate: ERROR: InstallationError: ('VMware_locker_tools-light_5.0.0-1.12.653509', '[Errno 32] Broken pipe')
    T09:35:10Z esxupdate: esxupdate: DEBUG: <<<

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: esxupdate: INFO: ---


    Or

    T12:43:18Z esxupdate: esxupdate: ERROR: DatabaseIOError: ('/locker/packages/var/db/locker', "Failed to create temporary DB dir: [Errno 28] No space left on device: '/locker/packages/var/db/locker/vibs.new'"

  • The esxupdate.log file (located at /var/log/) contains entries similar to:

    T09:35:10Z esxupdate: HostImage: DEBUG: --- Stage: LockerInstaller adding [VMware_locker_tools-light_5.0.0-1.12.653509], removing []
    T09:35:10Z esxupdate: HostImage: INFO: Attempting to download VIB tools-light

    T09:35:10Z esxupdate: downloader: DEBUG: Downloading from http://10.2.90.21:9084/vum/repository/hostupdate/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-1.12.653509.vib...

    T09:35:10Z esxupdate: LockerInstaller: WARNING: There was an error in cleaning up product locker: [Errno 9] Bad file descriptor: '/locker/packages/5.0.0/floppies'

    T09:35:10Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:

    T09:35:10Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main

    T09:35:10Z esxupdate: esxupdate: ERROR: cmd.Run()

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in Run

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 630, in Stage

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 463, in _download_and_stage
    T09:35:10Z esxupdate: esxupdate: ERROR: InstallationError: ('VMware_locker_tools-light_5.0.0-1.12.653509', '[Errno 32] Broken pipe')
    T09:35:10Z esxupdate: esxupdate: DEBUG: <<<

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: esxupdate: INFO: ---


    Or

    T12:43:18Z esxupdate: esxupdate: ERROR: DatabaseIOError: ('/locker/packages/var/db/locker', "Failed to create temporary DB dir: [Errno 28] No space left on device: '/locker/packages/var/db/locker/vibs.new'"


  • The esxupdate.log file (located at /var/log/) contains entries similar to:

    T09:35:10Z esxupdate: HostImage: DEBUG: --- Stage: LockerInstaller adding [VMware_locker_tools-light_5.0.0-1.12.653509], removing []
    T09:35:10Z esxupdate: HostImage: INFO: Attempting to download VIB tools-light

    T09:35:10Z esxupdate: downloader: DEBUG: Downloading from http://10.2.90.21:9084/vum/repository/hostupdate/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-1.12.653509.vib...

    T09:35:10Z esxupdate: LockerInstaller: WARNING: There was an error in cleaning up product locker: [Errno 9] Bad file descriptor: '/locker/packages/5.0.0/floppies'

    T09:35:10Z esxupdate: esxupdate: ERROR: An esxupdate error exception was caught:

    T09:35:10Z esxupdate: esxupdate: ERROR: Traceback (most recent call last):

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main

    T09:35:10Z esxupdate: esxupdate: ERROR: cmd.Run()

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esx5update/Cmdline.py", line 144, in Run

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 243, in InstallVibsFromSources

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 345, in _installVibs

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/Transaction.py", line 388, in _validateAndInstallProfile

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 630, in Stage

    T09:35:10Z esxupdate: esxupdate: ERROR: File "/build/mts/release/bora-474610/bora/build/esx/release/python-2.6-lib-zip-stage/474610/visor/pylib/python2.6/site-packages/vmware/esximage/HostImage.py", line 463, in _download_and_stage
    T09:35:10Z esxupdate: esxupdate: ERROR: InstallationError: ('VMware_locker_tools-light_5.0.0-1.12.653509', '[Errno 32] Broken pipe')
    T09:35:10Z esxupdate: esxupdate: DEBUG: <<<

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetTimeout']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRetries']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: vmware.runcommand: INFO: runcommand called with: args = '['/sbin/esxcfg-advcfg', '-q', '-g', '/UserVars/EsximageNetRateLimit']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.

    T09:35:13Z esxupdate: esxupdate: INFO: ---


    Or

    T12:43:18Z esxupdate: esxupdate: ERROR: DatabaseIOError: ('/locker/packages/var/db/locker', "Failed to create temporary DB dir: [Errno 28] No space left on device: '/locker/packages/var/db/locker/vibs.new'"
  • After a host reboot, the symptoms persist.

Cause

This issue occurs if the package files for floppies in the /locker/packages/Version/ folder is corrupt or full.
 
For example:
  • In ESXi 5.0 systems – /locker/packages/5.0.0/
  • In ESXi 5.1 systems – /locker/packages/5.1.0/ 
  • In ESXi 5.5 systems – /locker/packages/5.5.0/ 

Resolution

To resolve this issue, recreate the/locker/packages/version/ folder, where version is:
  • ESXi 5.0 – /locker/packages/5.0.0/
  • ESXi 5.1 – /locker/packages/5.1.0/ 
  • ESXi 5.5 – /locker/packages/5.5.0/  
To recreate the/locker/packages/version/ folder:
  1. Put the host in the Maintenance Mode.
  2. Navigate to the /locker/packages/version/ folder on the host.
  3. Rename /locker/packages/version/ folder to /locker/packages/version.old.
  4. Remediate the host using Update Manager.

    The /locker/packages/version/ folder is recreated and the remediation should now be successful.
Notes: Verify if you can change to the other folders in /locker/packages/version/. If not, rename all the three folders including floppies.
 
An alternative resolution for ESXi 5.x.
  1. Put the host in the Maintenance Mode.
  2. Navigate to the /locker/packages/version/ folder on the host.
  3. Rename the folder to:

    /locker/packages/version.old

  4. Run this command as the root user to recreate the folder:

    mkdir / locker/packages/version/

    For example:

    In ESXi 5.0:

    mkdir / locker/packages/5.0.0/

    In ESXi 5.1:

    mkdir / locker/packages/5.1.0/

    In ESXi 5.5:

    mkdir locker/packages/5.5.0/

  5. Use WinSCP to copy the folders and files from the / locker/packages/version/ directory on a working host to the affected host.

If the preceding methods do not resolve the issue:
  • Verify and ensure that there is sufficient free space on root folder using this command:

    vdf -h

  • Check the locker location using this command:

    ls -ltr /

    If the locker is not pointing to a datastore:
    1. Rename the old locker file using this command:

      mv /locker /locker.old

    2. Recreate the symbolic link using this command:

      ln -s /store /locker

Additional Information

See Also

Update History

01/21/2014 - Added ESXi 5.5 and vSphere Update Manager 5.5 to Product Versions.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 22 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 22 Ratings
Actions
KB: