Open Karlthane opened 4 years ago
Hey @Karlthane can you try running Scrutiny with --cap-add SYS_RAWIO
and see if that works with podman? and then with --privileged
?
Will check those, but testing per @Mihlo on the selfhosted discord, running it with sudo allows it to run successfully. Also have been running it with the --cap-add SYS_RAWIO. Will check --privileged.
First attempt with --privileged gets me error Error: invalid config provided: CapAdd and privileged are mutually exclusive options
With CapAdd changed out for privileged, starts fine, run the metric collection, and get the following. scrutiny-collector-metrics-run-privileged.txt
I hope this helps you.
Ok, that's good to know. I'll make a note to document that sudo
is required to deploy on podman.
Smartctl does not work without root permission due to https://www.smartmontools.org/ticket/61. I think it's safe to close this issue.
Describe the bug When running using podman, scurtiny-collector-metrics gives error " smartctl returned an error code of 2 while processing sdx type-metrics, and no data is in webpage
Expected behavior Expected is hdd smart data in webpage
Screenshots If applicable, add screenshots to help explain your problem.
Log Files If related to missing devices or SMART data, please run the
collector
in DEBUG mode, and attach the log file.collector.log smartctl-in-container-results.txt web.log