Closed dm82m closed 1 year ago
I guess the error is here: An error occurred while saving smartctl metrics unprocessable entity
Found a reference here: https://github.com/AnalogJ/scrutiny/issues/305
Hi, you're using scrutiny full access the SYS_RAWIO is not needed as all permissions should be already granted... Have you tried the normal scrutiny (not fa)? Also, are you sure your ssd supports smart? Most ssd don't actually
Yes I tested without FA but then it shows no device. The ssd I am using is providing SMART.
@alexbelgium any ideas? Should I raise the issue at Scrutiny directly cause it is more related there?
Hi, perhaps it's better... Honestly I tried to look a bit but no idea. I was wondering if accessing the influxdb through the admin interface could help but no idea what to look for
I tried the same, but no idea of user/password. Is it a standard or the HA user/pw? Found user+pw but doesnt help me.
@alexbelgium how can I put Scrutiny into debug mode. I just want to assure what the smartctl commands are returning. It seems that I need to run Scrutiny in debug mode but have no idea how.
root@db21ed7f-scrutiny-fa:/opt/scrutiny# lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
|-sda1 vfat FAT16 hassos-boot 91F7-85ED
|-sda2 squashfs 4.0
|-sda3 squashfs 4.0
|-sda4
|-sda5
|-sda6
|-sda7 ext4 1.0 hassos-overlay 4e60f2da-1b5f-41ad-a4f7-1f4e943fb154
`-sda8 ext4 1.0 hassos-data bcaf2507-38ab-4426-9160-82e691be1ca3 193G 8% /etc/hosts
zram1
zram2
root@db21ed7f-scrutiny-fa:/opt/scrutiny# smartctl -i /dev/sda -T permissive -d sat
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-6.1.34] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: Operation not permitted
=== START OF INFORMATION SECTION ===
Device Model: [No Information Found]
Serial Number: [No Information Found]
Firmware Version: [No Information Found]
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: [No Information Found]
Local Time is: Tue Jun 27 17:40:30 2023 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.
And SMART is enabled in BIOS. If I install proxmox on that device, smartctl is working. But on HAOS with your addon it isnt.
I can finally say that the problem is definitely not the hardware. The add-on https://github.com/Draggon/hassio-hdd-tools is working on the same machine, I am getting all the SMART data with it. But weather Scrutiny nor Scrutiny-FA will give me any data for the hdd.
That's super helpful, thanks for your investigations! I'll compare both addons
I needed to disable protection mode but afterwards it just worked out. Initially testet directly within the container, compared to the tests I made with your Scrutiny add-ons - but as said with both I have no luck to get the SMART data.
the hdd-tools is using both
"privileged": ["SYS_ADMIN", "SYS_RAWIO"],
"full_access": true,
you are only using this for scrutiny-fa
"full_access": true,
and this for scrutiny
"privileged": [
"SYS_ADMIN",
"SYS_RAWIO",
"DAC_READ_SEARCH"
],
not sure if it is really related - but if you want to test, just release an update and I will do so ...
well having both puts an alert message in the logs that made people remove the repo... About not being justified to have both full_access and privileges written. This can however be mimicked with Portainer if you are using the tool by switching on manually permissions
but it works ...
Really? By adding permissions in addition to full access? crazy... I'll check the supervisor logs to see if there is an error showing
Yes really. Just put that:
"full_access": true,
"privileged": [
"SYS_ADMIN",
"SYS_RAWIO",
"DAC_READ_SEARCH"
],
and now it works ...
Thanks! Then I'll push a new official version (not just test), It will take 5 min to build
Thanks for this great troubleshooting
works now, thanks for great co-work and fast change + release!
Description
Using a Intel NUC with M.2 SSD and Scrunity-FA with protection mode disabled. Can see the device /dev/sda but only get "SMART: FAILED". Even if I put device type from auto to sat.
Reproduction steps
Addon Logs
Architecture
aarch64
OS
HAos