Skip to content
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

🐛 [Scrutiny FA] USB SSD doesnt shows #1640

Closed
chertvl opened this issue Nov 17, 2024 · 6 comments
Closed

🐛 [Scrutiny FA] USB SSD doesnt shows #1640

chertvl opened this issue Nov 17, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@chertvl
Copy link

chertvl commented Nov 17, 2024

Description

Hi, Alex. Thank you for your amazing addons, I love and use ton of them!

About Scrutiny/ScrutinyFA,
Is it possible to display SMART of SSD in external case connected to my Intel Nuc ?

I have Nuc10 (with HA OS installed) and 3 ssd disks:

  1. NVME in m.2 - without problems (/dev/nvme0)
  2. Sata2 2.5" with sata2 cable - works great (/dev/sda)
  3. m2sata in external case with usb3.0 - gives an error (/dev/sdb)

time="2024-11-17T19:07:59+02:00" level=error msg="Could not retrieve device information for sdb: exit status 2" type=metrics

I dont know problem is in addon or a docker cointainer, but in AnalogJ repository nothing tolds about that error, and looks like usb devices is supported.
I tried non-FA and FA versions of Scrunity, same both.

Third SSD works great in SambaNAS addon and displays in haos-system.
image

Reproduction steps

1. Connect SSD in external case to usb3.0 port of X86 machine
2. Restart addon

Addon Logs

AnalogJ/scrutiny/metrics                                dev-0.8.1
time="2024-11-17T19:07:59+02:00" level=info msg="Verifying required tools" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json /dev/sda" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Generating WWN" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json --device sntrealtek /dev/sdb" type=metrics
time="2024-11-17T19:07:59+02:00" level=error msg="Could not retrieve device information for sdb: exit status 2" type=metrics
time="2024-11-17T19:07:59+02:00" level=info msg="Executing command: smartctl --info --json --device nvme /dev/nvme0" type=metrics

Architecture

amd64

OS

HAos

@chertvl chertvl added the bug Something isn't working label Nov 17, 2024
@chertvl chertvl changed the title 🐛 [Scrunity FA] USB SSD doesnt shows 🐛 [Scrutiny FA] USB SSD doesnt shows Nov 17, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Nov 24, 2024
@chertvl
Copy link
Author

chertvl commented Nov 24, 2024

This issue has been automatically marked as stale

This is still actual, actually ;)
Ive tried many combinations with FA and nonFA versions of Scrutiny, other USB and TypeC ports, other SSD disks, NTFS and Ext4 filesystems, tried sntrealtek and other methods in addon config, but picture always the same - exit status 2, no smart data. But in all variants it works as external storage in HAOS and shows smart data when connected to Windows.

@alexbelgium alexbelgium removed the stale Element will be closed automatically label Nov 24, 2024
@alexbelgium
Copy link
Owner

Hi! It's super weird... I don't know what would be different on this specific case.

I'm getting SMART data on 2 hdd drives that are in an external USB enclosure so there is no reasons it would not work... The device type looks weird perhaps you need to define a custom one ?

@chertvl
Copy link
Author

chertvl commented Nov 24, 2024

I'm getting SMART data on 2 hdd drives that are in an external USB enclosure so there is no reasons it would not work...

Hi. Then thank you very much for confirming that it should work. I will make some more attempts and write what my problem was if everything works out.

@chertvl
Copy link
Author

chertvl commented Nov 24, 2024

Oh. Finally I got the S.M.A.R.T. data via USB.
Apparently, the incompatibility was that when using a universal case based on RTL9210 (for NGFF/NVME) and M.2-SATA (NGFF) disks, the S.M.A.R.T. data does not reach (but it shown in windows pc).
For the sake of experiment, I inserted an NVME disk - and everything worked, and on the non-FA version too.
Yeah. I'll look for a new case (that easier than try to look for a reason).
Sorry for bothering you and thank you very much!

@chertvl chertvl closed this as completed Nov 24, 2024
@alexbelgium
Copy link
Owner

Glad you found the source! Funny how there is always some specific configurations leading to strange incompatibilites that make us spend so much time investigating... Guess it goes with home automation, I've spent an insane amount of time also making my own stuff work... Now that it does i'm just keeping it running while changing the minimum!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants