bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

Bug: UI3 doesn't seem to understand the BI folder setting 'do NOT monitor free space' #39

Closed adam-jones-net closed 4 years ago

adam-jones-net commented 4 years ago

It seems that UI3 doesn't understand the "do NOT monitor free space" option that can be checked in the setup of a folder within BI.

If that is checked, if you go to "Disk usage" within UI3 it will display the yellow warning box "Reported disk info is invalid msg...".

It also reports in red "Overallocated" when its not for that drive above the pie graph (which is also displaying incorrect info).

bp2008 commented 4 years ago

Interesting.

Here is the data UI3 gets in my normal configuration:

image

So to test, I configured the folder on drive "D:" to not monitor free space.

image

Blue Iris seems to give me bad values for "free" and "total" on the drive that isn't monitoring free space. I'll ask the developer if there is any meaning in the values given, and if I can rely on "total: 0" to mean free space is not monitored.

adam-jones-net commented 4 years ago

If it's useful to know what JSON data BI is sending my browser can you confirm how I can obtain that via the dev console ?

bp2008 commented 4 years ago

Sure. On the "Network" tab, you'll see a bunch of rows with name json -- click on each until you find one where the "Preview" subtab shows data: {signal..., then expand the data node and the disks node.

e.g.

image

adam-jones-net commented 4 years ago

Ok great.... well if useful I can clarify my setup is listed as:

disks: [{disk: "c:", allocated: 1536000, used: 18285, free: 1876887, total: 1952124},…] 0: {disk: "c:", allocated: 1536000, used: 18285, free: 1876887, total: 1952124} 1: {disk: "d:", allocated: 1894400, used: 1300303, free: 606466, total: 1907726} 2: {disk: "Z:", allocated: 102398976, used: 66, free: 2097152, total: 0}

And as you've I'm sure guessed, its the Z: drive with the issue.

bp2008 commented 4 years ago

Does your Z: drive actually have about 100 terabytes allocated, with only 66 megabytes used?

bp2008 commented 4 years ago

Just trying to figure out if I can trust those data fields.

bp2008 commented 4 years ago

When I say "Allocated" I mean the value in the Limit size box. Did you put something close to 100,000 in there?

adam-jones-net commented 4 years ago

Yes and no ;) It's a remote network drive with unlimited storage at google. This confuses BI which is why they made that setting to not monitor free space. And within BI itself that resolves confusions caused by such large disks.

On Thu, 4 Jun 2020 at 14:24, bp2008 notifications@github.com wrote:

Does your Z: drive actually have about 100 terabytes allocated, with only 66 megabytes used?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/39#issuecomment-639026908, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5CGPFH7X3YPHK43CIE73DRU7RFLANCNFSM4NS2CM4Q .

adam-jones-net commented 4 years ago

I set limit size to 99999 (GB)

On Thu, 4 Jun 2020 at 14:25, bp2008 notifications@github.com wrote:

When I say "Allocated" I mean the value in the Limit size box. Did you put something close to 100,000 in there?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/39#issuecomment-639028404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5CGPCLXOI2HSYR3RVXEM3RU7RKBANCNFSM4NS2CM4Q .

bp2008 commented 4 years ago

Ok, that makes sense. So you were able to map an unlimited storage google drive as a network drive in Windows?? Does that perform well? Or is it just something you handle with a local drive and a sync app?

adam-jones-net commented 4 years ago

I know there are various ways of doing this, I happen to use a tool called ExpanDrive that allows you to mount drives from just about any cloud solution you can imagine.

On Thu, 4 Jun 2020 at 14:28, bp2008 notifications@github.com wrote:

Ok, that makes sense. So you were able to map an unlimited storage google drive as a network drive in Windows?? Does that perform well? Or is it just something you handle with a local drive and a sync app?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/39#issuecomment-639030540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5CGPDZOGYNAGVRYGR7FY3RU7RTJANCNFSM4NS2CM4Q .

adam-jones-net commented 4 years ago

And yes it performs well! It's perfect for permanent off-site cloud based cheap storage of old clips.

On Thu, 4 Jun 2020 at 14:32, Adam Postmaster all@adam-jones.net wrote:

I know there are various ways of doing this, I happen to use a tool called ExpanDrive that allows you to mount drives from just about any cloud solution you can imagine.

On Thu, 4 Jun 2020 at 14:28, bp2008 notifications@github.com wrote:

Ok, that makes sense. So you were able to map an unlimited storage google drive as a network drive in Windows?? Does that perform well? Or is it just something you handle with a local drive and a sync app?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/39#issuecomment-639030540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5CGPDZOGYNAGVRYGR7FY3RU7RTJANCNFSM4NS2CM4Q .

bp2008 commented 4 years ago

nice!

bp2008 commented 4 years ago

The developer got back to me.

Yes, you are correct in assuming ... total:0 means there is no free space monitoring. The software internally sets "Free" to 2TB in this case so that recording does not complain about running out of space. I will suppress that as well to 0 for the JSON output here in today's release.

I've already updated the disk status panel in the source code. I have several other small improvements planned before I make the next release, so you can expect it in UI3-112 ... whenever that is.

adam-jones-net commented 4 years ago

Thanks very much! ;)

On Sat, 6 Jun 2020 at 12:47, bp2008 notifications@github.com wrote:

The developer got back to me.

Yes, you are correct in assuming ... total:0 means there is no free space monitoring. The software internally sets "Free" to 2TB in this case so that recording does not complain about running out of space. I will suppress that as well to 0 for the JSON output here in today's release.

I've already updated the disk status panel in the source code. I have several other small improvements planned before I make the next release, so you can expect it in UI3-112 ... whenever that is.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/39#issuecomment-640088120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5CGPBXF5TQBS4BTGWZRH3RVJXLLANCNFSM4NS2CM4Q .

bp2008 commented 4 years ago

This issue is resolved in release 112.