Analyzer can't finish rebuilding Log DB
Hi all,
I was presented with a FortiAnalyzer 400E from another unit we work with, which was purchased in 2016 but never taken out of the box. Since all units in our group now have Fortigate firewalls, I've been tasked with getting it going. It's now installed, and after having a missing disk 2 sorted out (SATA connector not mating on the backplane properly) it's running.
I have upgraded it to the latest OS for the 400E, 6.2.3, and connected our local Fortigate to the device. Logs are being sent to the Analyzer.
However, I can't do anything with the logs, because the Analyzer is stuck with the message "Rebuilding DB - Build Log DB..." on the console. If I click on this message, it shows 1% complete, and is at Step 2: Rebuilding SQL database...., estimated time remaining 42 minutes 44 seconds. Log and report features won't be fully available till rebuilding has completed."
It's been like this for two weeks now, and this persists between reboots, firmware upgrades, and CLI command fiddling. In the CLI, issuing
analyzer.new # diagnose sql status rebuild-db
Rebuilding log SQL database will be starting in a moment...
Is all that is shown.
analyzer.new # diagnose sql status rebuild-adom
FortiAnalyzer is not in rebuild
FortiAuthenticator is not in rebuild
FortiCache is not in rebuild
FortiCarrier is not in rebuild
FortiClient is not in rebuild
FortiDDoS is not in rebuild
FortiMail is not in rebuild
FortiManager is not in rebuild
FortiNAC is not in rebuild
FortiProxy is not in rebuild
FortiSandbox is not in rebuild
FortiWeb is not in rebuild
Newc is not in rebuild
Syslog is not in rebuild
root is not in rebuild
- doesn't give anything useful either. Actually issuing the
analyzer.new # execute sql-local rebuild-db
Rebuild the entire log SQL database has been requested.
This operation will remove the log SQL database and rebuild from log data.
This operation will reboot the device.
Do you want to continue? (y/n)y
Command reboots the device back in to the exact same state, achieving diddly-squat.
Can anyone help me fix this please?
Typically, as it's nearly four years old, we have no support contract :(
Cheers,
James
