Closed ButKor closed 3 weeks ago
First try fails because:
collectd.conf
is marked in tedge-configuration-plugin.toml
as being owned by rootchown root /tmp/collectd.conf
, but in a process running as tedge
user, which fails. This should not happen.
tedge-agent
ran as root by default, but now it runs as tedge
and privileged operations should be handled by tedge-write
. Unfortunately we missed a path where tedge-agent attempted to chown
directlySecond try succeeds because:
What should happen:
config-manager
and other callers, unless we're sure we have necessary privileges (#3148)Bug is not reproducable anymore, runned also the flakie test finder 100 times, no error detected
Describe the bug I am experiencing an unexpected behaviour when updating a certain configuration file (/etc/collectd/collectd.conf) via thin-edge from Cumulocity. The same operation succeeds only every second try, the others in between failing with:
See reproduction steps to make the problem clear.
To Reproduce
collectd
and get snapshot from Device. Click on save to repository once it's there.Failed to change owner: "/tmp/collectd.conf"
Failed to change owner: "/tmp/collectd.conf"
Environment (please complete the following information):