Giter Site home page Giter Site logo

Comments (15)

alexbelgium avatar alexbelgium commented on June 12, 2024 1

Hi, sorry about that... I don't see anything wrong with the addon code from the log I think you'll have better support from the app repo : https://github.com/AnalogJ/scrutiny

from hassio-addons.

AnalogJ avatar AnalogJ commented on June 12, 2024 1

Hey @alexbelgium

I think this is related to the addon overriding the smartctl command args:

echo "commands:"
echo " metrics_smartctl_bin: '/usr/sbin/smartctl'"
echo " metrics_scan_args: '--scan --json --dev ${device_type}'"
echo " metrics_info_args: '--info --json --dev ${device_type}'"
echo " metrics_smart_args: '--xall --json --dev ${device_type}'"
} > /opt/scrutiny/config/collector.yaml

The default commands don't include the --device flag - https://github.com/AnalogJ/scrutiny/blob/master/collector/pkg/config/config.go#L46-L49

However it's conditionally added depending on the device type - https://github.com/AnalogJ/scrutiny/blob/master/collector/pkg/collector/metrics.go#L128

from hassio-addons.

AnalogJ avatar AnalogJ commented on June 12, 2024 1

the end result is 2 sets of device flags --dev and --device

from hassio-addons.

alexbelgium avatar alexbelgium commented on June 12, 2024 1

ah - good point! Thanks I'll update FA

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024 1

New version installed, tested and it's still the same problem during startup

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

Okay, thanks

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

AnalogJ/scrutiny#607 (comment)

from hassio-addons.

alexbelgium avatar alexbelgium commented on June 12, 2024

Thanks very much @AnalogJ !

I've removed the problematic code, could you please confirm @pxFIN if it works?

It was added a long time ago to solve some devices not being recognized and I suppose it is not needed anymore

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

I will when i see new release.. it should be visible right ?

No new updates

from hassio-addons.

alexbelgium avatar alexbelgium commented on June 12, 2024

Just refresh your repo manually or wait a bit and it will appear

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

Btw, did you update only scrutiny but not full access version ?

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

Did more experimenting.. uninstalled Scrutiny FA addon.. installed again

Here's relevant logs

starting scrutiny
2024/03/19 13:17:53 No configuration file found at /opt/scrutiny/config/scrutiny.yaml. Using Defaults.

 ___   ___  ____  __  __  ____  ____  _  _  _  _
/ __) / __)(  _ \(  )(  )(_  _)(_  _)( \( )( \/ )
\__ \( (__  )   / )(__)(   )(   _)(_  )  (  \  /
(___/ \___)(_)\_)(______) (__) (____)(_)\_) (__)
github.com/AnalogJ/scrutiny                             dev-0.8.0

Start the scrutiny server
time="2024-03-19T13:17:53+02:00" level=info msg="Trying to connect to scrutiny sqlite db: /opt/scrutiny/config/scrutiny.db\n" type=web
time="2024-03-19T13:17:53+02:00" level=info msg="Successfully connected to scrutiny sqlite db: /opt/scrutiny/config/scrutiny.db\n" type=web
time="2024-03-19T13:17:53+02:00" level=info msg="InfluxDB certificate verification: true\n" type=web
scrutiny api not ready
time="2024-03-19T13:17:53+02:00" level=info msg="Database migration starting. Please wait, this process may take a long time...." type=web
time="2024-03-19T13:17:53+02:00" level=info msg="Database migration completed successfully" type=web
time="2024-03-19T13:17:53+02:00" level=info msg="SQLite global configuration migrations starting. Please wait...." type=web
time="2024-03-19T13:17:53+02:00" level=info msg="SQLite global configuration migrations completed successfully" type=web
[13:17:54] INFO: Starting NGinx...
time="2024-03-19T13:17:58+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2024-03-19T13:17:58+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [19/Mar/2024:13:17:58 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.88.1\" (3ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=3 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.88.1
time="2024-03-19T13:17:58+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [19/Mar/2024:13:17:58 +0200] \"HEAD /api/health\" 200 0 \"\" \"curl/7.88.1\" (17ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=17 method=HEAD path=/api/health referer= respLength=0 statusCode=200 type=web userAgent=curl/7.88.1
starting scrutiny collector (run-once mode. subsequent calls will be triggered via cron service)
2024/03/19 13:17:58 No configuration file found at /opt/scrutiny/config/collector.yaml. Using Defaults.

 ___   ___  ____  __  __  ____  ____  _  _  _  _
/ __) / __)(  _ \(  )(  )(_  _)(_  _)( \( )( \/ )
\__ \( (__  )   / )(__)(   )(   _)(_  )  (  \  /
(___/ \___)(_)\_)(______) (__) (____)(_)\_) (__)
AnalogJ/scrutiny/metrics                                dev-0.8.0

time="2024-03-19T13:17:58+02:00" level=info msg="Verifying required tools" type=metrics
time="2024-03-19T13:17:58+02:00" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2024-03-19T13:17:58+02:00" level=info msg="Sending detected devices to API, for filtering & validation" type=metrics
time="2024-03-19T13:17:58+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [19/Mar/2024:13:17:58 +0200] \"POST /api/devices/register\" 200 40 \"\" \"Go-http-client/1.1\" (1ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=1 method=POST path=/api/devices/register referer= respLength=40 statusCode=200 type=web userAgent=Go-http-client/1.1
time="2024-03-19T13:17:58+02:00" level=info msg="Main: Completed" type=metrics
time="2024-03-19T13:18:03+02:00" level=info msg="Checking Influxdb & Sqlite health" type=web
time="2024-03-19T13:18:03+02:00" level=info msg="127.0.0.1 - db21ed7f-scrutiny-fa [19/Mar/2024:13:18:03 +0200] \"GET /api/health\" 200 16 \"\" \"curl/7.88.1\" (2ms)" clientIP=127.0.0.1 hostname=db21ed7f-scrutiny-fa latency=2 method=GET path=/api/health referer= respLength=16 statusCode=200 type=web userAgent=curl/7.88.1

smartctl command (smartctl --scan --json) is missing device type.. no scrutiny.yaml so defaults are used..

from hassio-addons.

pxFIN avatar pxFIN commented on June 12, 2024

I switched from backups back to 0.7.2 which works.. 0.7.3 finds SSD but always shows failed

smartctl gives checksum error but still can see all the smart parameters

from hassio-addons.

alexbelgium avatar alexbelgium commented on June 12, 2024

Thanks ; given none of my code change in that time frame I don't see how to support you

from hassio-addons.

github-actions avatar github-actions commented on June 12, 2024

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.

from hassio-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.