Bug 2057584

Summary: not handling error no-security for action get-updates: Creating repo: mkdirat: Permission denied
Product: Red Hat Enterprise Linux 9 Reporter: Timothée Ravier <travier>
Component: gnome-softwareAssignee: Milan Crha <mcrha>
Status: CLOSED DUPLICATE QA Contact: Martin Krajnak <mkrajnak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: klember, rhughes, tpelka
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-01 14:54:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothée Ravier 2022-02-23 16:36:09 UTC
Description of problem:

Fresh installations of C9S or RHEL9 gives me this error in the GNOME Software interface and in the logs:

```
$ sudo journalctl | grep gnome-software
févr. 23 16:20:56 localhost.localdomain gnome-software[5623]: enabled plugins: appstream, fwupd, os-release, packagekit-refresh, flatpak, hardcoded-blocklist, hardcoded-popular, modalias, packagekit, rewrite-resource, provenance, repos, systemd-updates, generic-updates, packagekit-refine-repos, provenance-license, icons
févr. 23 16:20:56 localhost.localdomain gnome-software[5623]: disabled plugins: dummy, fedora-langpacks, fedora-pkgdb-collections
févr. 23 16:20:56 localhost.localdomain gnome-software[5623]: failed to set proxy: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code3: setting the proxy failed: failed to get the uid
févr. 23 16:20:56 localhost.localdomain gnome-software[5623]: failed to set proxies: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code3: setting the proxy failed: failed to get the uid
févr. 23 16:20:59 localhost.localdomain gnome-software[5623]: Only 0 apps for recent list, hiding
févr. 23 16:20:59 localhost.localdomain gnome-software[5623]: failed to get featured apps: no apps to show
févr. 23 16:20:59 localhost.localdomain gnome-software[5623]: Only 0 apps for popular list, hiding
févr. 23 16:21:03 localhost.localdomain gnome-software[5623]: Only 0 apps for recent list, hiding
févr. 23 16:21:03 localhost.localdomain gnome-software[5623]: failed to get featured apps: no apps to show
févr. 23 16:21:03 localhost.localdomain gnome-software[5623]: Only 0 apps for popular list, hiding
févr. 23 16:21:50 localhost.localdomain gnome-software[5623]: Only 0 apps for recent list, hiding
févr. 23 16:21:50 localhost.localdomain gnome-software[5623]: failed to get featured apps: no apps to show
févr. 23 16:21:57 localhost.localdomain gnome-software[5623]: Only 1 apps for popular list, hiding
févr. 23 16:21:58 localhost.localdomain gnome-software[5623]: not handling error no-security for action get-updates: Creating repo: mkdirat: Permission non accordée
févr. 23 16:22:03 localhost.localdomain gnome-software[5623]: Only 0 apps for recent list, hiding
févr. 23 16:22:03 localhost.localdomain gnome-software[5623]: Only 1 apps for popular list, hiding
févr. 23 16:22:03 localhost.localdomain gnome-software[5623]: failed to get featured apps: no apps to show
févr. 23 16:25:07 localhost.localdomain gnome-software[5623]: Only 0 apps for recent list, hiding
févr. 23 16:25:07 localhost.localdomain gnome-software[5623]: failed to get featured apps: no apps to show
févr. 23 16:25:07 localhost.localdomain gnome-software[5623]: Only 1 apps for popular list, hiding

```

Similar to https://bugzilla.redhat.com/show_bug.cgi?id=2035781 but I don't think it's the same bug.


Version-Release number of selected component (if applicable):

RHEL-9.1.0-20220222.1-x86_64-dvd1
C9S ISO as of Feb 17th.

How reproducible:

Always, right after installation, first time I open GNOME Software.

Steps to Reproduce:
1. Install system
2. Open GNOME Software

Actual results:

Error message


Expected results:

No error message

Additional info:

Comment 1 Milan Crha 2022-02-24 08:04:15 UTC
Thanks for a bug report.

(In reply to Timothée Ravier from comment #0)
> Similar to https://bugzilla.redhat.com/show_bug.cgi?id=2035781 but I don't
> think it's the same bug.

I agree, it was due to vncserver usage there.

> Version-Release number of selected component (if applicable):
> 
> RHEL-9.1.0-20220222.1-x86_64-dvd1
> C9S ISO as of Feb 17th.

These things get lost very easily, better to follow the template text (Version-Release number of selected component), aka to give the gnome-software package version (rpm -q gnome-software).

A similar bug from Fedora 29:
https://bugzilla.redhat.com/show_bug.cgi?id=1692043
which doesn't have any resolution.

Maybe this could be covered by:
https://bugzilla.redhat.com/show_bug.cgi?id=1981776
as I believe once the "mkdirat" error disappears the GNOME Software will be error free as well. Could you try to:

   $ sudo flatpak repair
   $ gnome-software --quit
   $ gnome-software

please? The flatpak command should fix the problem (as that bug description says), while the other two commands restart gnome-software.

Comment 2 Timothée Ravier 2022-03-01 14:54:14 UTC
This fixed it. Closing as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1981776.

*** This bug has been marked as a duplicate of bug 1981776 ***