FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
wmichael
Staff
Staff
Article Id 362714
Description This article describes the errors 'Wrong image for this model' and 'invalid compressed format (err=2)' when uploading a firmware image to a FortiGate via TFTP server and how to troubleshoot the issue.
Scope FortiGate.
Solution

For information on reloading firmware via TFTP server to a FortiGate see Formatting and loading FortiGate firmware image using TFTP

 

Occasionally while reloading the firmware the following errors may be seen.

 

[C]:  Configure TFTP parameters.

[R]:  Review TFTP parameters.

[T]:  Initiate TFTP firmware transfer.

[F]:  Format boot device.

[B]:  Boot with backup firmware and set as default.

[I]:  System configuration and information.

[Q]:  Quit menu and continue to boot.

[H]:  Display this list of options.

 

Enter C,R,T,F,B,I,Q,or H:

 

Please connect TFTP server to Ethernet port "MGMT".

MAC:         AC:71:2E:D2:42:B6

##################################################################################

Total 86843736 bytes data downloaded.

Verifying the integrity of the firmware image.

Wrong image for this model.

 

 

[C]:  Configure TFTP parameters.

[R]:  Review TFTP parameters.

[T]:  Initiate TFTP firmware transfer.

[F]:  Format boot device.

[B]:  Boot with backup firmware and set as default.

[I]:  System configuration and information.

[Q]:  Quit menu and continue to boot.

[H]:  Display this list of options.

 

Enter C,R,T,F,B,I,Q,or H:

 

Please connect TFTP server to Ethernet port "MGMT".

MAC:         AC:71:2E:D2:42:B6

##################################################################################

Total 86691202 bytes data downloaded.

Verifying the integrity of the firmware image.

invalid compressed format (err=2)

 

  1.  'Wrong image for this model.' This error is self-explanatory: verify that the correct image for the FortiGate model is being used.   If the downloaded firmware image is for the correct model, the image may have been corrupted.

 

  1. 'invalid compressed format (err=2)': This error means that the image is invalid and has been corrupted.

 

Verify the correct image has been downloaded from https://support.fortinet.com.

If the image is correct, verify the MD5 or SHA-512 checksum of the image.

 

To find the checksum, see How to find firmware image checksums.

To verify the firmware image checksum, see How to verify downloaded firmware checksum.

 

If the checksum matches, check the cable between the FortiGate and the TFTP server. A crossover cable should be used and should be category 5 or higher. Try replacing the cable if needed.

 

Also ensure that no Windows firewall or antivirus on the TFTP server is blocking the transfer, as this can also cause issues during the firmware upload process.

 

If the above has been checked, format the disk before transferring the firmware image.

 

Related article:

Message 'invalid compressed format' or 'incomplete literal tree' during TFTP procedure