-
-
Notifications
You must be signed in to change notification settings - Fork 179
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] Could not retrieve device information #538
Comments
|
@vincejv This issue occurs with SYS_ADMIN added to the docker-compose file
Running the container with |
I also read this #344 (comment) This does not resolve the issue for me. Thank you for your help. |
try running this command instead for debugging purposes |
|
Are you running those |
@AnalogJ I ran the commands on my host. This is the output inside the container:
I noticed when I ran it inside the container the smartctl version is 7.2 which does not support 'sntasmedia' type. On the host it's 7.3. I'm not sure why that is. |
hey @arthurcruz1 Usually I'd say that it's unlikely the error was caused by a version difference, since smartctl is pretty bulletproof, but I just found this with a quick google:
You might need to update your device's firmware? |
I'm seeing the same thing with the same device. It seems the collector-metrics is running it with the "sat" switch and that fails however replacing "sat" with "sntasmedia" or "scsi" works just fine. And yes, my device is on the latest firmware from the manufacturer.
RUNNING sntasmedia switch: root@Argon:~# smartctl --info --json --device sntasmedia /dev/sda
RUNNING SAT SWITCH: root@Argon:~# smartctl --info --json --device sat /dev/sda
|
OK, running smartctl --scan on the server itself results in this:
Whereas running the same command inside the docker container results in this:
|
Figured out the problem. The underlying issue is that the version of smartmontools that the scrutiny docker image is using is version 7.2 dated 2020-12-30 whereas the version installed on my server itself is version 7.3 dated 2022-02-28. My server is Debian Bookworm and the Scrutiny container is built on Debian Bullseye. The older 7.2 version of smartmontools doesn't have support for sntasmedia controlled drives. I do believe the "fix" is to just upgrade the version of smartmontools inside the container to 7.3. Not sure how possible that's going to be since it looks like the Scrutiny docker image is based upon Debian Bullseye and says it's already using the latest version of smartmontools when I try to upgrade it from inside the container so it may be time to "re-base" the image itself on Debian Bookworm? |
After further testing it is indeed due to smartmontools 7.2 not supporting sntasmedia.
|
Drive is not shown on the WebUI
docker compose exec scrutiny /opt/scrutiny/bin/scrutiny-collector-metrics run
smartctl --info --json --device sat /dev/sda type=metrics
docker logs scrutiny
smartctl --scan
Using omnibus image
The text was updated successfully, but these errors were encountered: