<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://blueirissoftware.com/forum/app.php/feed/topic/2817" />

	<title>Blue Iris</title>
	<subtitle>Blue Iris User Group</subtitle>
	<link href="https://blueirissoftware.com/forum/index.php" />
	<updated>2021-11-03T17:32:34+00:00</updated>

	<author><name><![CDATA[Blue Iris]]></name></author>
	<id>https://blueirissoftware.com/forum/app.php/feed/topic/2817</id>

		<entry>
		<author><name><![CDATA[varghesesa]]></name></author>
		<updated>2021-11-03T17:32:34+00:00</updated>

		<published>2021-11-03T17:32:34+00:00</published>
		<id>https://blueirissoftware.com/forum/viewtopic.php?p=11123#p11123</id>
		<link href="https://blueirissoftware.com/forum/viewtopic.php?p=11123#p11123"/>
		<title type="html"><![CDATA[Storage Troubleshooting - Clips and archiving tab]]></title>

		
		<content type="html" xml:base="https://blueirissoftware.com/forum/viewtopic.php?p=11123#p11123"><![CDATA[
<span style="font-size:150%;line-height:116%">Introduction</span><br><br>This article is focused on the Clips and archiving tab, i.e. Storage.  If you are new and are trying to understand how camera recordings tie into storage on your file system (Clips and archiving tab), the <a href="viewtopic.php?f=23&amp;t=2426" class="postlink">Storage and Recordings section</a> of the Checklist is the place to start.  The webinar walks through the Help files and provides the foundation of how Recordings (from cameras) tie into Storage (Clips and archiving tab).<br><br>This article provides a framework for troubleshooting storage issues and documents learnings from past tickets (Gotchas section).<br><br><strong class="text-strong">If you were directed here, see <strong class="text-strong">Next steps / Submitting a ticket</strong> section for needed information to move forward.  Simply stating you have an issue will not lead to resolution.<br></strong><br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Troubleshooting</strong></span><br><br>Providing just a description of the issue will not resolve the issue.<div style="margin-left:3em"><br></div><strong class="text-strong">Framework</strong><div style="margin-left:3em"><br>Follow steps below to address storage issues.<br><br><strong class="text-strong">Basics</strong><br>Make sure you followed best practices.  FYI, reviewing entire <a href="viewtopic.php?f=20&amp;t=2080" class="postlink">Windows tuning article</a> is always beneficial.<ul><li><a href="viewtopic.php?f=20&amp;t=2080#Antivirus" class="postlink">Antivirus and firewall exclusions</a></li><li><a href="viewtopic.php?f=20&amp;t=2080#Storage" class="postlink">Storage best practices</a></li></ul><br><strong class="text-strong">Self-correct</strong><br>Double check your Global settings -&gt; Clips and archiving tab settings.  Confirm your cameras are recording files to the New folder or other folders based on your settings.<br><br>Seek guidance from the <strong class="text-strong">Help button</strong>.  Watch the <a href="https://youtu.be/zR2r-dgLznw" class="postlink">Storage and recordings</a> webinar.<br><br><strong class="text-strong">BI stats and warnings</strong> <br>Self-correct BI warnings and errors.  Status button -&gt; Clip storage tab.  Help button provides details.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2268" class="postimage" alt="storage_warning.png" onclick="viewableArea(this);" /></dt></dl></div><br>Similar error when seen in the log files.<br><div class="codebox"><p>Code: </p><pre><code>2 2/7/2022 11:59:19.456 PMClips               C:: 1427, 1.46T/1.95T (-26.3G)</code></pre></div>Status -&gt; Storage tab.  Example of clip storage that should raise concerns.  Red zones are an issue.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2269" class="postimage" alt="storage_NAS errors.png" onclick="viewableArea(this);" /></dt></dl></div><br>User went through best practices listed above (Basics section) to resolve the issue:<br><br>After above fixes:<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2270" class="postimage" alt="storage_NAS fix.png" onclick="viewableArea(this);" /></dt></dl></div><br>Notice how both drives have remaining green (unused) space.  This is a good practice to NOT allocate the ENTIRE drive to BI.<br><br><br><strong class="text-strong">Logs</strong><div style="margin-left:3em"><strong class="text-strong">Archive thread</strong><br>The archive thread is responsible for moving files based on your Clips and archiving settings.  If you have <strong class="text-strong">Log clip move/delete details</strong> selected in Global settings -&gt; Clips and archiving tab, then below log entries every 5 minutes indicates the thread is running properly.<br><div class="codebox"><p>Code: </p><pre><code>0 1/1/2022 12:07:22.765 AMNew                 Delete: nothing to do [719/720 hrs, 11.0G/100.0G, 297.1G free] 1 locked0 1/1/2022 12:07:22.766 AMAlerts              Delete: nothing to do [167/168 hrs, 50.2M/20.0G, 297.1G free]</code></pre></div>The actual details will be different based on your Clips and archiving setup.  The 0 code event starting with <strong class="text-strong">Delete:</strong>, however, are the identifiers associated with archive thread events.  <br><br><br><strong class="text-strong">Log files</strong><br>The logs will tell you if BI is having issues with your Storage.  In order to know which errors to look for, we are documenting all the Status log errors.  The ones concerning storage are in the <a href="viewtopic.php?f=14&amp;t=2086#Storage" class="postlink">Storage category</a> and <a href="viewtopic.php?f=14&amp;t=2086#Recording" class="postlink">Recordings category</a>.  Each log error provides details and possible fixes to self-correct.<br><br>The <a href="viewtopic.php?f=27&amp;t=3043" class="postlink">Log files article</a> explains how to easily deal with log files using excel.<br><br>The <a href="viewtopic.php?f=12&amp;t=2503" class="postlink">NAS Case Study article</a> is a case study on how to leverage the logs to get to Storage issues.<br><br><br><strong class="text-strong">Log tab</strong><br>Might be easier to look for errors in the Logs tab if you check logs frequently.  See <a href="viewtopic.php?f=20&amp;t=2080#Routine%20maintenance" class="postlink">Routine maintenance guidance</a> for best practices.  Keep in mind the Log tab is a snapshot in time of the recent events.  Just because Storage and Recording errors do not pop up in the Log tab does NOT mean Storage and Recording errors do NOT exist.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2271" class="postimage" alt="storage_storage error.png" onclick="viewableArea(this);" /></dt></dl></div><br></div></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Tools</strong></span><div style="margin-left:3em">Many tech saavy users have identified storage access errors or hard drive issues using the following tools.  Understanding how to use each tool is up to you.<div style="margin-left:3em"><br><a href="https://windirstat.net/index.html" class="postlink">windirstat</a><br>CrystalDiskInfo<br><a href="https://docs.microsoft.com/en-us/sysinternals/downloads/procmon" class="postlink">procmon</a><br><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sfc" class="postlink">sfc</a>: Windows tool.  Scans and verifies the integrity of all protected system files.<br><br><br></div></div><span style="font-size:150%;line-height:116%"><strong class="text-strong">Next steps / Submitting a ticket</strong></span><br><br>See <a href="viewtopic.php?f=21&amp;t=2980" class="postlink">Storage ticket</a> for details.<br><br><br><br><span style="font-size:150%;line-height:116%"><strong class="text-strong">Gotchas</strong></span><br>This section documents key learnings from past tickets.<br><br><strong class="text-strong">Clips list / Alerts list</strong><div style="margin-left:3em">Issue: My clips list / alerts list is blank.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2535" class="postimage" alt="storage troubleshooting_database empty.png" onclick="viewableArea(this);" /></dt></dl></div><br>It's very unlikely BI deleted your recordings.  Check the filesystem where you told BI to save your recordings.  For example my New folder saves to G:\BlueIris\New folder.  Global settings -&gt; Clips and archiving tab.<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2536" class="postimage" alt="storage troubleshooting_new.png" onclick="viewableArea(this);" /></dt></dl></div><br>And when I look at the content in the folder, I can confirm my recordings are there.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2537" class="postimage" alt="storage troubleshooting_folder.png" onclick="viewableArea(this);" /></dt></dl></div><br>As you can see, recordings are saved based on the camera short name, e.g. Cam6.  Since my short name Cam6 is assigned to an existing camera in BI, the recordings and alerts appear in the Clips list and Alerts list<br><br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://blueirissoftware.com/forum/download/file.php?id=2538" class="postimage" alt="storage troubleshooting_camera short name.png" onclick="viewableArea(this);" /></dt></dl></div><br>If I change the short name to something else, e.g. Cam50, the Clips/Alerts list will be empty.  Make note, the recordings and alerts are NOT deleted.  The association between the camera short name and entries in the database, alerts and clips, are now broken.  As soon as I change the camera short name back to Cam6, all my alerts and recordings reappear in the UI.<br><br><strong class="text-strong">So, if your clips list and alerts list is suddenly empty, first confirm the recordings exist.  Second, make sure the camera short name for one of your cameras did not change.</strong><br><br><br></div><a name="NAS"><strong class="text-strong">NAS</strong></a><div style="margin-left:3em"><br>The category is NAS but this section can apply to RAID storage as well.  Basically any non-internal drives.<br>USB drives may also apply.<br><br><strong class="text-strong">Gotcha 1: Playback</strong><div style="margin-left:3em"><br>Many permutations of the symptoms, but basically playback is NOT working and your storage includes non-internal drives.<br><br><strong class="text-strong">New folder and database folder</strong><br>If you are using the external storage for the New folder and/or database folder, move those folders back to your local hard drive, e.g. C: drive.<br>Create a small New folder on your local drive (c:) (via Clips and archiving) and delete files after 1 day so as not to fill up your c: drive.  <br>If your database folder is NOT local, move the database folder as well.<br>See if playback starts working?<br><strong class="text-strong">Then you know the issue is with your storage.</strong>  This is how you identify the root cause by turning features off or simplifying your setup.<br><br><strong class="text-strong">Windows</strong><br>Confirm you setup storage correctly so Windows is NOT in conflict.<br>Double check you connected the <a href="viewtopic.php?f=20&amp;t=2080#Storage" class="postlink">Storage device correctly</a>.<br>It's good to review the checks in the entire article.<br><br><strong class="text-strong">Troubleshooting external storage</strong><br>Instead of writing directly to external storage (New and Database folders on external storage), see if moving files to Stored from New works?  <br>Can you now playback from the raid drive?  Example of simplifying the setup and observing if functionality works.<br><br><strong class="text-strong">Logs</strong><br><a href="viewtopic.php?f=14&amp;t=2764#Log%20files" class="postlink">Check the logs</a> for Record and Storage errors.  Log files are NOT the same as the Log tab.<br><br></div><strong class="text-strong">Gotcha 2:  Storage fills up.</strong><div style="margin-left:3em"><br>Any time there are problems with NAS devices, it almost always has to do with permission issues or the NAS stopped communicating with the BI server.  Unfortunately, the issue  manifests itself with the drive containing the New folder (often the C: drive) filling up and crashing the server.<br><br>Common issues/fixes:<ul><li>Database -&gt; Repair / Regenerate may resolve the issue</li><li>Double check your <a href="viewtopic.php?f=12&amp;t=2080#Antivirus" class="postlink">Anti-virus/Firewall settings</a>.</li></ul>  <br>The logs will show the write errors well before filling up the C: drive, but this requires users paying attention to the Status button when it turns red or occasionally monitoring their logs for errors.<br><br>The tell tale errors are MoveFile Errors as seen in the below log snippet.  Routinely check logs for <a href="viewtopic.php?f=14&amp;t=2086#Storage" class="postlink">Storage and/or Record errors</a>.<br><div class="codebox"><p>Code: </p><pre><code>0 7/19/2021 7:32:01.679 PMNew                 Move: 2 items 3.66G [602.1G/600.0G, 326.2G free] 126 locked0 7/19/2021 7:32:01.788 PMStored              Delete: 2 items 4.24G [2.93T/2.92T, 1.99T free]0 7/19/2021 7:32:01.791 PMAlerts              Delete: nothing to do [1439/4800 hrs, 895.5M/100.0G, 329.9G free]1 7/19/2021 7:32:01.860 PMClips               MoveFile Error 2: F:\BlueIris\New\FrontDoor.20210719_080000.bvr1 7/19/2021 7:32:01.925 PMClips               MoveFile Error 2: F:\BlueIris\New\FrontDoorStation.20210719_080000.bvr</code></pre></div>The above errors are stating BI had errors moving files to the F: drive (NAS drive).<br><br>The Fix:<br>Use the exact same <a href="viewtopic.php?f=20&amp;t=2080#Local%20admin%20account" class="postlink">Windows username/password on your NAS device</a> to provide the easiest chance for BI to access your NAS storage.<br>Check the <a href="viewtopic.php?f=20&amp;t=2080#Server%20Health" class="postlink">Storage tab in the Status button</a> to see whether BI recognizes your NAS device.  There should be no RED regions.  <br><br>Second, you need to make sure your NAS is working properly.  Pay attention to log errors as mentioned above.  The <a href="viewtopic.php?f=12&amp;t=2503" class="postlink">Log Files - Storage/Record Issues article</a> documents how to approach the log files in order to understand the issue.  In this case, the user's NAS would run correctly for 21 straight days before denying access to BI and causing BI to crash a few days later.<br><br>Below is a quote from another user that decided to replace his NAS storage.<blockquote class="uncited"><div>I went to the Status page, which showed the overallocated storage, and clicked on Repair DB. Then slowly the data migrated to NAS storage. Maybe it lost contact with the NAS and needed a kick to restart it. All is well, now.<br>I'll download the NAS logs and give you more information shortly.<br>I tried to dump the logs on the NAS, but it hung up and now won't boot. Probably too much log. So it looks like the NAS just wasn't responding like it should.</div></blockquote>Troubleshooting your NAS device is beyond BI support.<br>The <a href="https://blueirissoftware.com/forum" class="postlink">forum</a> may provide insight.<br><br></div></div><p>Statistics: Posted by <a href="https://blueirissoftware.com/forum/memberlist.php?mode=viewprofile&amp;u=521">varghesesa</a> — Wed Nov 03, 2021 5:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
