Skip to main content
jiahoong112
Staff
Staff
November 11, 2022

Troubleshooting Tip: 'Image upgrade failed. Firmware image is not valid - FortiGate HA firmware upgrade failed due to firmware version mismatch'

  • November 11, 2022
  • 0 replies
  • 29547 views
Description

This article describes how to fix the error 'Image upgrade failed. Firmware image is not valid. FortiGate HA firmware upgrade failed.'

In this case, the Primary and Secondary FortiGates have mismatching firmware versions.

 

Using this method will result in total downtime for the entire network as both FortiGates will be rebooted.

This method also assumes that the HA Management Interface is configured so that the GUI of the FortiGate with the lower firmware version can be accessed.

 

This method will cause a total service outage of both firewalls. Read all the steps first before proceeding to execute them.

Scope FortiGate HA. Applicable for Active-Passive and Active-Active.
Solution
  1. FortiGate HA will be out of sync when the firmware versions on the Primary and Secondary FortiGates do not match.
  2. Download the firmware version to be upgraded from the Fortinet Support Portal: Support.
  3. Perform an HA failover so that the FortiGate on the lower firmware version is the Primary. 
    See this article: Technical Tip: How to use failover flag to change Active unit.
  4. In the meantime, access the FortiGate using the higher firmware version. 

 

Note: 

If there is no management IP configured for access, SSH into the FortiGate on the higher firmware version through the current Primary. 

 

  1. SSH into the current Primary.
  2. Run this command:

 

execute ha manage ?

 

  1. An ID will be seen here. 
  2. Run the following:

 

execute ha manage <id> <username>

 

Enter the ID and the Username of the administrator used to log into FortiGate. Press Enter, type the password in, and then press Enter again. See Technical Tip: Managing individual cluster units with the CLI command 'execute ha manage'.

 

  1. Access the GUI of the FortiGate with the lower firmware version.
  2. Perform the firmware upgrade by uploading the firmware version manually.

 

Below version 7.2.x:

Go to System -> Firmware -> Browse and Upload the firmware image.

 

Version 7.2.x onwards:

Go to System -> Fabric Management -> Select the FortiGate and select Upgrade -> File Upload -> Browse and Upload the firmware image.

 

Version 7.4.x onwards:

Go to System -> Firmware and Registration -> Select the FortiGate and select Upgrade -> File Upload -> Browse and Upload the firmware image.

 

  1. When the Upload progress of the firmware hits 50% or 70%, reboot the other FortiGate that is already on the higher firmware version via SSH.


To reboot the firewall via SSH CLI, run this command:

 

execute reboot

 

  1. Wait for both FortiGates to become active. Both FortiGates should now be on the same firmware version. Wait a few minutes for HA to sync.

 

An alternative option is to change the 'Security level' to '0' on the Primary and Secondary FortiGates and perform the upgrade again. However, this method requires console access.

 

To change the security level: BIOS-level signature and file integrity checking during downgrade.

 

It is recommended to set the Security level back to '2' after the upgrade.

 

Related article:

Technical Tip: Security Level naming changed from 0/1/2 to low/low/high since v7.0.16/v7.2.11/v7.4.6/v7.6.1 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT