Today I got this on syslog:
{
"Error": {
"Domain": "FwupdError",
"Code": 4,
"Message": "Failed to obtain auth"
}
}
So it appears there are two problems.
# First problem: refresh too frequent
The first is that the refresh is done too often, that is, every hour.
# Second problem: auth fails under systemd, but not from the command line
Even after changing this to one week, as I have done, it does not work as it
fails with auth.
It does work from the command line, though. The following four commands were
given immeditately one after the other:
# fwupdmgr --json refresh
# fwupdmgr --json refresh
{
"Error": {
"Domain": "FwupdError",
"Code": 9,
"Message": "Metadata is up to date; use --force to refresh again."
}
}
tucano:~# fwupdmgr --json --force refresh
tucano:~# echo $?
0
Next, I changed the overrides so that fwupmgr is called every hour (as shipped
by Debian) with both --force option to avoid an error because of strict timing
and --json option to get the reason in case of failure. This is what I get
after one hour:
{
"Error": {
"Domain": "FwupdError",
"Code": 4,
"Message": "Failed to obtain auth"
}
}
Which confirms that the problem is there: auth fails when executed by systemd,
but works from the command line. Here I am stuck. Any suggestions on how to
debug this?