Bug 1655953

Summary: Gnome Software fails to install Flatpak Packages
Product: [Fedora] Fedora Reporter: mvw1970
Component: gnome-softwareAssignee: Richard Hughes <rhughes>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: klember, rhughes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-04 14:14:12 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:
Attachments:
Description Flags
System Log Messages while the error occured
none
Screenshot of the error message none

Description mvw1970 2018-12-04 10:18:33 UTC
Created attachment 1511244 [details]
System Log Messages while the error occured

gnome-software: Version 3.30.5, Release 1.fc29


How reproducible:
Use Gnome Software on Fedora 29 to (try to) install a Flatpak package.

Steps to Reproduce:
1.Open Gnome Software
2.Open a flatpak packages' site
3.Click the "Install" button

Actual results:
Button changes to say "Installing". The System Monitor Application shows that about 400MB are then downloaded before the Install process fails with the following message:

Unable to install Geary:
failed to run transaction for user/flatpak/flathub/desktop/org.gnome.Geary.desktop/stable: While trying to checkout 6d1d0ebbd72404c61d109307eb2240542b7ad82608bc642bba6f3eebcf8bf3 into /home/user/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/3.28/.61d0ebbd72404c61d109307eb224052b7ad8206bc6428bba6f3eebcfc8bf8-QO59SZ: Opening content object cc700d46f407c6c5ab2d5dde474366a928b7398277e61162e7f8ec06469f07e: fgetxattr: No data available

(I typed this by hand from the displayed error message. So there may be typing errors despite my best efforts)


Expected results:
The button changes to show "Installing", Gnome Software downloads the necessary data, installs the package and then changes the Button to show "Open Application.

Additional info: 
I tried installing Telegram and Geary. Both resulted in the same kind of error message.

Comment 1 Kalev Lember 2018-12-04 10:22:54 UTC
This is not a gnome-software issue. There's something wrong with your user flatpak installation. I would guess that it must have been backed up and restored from a backup without xattrs.

Can you try if "flatpak repair --user" on the command line fixes this?

Comment 2 mvw1970 2018-12-04 10:26:02 UTC
Created attachment 1511257 [details]
Screenshot of the error message

This is the screenshot of the error message I typed in the original bug.

Comment 3 mvw1970 2018-12-04 13:23:19 UTC
(In reply to Kalev Lember from comment #1)
> This is not a gnome-software issue. There's something wrong with your user
> flatpak installation. I would guess that it must have been backed up and
> restored from a backup without xattrs.
> 
> Can you try if "flatpak repair --user" on the command line fixes this?

Thank you for the quick answer.
Yes, that solved my problem.
I had not found any information about it on the web so I assumed it was a bug.
Do you think that an error message that upon this error hints at your solution might be a good idea?

Comment 4 Kalev Lember 2018-12-04 14:14:12 UTC
Ahh great :) Glad you got it working. Let's close the ticket then.

Not sure about the hint. Maybe, but in that case the hint should go to flatpak where the error message originates, not gnome-software. If you'd like to have that hint, please file an issue on https://github.com/flatpak/flatpak