NSX Upgrade Fails With "unexpected ASN length at position 2"
search cancel

NSX Upgrade Fails With "unexpected ASN length at position 2"

book

Article ID: 428885

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • An NSX upgrade fails to start. The upgrade process stops immediately with an error related to ASN length.

  • Prior to uploading the .mub file to the NSX Manager, it is split and reassembled using a third party utility (7zip, etc.)

  • NSX Manager logs do not include the ASN error message shown in the GUI

Environment

VMware NSX

Cause

The error is caused by a corrupted MUB (NSX Multi-Upgrade Bundle) file. This corruption occurs when the MUB file is split into smaller parts using third-party compression or archiving tools (e.g., 7zip) to bypass transfer restrictions, and subsequently reassembled on the target environment. The reassembly process often fails to reconstruct the binary integrity of the file, leading to the "unexpected ASN length" error during the upgrade validation or installation phase.

Resolution

To resolve this issue, you must ensure that the MUB file remains intact throughout the transfer process.

  1. Do Not Split the MUB File: Do not use third-party tools to divide the MUB file into smaller segments.
  2. Ensure File Integrity: Transfer the complete, original MUB file to the NSX Manager environment as a single, contiguous file.
  3. Validate Integrity (Optional): If the transfer method allows, verify the MD5 or SHA checksum of the file before and after the transfer to ensure no corruption has occurred.
  4. Initiate Upgrade: Once the full, uncorrupted MUB file is present on the NSX Manager, proceed with the upgrade as documented in the official VMware NSX installation guides.