The Problem: When running the "Rebuild Archive Index" all footage is not fully restored (not visible on the Timeline).
If you've recently run "Rebuild Archive Index" and you notice that the Rebuilding process is taking too long or you do not see all footage on the Timeline after completion even if you're certain that data exists in the storage, then it's likely that the archive, you are trying to re-index, is a corrupted database.
Step 1: Make your system more resilient. Do this before you restore your files or you might face the same problem again in the future.
- Make sure your archive files and directories that are not moved or renamed. Any changes in an active directory that WAVE is writing to, without a corresponding change in the storage settings for a Server, will cause an error.
- Make sure you have enough reserved space in the storage drives. The likelihood of a corrupted database increases vastly when drives are full.
Step 2: Restore Archives
- Use the In-Client Upgrade (System Administration -> Updates) to update your system to the latest build of WAVE.
- Once the upgrade is complete stop the WAVE Server.
- In Windows: Find the WAVE Server Tray Tool (in the lower right-hand side of your Windows Start bar or searchable from Start Menu) and choose "Stop Server"
- In Linux: Use Terminal command $sudo service hanwha-mediaserver stop
- Remove the corrupted database.
- In Windows: Use Windows Explorer to navigate to the directory for the affected archives. Look for a file that ends in sqlite and delete it.
- In Linux: Navigate to each drive. Look for a file that ends in sqlite and delete it.
- For NAS: If you are restoring a NAS device, the database files will be stored in the /opt/hanwha/mediaserver/var
- After you have removed the _media.sqlitefiles start the WAVE Server.
- In Windows: Find the WAVE Server Tray Tool (in the lower right-hand side of your Windows Start bar or searchable from Start Menu) and choose "Start Server"
- In Linux: Use Terminal command $sudo service hanwha-mediaserver start
- On the WAVE Client (while logged into the System as an Administrator) head to Server Settings -> Storage Management and press Rebuild Archive Index.
- During the Archive Rebuild is in progress Server will still be able to record and rewrite footage.
- When rebuilding is complete - which could take a significant amount of time depending on how large your existing archive is - you'll now have a clean, more reliable archive database and archive and all recorded video should now again be available in your Timeline.