-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Deleting a device in the Scrutiny UI does not delete the influxdb data and persists the device across docker restarts #572
Comments
I for one thought this was a feature. I don't necessarily want to lose historical data when removing a drive. There are ways in which it can still be used (with grafana for instance). |
If you want to "hide" a drive, that should be a different option or worded differently. |
You're seeing historical data after deleting a device? That shouldn't be possible. A device may be re-added after deletion, because Scruntiny uses smartmontools for device detection, and your device will be detected on system scan (which happens on container start). If you'd like to delete and ignore a device you'll need to ignore it in your collector.yaml https://github.com/AnalogJ/scrutiny/blob/master/example.collector.yaml#L38-L40 |
While I can do that, I am not sure how helpful that would be - given that the device doesn't have a standard name showing in Scrutiny. If you check the photo again, it shows: Which isn't valid. 🤔 |
I am having the opposite issue. I deleted drives through the UI and I cannot get them to come back even after stopping the container (which removes it) and then starting fresh again. It must be saving the database somewhere to persist, where is that? |
I'm encountering this on |
Describe the bug
When a device has been removed from a host and you wish to delete the device using
The device gets removed initially from the UI.
If the docker container restarts, the previously deleted disk's information gets reloaded into the environment.
When using ZFS or hots-swap disks this causes incorrect information to be present in scrutiny.
Expected behavior
When delete device (above) is clicked. All data from influx should be removed and the device should no longer appear in the Web UI.
Screenshots
A disk that has been removed from the host, the data has been deleted, but, still exists in the Web UI.
Log Files
N/A
Note that even though the drive is commented out in the above compose file, it keeps re-appearing, and also finding the /dev/sda due to the other cap_add & priv settings.
I can't currently upload the log file, but, I will be able to when I am on the same network as the device.
Docker Info
The text was updated successfully, but these errors were encountered: