Description | This article describes the method of deleting/restoring the IP Geography database. |
Scope | FortiGate IP Geography database. |
Solution |
There may be times that the lower-end FortiGate models (which have RAM lesser than 2GB), prompt the error 'Failed to unzip /etc/geoip_db.gz' in the console or during the boot time. The procedure below can be tested to recover the Geo IP database.
To delete the existing IP Geography database. This operation will reboot the system.
Command to delete IP Geography database:
diagnose geoip delete-geoip-db
Output:
This operation will delete the Geoip Database and reboot the system! Admin:admin
If the connection to FortiGuard is unavailable, upgrade the FortiOS firmware after reboot.
To verify the status after deleting IP Geography database:
diagnose autoupdate versions
Looking for the IP Geography database as below. The version will show 0.00000.
Output as below:
IP Geography DB
To install the IP Geography database manually:
diagnose debug application update -1 diagnose debug enable diagnose update-geo-ip
Output from update debug:
do_update[523]-UPDATE successful
To verify the status after updating the IP Geography database:
diagnose autoupdate versions
Looking for IP Geography database as below. The latest version will be shown.
Output as below:
IP Geography DB
If the error ('Failed to unzip /etc/geoip_db.gz') persists and the Geo IP database still shows version 0.0.0.0, a TFTP format flash can be done after backing up the config file in the maintenance period. Reload firmware, restore config file, and perform the above steps again: Technical Tip: Formatting and loading FortiGate firmware image using TFTP
If the error persists, a ticket can be opened with Fortinet Technical Support for further assistance. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.