Database issues after power loss

hazzard8

n3wb
May 25, 2020
13
3
Norway
I live in a place with a lot of power outages. I do have a UPS, but obviously not big enough for 2-3 hours. Every time there’s been a power outage, Blue Iris reports over allocated disk space and refuse to move files to storage. To fix this, I have to repair/regenerate my Storage-folder located on my NAS. As my storage-folder is 2500gb, this takes several hours each time.

I can still see and play clips from Storage after a power loss, but new recordings are not moved from "New" to "Storage" before I regenerate, as Blue Iris thinks the Storage-drive is over allocated.

This was not an issue a while back. I think (but are not sure) this happened after the shared drive settings was introduced. (Managed folder, shared drive/Managed folder, unmanaged drive/Managed folder, exclusive-use drive/Unmanaged folder). I never really touched any settings, as my Blue Iris has been running with the same config for 5+ years without any issues at all. My NAS is not exclusive for BI-recordings as there are a lot of other data on it.

Database and new recordings are located on local SSD.

This might be a misconfiguration from my side, but it seems that my knowledge isn’t good enough to fix this myself.

Below is a screenshot of the Storage-settings after a power outage and before repairing the database.

Do any of you have advice so that I don’t have to repair my database after each power outage?

blue_iris_error.png
 
  • Sad
Reactions: bp2008
Have you talked to Blue Iris support about this? The log file will probably contain important clues, so I hope you have BI configured to save a log file.

In my experience there is a high chance of clip database corruption whenever Blue Iris is killed unexpectedly (which happens a lot to some people even without power outages because Blue Iris is not very stable software). But it should not be happening EVERY TIME or even most of the time. This sounds like there's a bug.
 
Yes, I've mailed with support and sent them my database-folder. They wrote "The issue is that the view.stored.dat has very few entries, when likely it should have much more. Somewhere it was truncated perhaps during/after the outage" and then suggested a UPS, which I already have, but the UPS doesn't last for several hours. I never had this issue 1+ year ago, even though there was as much power outages then.
 
I'm using an old 4000VA UPS from work with only RS232. I will need to get a RS232 to USB. I do have a feeling that this can be resolved by altering some settings, as this worked earlier, but my knowledge isn't good enough. Maybe map a drive instead of UNC, setting this drive to exclusive drive?