hassio-addons: π [Scrutiny] FAILED: SMART
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
written above
Addon Logs
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums
-----------------------------------------------------------
Provided by: https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-configuration.sh: executing...
Updating folders structure
[19:36:20] INFO: Hourly updates
[cont-init.d] 01-configuration.sh: exited 0.
[cont-init.d] 01-custom_script.sh: executing...
[19:36:20] INFO: Execute /config/addons_autoscripts/scrutiny-fa.sh if existing
[19:36:20] INFO: ... no script found
[cont-init.d] 01-custom_script.sh: exited 0.
[cont-init.d] 01-timezone: executing...
[cont-init.d] 01-timezone: exited 0.
[cont-init.d] 32-nginx_ingress.sh: executing...
[cont-init.d] 32-nginx_ingress.sh: exited 0.
[cont-init.d] 50-cron-config: executing...
[cont-init.d] 50-cron-config: exited 0.
[cont-init.d] 90-run.sh: executing...
[cont-init.d] 90-run.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
waiting for influxdb
starting cron
waiting for scrutiny service to start
influxdb config file already exists. skipping.
starting influxdb
influxdb not ready
[services.d] done.
scrutiny api not ready
ts=2023-06-26T17:36:21.626359Z lvl=info msg="Welcome to InfluxDB" log_id=0ifCICUW000 version=v2.2.0 commit=a2f8538837 build_date=2022-04-06T17:36:40Z
ts=2023-06-26T17:36:21.628406Z lvl=info msg="Resources opened" log_id=0ifCICUW000 service=bolt path=/opt/scrutiny/influxdb/influxd.bolt
ts=2023-06-26T17:36:21.628499Z lvl=info msg="Resources opened" log_id=0ifCICUW000 service=sqlite path=/opt/scrutiny/influxdb/influxd.sqlite
ts=2023-06-26T17:36:21.634606Z lvl=info msg="Checking InfluxDB metadata for prior version." log_id=0ifCICUW000 bolt_path=/opt/scrutiny/influxdb/influxd.bolt
ts=2023-06-26T17:36:21.634820Z lvl=info msg="Using data dir" log_id=0ifCICUW000 service=storage-engine service=store path=/opt/scrutiny/influxdb/engine/data
ts=2023-06-26T17:36:21.634856Z lvl=info msg="Compaction settings" log_id=0ifCICUW000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
ts=2023-06-26T17:36:21.634997Z lvl=info msg="Open store (start)" log_id=0ifCICUW000 service=storage-engine service=store op_name=tsdb_open op_event=start
ts=2023-06-26T17:36:21.645411Z lvl=info msg="index opened with 8 partitions" log_id=0ifCICUW000 service=storage-engine index=tsi
ts=2023-06-26T17:36:21.646533Z lvl=info msg="Reading file" log_id=0ifCICUW000 service=storage-engine engine=tsm1 service=cacheloader path=/opt/scrutiny/influxdb/engine/wal/419d63b44b7ea380/autogen/1/_00001.wal size=196
ts=2023-06-26T17:36:21.646678Z lvl=info msg="Opened shard" log_id=0ifCICUW000 service=storage-engine service=store op_name=tsdb_open index_version=tsi1 path=/opt/scrutiny/influxdb/engine/data/419d63b44b7ea380/autogen/1 duration=9.181ms
ts=2023-06-26T17:36:21.646744Z lvl=info msg="Open store (end)" log_id=0ifCICUW000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=11.749ms
ts=2023-06-26T17:36:21.646776Z lvl=info msg="Starting retention policy enforcement service" log_id=0ifCICUW000 service=retention check_interval=30m
ts=2023-06-26T17:36:21.646800Z lvl=info msg="Starting precreation service" log_id=0ifCICUW000 service=shard-precreation check_interval=10m advance_period=30m
ts=2023-06-26T17:36:21.647883Z lvl=info msg="Starting query controller" log_id=0ifCICUW000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
ts=2023-06-26T17:36:21.657866Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0ifCICUW000 max_select_point=0 max_select_series=0 max_select_buckets=0
ts=2023-06-26T17:36:21.668440Z lvl=info msg=Listening log_id=0ifCICUW000 service=tcp-listener transport=http addr=:8086 port=8086
starting scrutiny
scrutiny api not ready
2023/06/26 19:36:26 No configuration file found at /opt/scrutiny/config/scrutiny.yaml. Using Defaults.
___ ___ ____ __ __ ____ ____ _ _ _ _
/ __) / __)( _ \( )( )(_ _)(_ _)( \( )( \/ )
\__ \( (__ ) / )(__)( )( _)(_ ) ( \ /
(___/ \___)(_)\_)(______) (__) (____)(_)\_) (__)
github.com/AnalogJ/scrutiny dev-0.7.1
Start the scrutiny server
time="2023-06-26T19:36:26+02:00" level=info msg="Trying to connect to scrutiny sqlite db: /opt/scrutiny/config/scrutiny.db\n" type=web
time="2023-06-26T19:36:26+02:00" level=info msg="Successfully connected to scrutiny sqlite db: /opt/scrutiny/config/scrutiny.db\n" type=web
time="2023-06-26T19:36:26+02:00" level=info msg="InfluxDB certificate verification: true\n" type=web
time="2023-06-26T19:36:26+02:00" level=info msg="Database migration starting. Please wait, this process may take a long time...." type=web
time="2023-06-26T19:36:26+02:00" level=info msg="Database migration completed successfully" type=web
time="2023-06-26T19:36:26+02:00" level=info msg="SQLite global configuration migrations starting. Please wait...." type=web
time="2023-06-26T19:36:26+02:00" level=info msg="SQLite global configuration migrations completed successfully" type=web
[19:36:26] INFO: Starting NGinx...
time="2023-06-26T19:36:29+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2023-06-26T19:36:29+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:29 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.74.0\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.74.0
time="2023-06-26T19:36:31+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:31 +0200] \"HEAD /api/health\" 200 0 \"\" \"curl/7.74.0\" (10ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=10 method=HEAD path=/api/health referer= respLength=0 statusCode=200 type=web userAgent=curl/7.74.0
starting scrutiny collector (run-once mode. subsequent calls will be triggered via cron service)
2023/06/26 19:36:31 No configuration file found at /opt/scrutiny/config/collector.yaml. Using Defaults.
___ ___ ____ __ __ ____ ____ _ _ _ _
/ __) / __)( _ \( )( )(_ _)(_ _)( \( )( \/ )
\__ \( (__ ) / )(__)( )( _)(_ ) ( \ /
(___/ \___)(_)\_)(______) (__) (____)(_)\_) (__)
AnalogJ/scrutiny/metrics dev-0.7.1
time="2023-06-26T19:36:31+02:00" level=info msg="Verifying required tools" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Executing command: smartctl --info --json /dev/sda" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Using WWN Fallback" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Sending detected devices to API, for filtering & validation" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:31 +0200] \"POST /api/devices/register\" 200 543 \"\" \"Go-http-client/1.1\" (2ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=2 method=POST path=/api/devices/register referer= respLength=543 statusCode=200 type=web userAgent=Go-http-client/1.1
time="2023-06-26T19:36:31+02:00" level=info msg="Collecting smartctl results for sda\n" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Executing command: smartctl --xall --json /dev/sda" type=metrics
time="2023-06-26T19:36:31+02:00" level=info msg="Publishing smartctl results for 0x57c35481f82a7a9c\n" type=metrics
time="2023-06-26T19:36:31+02:00" level=error msg="An error occurred while saving smartctl metrics unprocessable entity: failure writing points to database: partial write: points beyond retention policy dropped=1" type=web
time="2023-06-26T19:36:31+02:00" level=error msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:31 +0200] \"POST /api/device/0x57c35481f82a7a9c/smart\" 500 17 \"\" \"Go-http-client/1.1\" (11ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=11 method=POST path=/api/device/0x57c35481f82a7a9c/smart referer= respLength=17 statusCode=500 type=web userAgent=Go-http-client/1.1
time="2023-06-26T19:36:31+02:00" level=info msg="Main: Completed" type=metrics
time="2023-06-26T19:36:34+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2023-06-26T19:36:34+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:34 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.74.0\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.74.0
time="2023-06-26T19:36:39+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2023-06-26T19:36:39+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:39 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.74.0\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.74.0
time="2023-06-26T19:36:44+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2023-06-26T19:36:44+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:44 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.74.0\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.74.0
time="2023-06-26T19:36:49+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2023-06-26T19:36:49+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [26/Jun/2023:19:36:49 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.74.0\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.74.0
Architecture
aarch64
OS
HAos
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (21 by maintainers)
Commits related to this issue
- Temp test : add privileges and api access https://github.com/alexbelgium/hassio-addons/issues/880 — committed to alexbelgium/hassio-addons by alexbelgium a year ago
- Update CHANGELOG.md https://github.com/alexbelgium/hassio-addons/issues/880 — committed to alexbelgium/hassio-addons by alexbelgium a year ago
- Correction from @dm82m https://github.com/alexbelgium/hassio-addons/issues/880 — committed to alexbelgium/hassio-addons by alexbelgium a year ago
works now, thanks for great co-work and fast change + release!
Thanks for this great troubleshooting
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.
Yes I tested without FA but then it shows no device. The ssd I am using is providing SMART.