Skip to main content
mriswan
Staff
Staff
August 22, 2024

Troubleshooting Tip: IPS engine manual update failing with error 'Failed to upgrade database'

  • August 22, 2024
  • 0 replies
  • 3031 views
Description This article describes how to resolve a scenario where the manual upgrade of the IPS engine fails with the error 'Failed to upgrade database'.
Scope Firewall with BIOS security level set to 2.
Solution

If the BIOS security level is set to 2, the firewall will reject the manually uploaded unsigned engine and give the following error:

 
 
 

img.png

 

Verify the BIOS security level using the 'get system status' command on the CLI:

 

get system status
Version: FortiGate-200F v7.4.3,build2573,240201 (GA.F)
First GA patch build date: 230509
Security Level: 2


First, change the firewall security level to 1 before upgrading the IPS Engine.

 

To change the security level:

  1. Connect to the console port of the FortiGate.
  2. Reboot the FortiGate (execute reboot) and enter the BIOS menu.
  3. Press [I] to enter the System Information menu.
  4. Press [U] to enter the Set security level menu.
  5. Enter the required security level.
  6. Continue to boot the device.


Refer to this document: Enhance BIOS-level signature and file integrity checking for more information about BIOS-level signatures and file integrity.

This error can also occur if the IPS engine version is a special build provided by the developers; in this case, enable autoupdate downgrade using the command below:

 

diagnose autoupdate downgrade enable 

 

After executing the command, upload the required IPS engine file, and once the IPS upgrade has completed successfully, revert the setting to its default state by running the command:

 

diagnose autoupdate downgrade disable

 

Additional Information: In some environments, downtime for rebooting the device to lower the security level is not acceptable. In such cases, if the firewall is managed by FortiManager, the device administrator can import the required IPS engine package into FortiManager and install it directly. This allows the IPS engine to be upgraded without reducing the security level or rebooting the firewall.

 

Note:
From version v7.0.16, v7.2.11, v7.4.6, and v7.6.1, the BIOS security level has been updated from numeric classification 0/1/2 to Low/High. For more information, refer to this document BIOS security Low and High level classification.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!