AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
4.71k stars 154 forks source link

Ghost disk in UI, can't be deleted #652

Open Naam opened 4 weeks ago

Naam commented 4 weeks ago

I have six disks on my NAS. They're all detected fine, but I get an extra few for which I cannot see the detail nor delete:

Screenshot 2024-06-05 at 1 04 17 AM

When clicking the delete button, nothing happens even though the following logs show up in the container logs:

time="2024-06-05T08:06:57Z" level=info msg="192.168.1.68 - 63de3b7d6c51 [05/Jun/2024:08:06:57 +0000] \"DELETE /api/device/\" 200 7467 \"http://ny-nas:8080/web/dashboard\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36\" (1ms)" clientIP=192.168.1.68 hostname=63de3b7d6c51 latency=1 method=DELETE path=/api/device/ referer="http://my-nas:8080/web/dashboard" 
respLength=7467 statusCode=200 type=web userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"

Doing a SELECT * FROM devices on the DB itself only shows my six drives, none of the ghost ones. I'm unsure where the UI is getting them from.

I'm not tagging this as a bug because I tried to migrate from pre-influx-db to the current version, and the migration broke, so it could be my fault. I'm looking for some pointers on perhaps some remnants to clean.

Thank you in advance for your time and guidance here