FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
shafiq23
Staff
Staff
Article Id 239627
Description This article describes how to fix the ‘database not available’ status as seen in the FortiWeb System Resources widget.
Scope FortiWeb, FortiWeb VM.
Solution

FortiWeb builds a database from its events, attack, and traffic raw logs. In some cases, the database became unavailable and caused an improper log view in FortiWeb. There are also cases where the database is available but the GUI log view shows inconsistent and delayed log entries.

 

From GUI:

 

database not available.png

 

From CLI:

 

Database issue.png

 

Provided that this is not an issue with FortiWeb hard disks, the database status issue can be fixed by rebuilding the FortiWeb database using CLI.

 

From CLI:

 

Run the below CLI command for database rebuild:

 

# execute db rebuild

 

This operation will clean and rebuild database for disklog.
Do you want to continue? (y/n)

 

Note:

 

1) In 6.4.0 and earlier, database rebuild will prompt for a reboot and if machine learning is enabled, machine learning data will be lost.

 

2) In 7.0 and later, FortiWeb will not reboot for database rebuild and if machine learning is enabled, machine learning data will be lost.

 

Steps to verify:

 

From GUI:

 

1) Navigate to Dashboard -> Status -> System Resources widget.


2) Review Database Status information.

 

Database OK.png

 

From CLI:

 

# get system status

 

database available.png


If the issue persists, contact the Fortinet support team for further troubleshooting.

 

Related document:

 

https://community.fortinet.com/t5/FortiWeb/Technical-Tip-How-to-collect-the-logs-needed-for-investig...