NSX Manager upgrade fails, Failed to run CARR script
search cancel

NSX Manager upgrade fails, Failed to run CARR script

book

Article ID: 445150

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • Upgrading NSX Manager to NSX 4.2.4
  • Pre-check for NSX Upgrade might fail on SDDC Manager
  • Ran CARR script manually and did not find any certificate issue.
  • At the SDDC, the error appears three times, UC for MP - Execute CARR Script to check the certificate issue.
    ERROR description: Execute CARR Sript to check the certificate issues for MP <NSX_MANAGER_FQDN> failed with the following error: Failed to run CARR script. Please check the logs for more details.
  • NSX MANAGER logs: /var/log/upgrade-coordinator/upgrade-coordinator.log
    CARRScriptExecutionTask - [nsx@6876 comp="nsx-manager" level="WARNING" subcomp="upgrade-coordinator"] Failed to run the script: nice -n 10 sudo /opt/vmware/upgrade-coordinator-tomcat/bin/uc_helper.py carr-script -d -l. Exit code: 1, Output: [Errno 2] No such file or directory: '/image/carr/carr-script-pub/carr-script'

Environment

VMware NSX 4.2.4

Cause

During the upgrade to NSX 4.2.4, the system automatically starts running the CARR script. If the /image/carr/carr-script-pub folder is missing, the system cannot proceed with the precheck and installation because it cannot run the CARR script.

Resolution

Workaround:

  1. Connect to the NSX Manager console using SSH as the root user.
  2. Find the CARR script at /repository/4.2.4.0.0.25410638/carr/carr-script-pub.tar.gz
  3. Create the folder /image/carr/carr-script-pub using the following command:
    mkdir -p /image/carr/carr-script-pub/
  4. Extract (untar) the file into the folder /image/carr/carr-script-pub/ using the following command:
    tar -xzf carr-script-pub.tar.gz -C /image/carr/carr-script-pub/
  5. Repeat steps 1 through 3 on the other two NSX Manager nodes.
  6. Run the pre-check again from the SDDC Manager interface.

Additional Information

Using Certificate Analyzer, Results and Recovery (CARR) Script to fix certificate related issues in NSX