-
-
Notifications
You must be signed in to change notification settings - Fork 191
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]smartctl checksum errors #46
Comments
I had the same issue on unraid with the initial release but 0.2.1 fixed it. It looks like https://hub.docker.com/r/linuxserver/scrutiny is not updated, see if you have the same issue with https://hub.docker.com/r/analogj/scrutiny |
Yeah, please try my latest image on Docker Hub @paulmorabito. There's been a lot of fixes recently related to missing SMART data, and I'm not sure how far behind the LSIO image is. |
Thanks @AnalogJ & @Ma3a-exe. I changed the docker image to analogj/scrutiny:latest and am still getting the same errors:
Is there anything I can do to debug further? |
Yeah, Can you run the following commands, making sure to replace the
Once you've copied the log files from your container, please attach them here |
Here you go. See attached. |
Can you run the container with Also can you give me some information about your system/OS? |
I'm running the following command:
logs are attached. Error looks the same as previously. I don't have /run/udev but do have /lib/udev so I changed it. However, even if it is kept at /run/udev, the result is the same. I'm running this on a QNAP TS453Be.
It's running QNAP's custom Linux so if there is a particular library or anything you want me to check for then let me know. |
Hello, I'm also getting the same error output when running the collector. The version I have installed is linux.amd-0.2.4.
I used the manual install guide to install this on my proxmox host. Command I use to run the collector Smartctl version |
The checksum error you mentioned is similar to this: https://www.smartmontools.org/ticket/347 Basically, the checksum error is from
Can you try getting
Once you have smartctl working on your host, we can figure out how to fix/override the detection in Scrutiny |
I installed smartmontools 6.5 on the host via a QNAP package. Using -j always gives an unknown option error however this works:
|
@paulmorabito does it work correctly if you run it in the container? |
@AnalogJ "smartctl -x -j -d sat /dev/sda" works fine (as does with -j). |
Hey everyone, I just released a beta version of the Scrutiny docker image with support for overriding the collector device detection. The instructions for how to create the collecttor config file, and the new docker image tag are available in the PR description: All feedback (success & failure) is appreciated :) |
@AnalogJ Beta image is working great over here on a QNAP TS-653D with both SATA & NVMe drives! |
I'm getting no devices detected. Not sure why. Can you please check below: scrutiny.yaml:
docker-compose:
logs:
|
Hey @paulmorabito it's actually a new config file named |
I tried that first as I thought there might have been a typo with the yaml file naming. Either way, I am still getting no devices detected using either docker directly or with a compose file. I guess its something specific to my setup though as it's confirmed working elsehere. |
@paulmorabito
Apologies, I saw that you had uploaded your collector logs above. Can you open up another issue, we can try to debug this there. |
@AnalogJ I removed the container, stack, db and yaml file and started again with the detect branch. Everything worked. Thank you for your help trouble shooting and also for fixing this. Really appreciated. |
@AnalogJ I'm running the collector without docker (using manual installal) how can I point the collector to the config file, is there also a command line option to point the collector to the config file. e.g.
Output of running the collector |
Hey @paulmorabito the code for the detect branch has been merged into master, you should be able to pull the latest |
@maxxie85 that's actually the correct command. Your log file says
But do you see anything in your dashboard? |
I just tried and it's still getting 0.2.1-dev on :latest rather than 0.2.4 which is the detect branch. I'll try again in another day and hopefully the docker image has been built and propagated to the docker hub repository by then. |
@AnalogJ |
@maxxie85 Ah perfect. Yeah, previously non-zero smartctl exit codes would stop data from being sent back to the API. |
Sorry for necroposting, but I have the exact same issue, been reading this issue, and also looked elsewhere to try to solve it. My sitation is that the logs show
But it looks totally fine in Scrutiny GUI. Running Any advice? |
Hi,
i'm using the linuxserver.io docker image (latest tag) and currently am getting the following errors when running "scrutiny-collector-metrics run"
`root@abc9cc899866:/# scrutiny-collector-metrics run
/ ) / )( _ ( )( )( )( )( ( )( / )
_ ( ( ) / )()( )( )( ) ( \ /
(/ _)()_)() () ()()_) (__)
AnalogJ/scrutiny/metrics dev-0.1.13
INFO[0000] Verifying required tools type=metrics
INFO[0000] Sending detected devices to API, for filtering & validation type=metrics
INFO[0000] Main: Waiting for workers to finish type=metrics
INFO[0000] Collecting smartctl results for sdd type=metrics
INFO[0000] Collecting smartctl results for sda type=metrics
INFO[0000] Collecting smartctl results for sdb type=metrics
INFO[0000] Collecting smartctl results for sdc type=metrics
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
1
],
"svn_revision": "5022",
"platform_info": "x86_64-linux-4.14.24-qnap",
"build_info": "(local build)",
"argv": [
"smartctl",
"-a",
"-j",
"/dev/sda"
],
"exit_status": 4
},
"device": {
"name": "/dev/sda",
"info_name": "/dev/sda",
"type": "scsi",
"protocol": "SCSI"
},
"vendor": "WDC",
"product": "WD100EMAZ-00WJTA",
"model_name": "WDC WD100EMAZ-00WJTA",
"revision": "83.H",
"scsi_version": "SPC-3",
"user_capacity": {
"blocks": 19532873728,
"bytes": 10000831348736
},
"logical_block_size": 512,
"physical_block_size": 4096,
"rotation_rate": 5400,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"serial_number": "2YJDN6SD",
"device_type": {
"scsi_value": 0,
"name": "disk"
},
"local_time": {
"time_t": 1601292556,
"asctime": "Mon Sep 28 20:29:16 2020 KST"
},
"temperature": {
"current": 0,
"drive_trip": 0
}
}
ERRO[0000] smartctl returned an error code (4) while processing sda type=metrics
ERRO[0000] smartctl detected a checksum error type=metrics
INFO[0000] Publishing smartctl results for unknown type=metrics
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
1
],
"svn_revision": "5022",
"platform_info": "x86_64-linux-4.14.24-qnap",
"build_info": "(local build)",
"argv": [
"smartctl",
"-a",
"-j",
"/dev/sdb"
],
"exit_status": 4
},
"device": {
"name": "/dev/sdb",
"info_name": "/dev/sdb",
"type": "scsi",
"protocol": "SCSI"
},
"vendor": "WDC",
"product": "WD100EMAZ-00WJTA",
"model_name": "WDC WD100EMAZ-00WJTA",
"revision": "83.H",
"scsi_version": "SPC-3",
"user_capacity": {
"blocks": 19532873728,
"bytes": 10000831348736
},
"logical_block_size": 512,
"physical_block_size": 4096,
"rotation_rate": 5400,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"serial_number": "2YJ8S5BD",
"device_type": {
"scsi_value": 0,
"name": "disk"
},
"local_time": {
"time_t": 1601292556,
"asctime": "Mon Sep 28 20:29:16 2020 KST"
},
"temperature": {
"current": 0,
"drive_trip": 0
}
}
ERRO[0000] smartctl returned an error code (4) while processing sdb type=metrics
ERRO[0000] smartctl detected a checksum error type=metrics
INFO[0000] Publishing smartctl results for unknown type=metrics
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
1
],
"svn_revision": "5022",
"platform_info": "x86_64-linux-4.14.24-qnap",
"build_info": "(local build)",
"argv": [
"smartctl",
"-a",
"-j",
"/dev/sdd"
],
"exit_status": 4
},
"device": {
"name": "/dev/sdd",
"info_name": "/dev/sdd",
"type": "scsi",
"protocol": "SCSI"
},
"vendor": "WDC",
"product": "WD100EMAZ-00WJTA",
"model_name": "WDC WD100EMAZ-00WJTA",
"revision": "83.H",
"scsi_version": "SPC-3",
"user_capacity": {
"blocks": 19532873728,
"bytes": 10000831348736
},
"logical_block_size": 512,
"physical_block_size": 4096,
"rotation_rate": 5400,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"serial_number": "2YJDUTKD",
"device_type": {
"scsi_value": 0,
"name": "disk"
},
"local_time": {
"time_t": 1601292556,
"asctime": "Mon Sep 28 20:29:16 2020 KST"
},
"temperature": {
"current": 0,
"drive_trip": 0
}
}
ERRO[0000] smartctl returned an error code (4) while processing sdd type=metrics
ERRO[0000] smartctl detected a checksum error type=metrics
INFO[0000] Publishing smartctl results for unknown type=metrics
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
1
],
"svn_revision": "5022",
"platform_info": "x86_64-linux-4.14.24-qnap",
"build_info": "(local build)",
"argv": [
"smartctl",
"-a",
"-j",
"/dev/sdc"
],
"exit_status": 4
},
"device": {
"name": "/dev/sdc",
"info_name": "/dev/sdc",
"type": "scsi",
"protocol": "SCSI"
},
"vendor": "WDC",
"product": "WD100EMAZ-00WJTA",
"model_name": "WDC WD100EMAZ-00WJTA",
"revision": "83.H",
"scsi_version": "SPC-3",
"user_capacity": {
"blocks": 19532873728,
"bytes": 10000831348736
},
"logical_block_size": 512,
"physical_block_size": 4096,
"rotation_rate": 5400,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"serial_number": "JEHN4M1N",
"device_type": {
"scsi_value": 0,
"name": "disk"
},
"local_time": {
"time_t": 1601292556,
"asctime": "Mon Sep 28 20:29:16 2020 KST"
},
"temperature": {
"current": 0,
"drive_trip": 0
}
}
ERRO[0000] smartctl returned an error code (4) while processing sdc type=metrics
ERRO[0000] smartctl detected a checksum error type=metrics
INFO[0000] Publishing smartctl results for unknown type=metrics
INFO[0001] Main: Completed type=metrics
root@abc9cc899866:/# `
After running, I can only see /dev/sda in the web UI and it has no details (SMART reports as failed).
I'm running this on a QNAP TS453Be.
Thanks,
The text was updated successfully, but these errors were encountered: