Bug 1509586 - Cannot install snap in gnome-software
Summary: Cannot install snap in gnome-software
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 27
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-04 21:57 UTC by brandex07
Modified: 2017-11-30 15:38 UTC (History)
8 users (show)

Fixed In Version: snapd-2.29.4-2.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-30 15:38:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot (89.49 KB, image/png)
2017-11-04 21:57 UTC, brandex07
no flags Details
Install Polkit configuration (1.95 KB, patch)
2017-11-13 02:54 UTC, Robert Ancell
no flags Details | Diff

Description brandex07 2017-11-04 21:57:24 UTC
Created attachment 1347911 [details]
Screenshot

Description of problem:  Whenever I try to install a snap package from gnome-software, I get an error (see below)


Version-Release number of selected component (if applicable): 3.26.1 (latest in Fedora 27)


How reproducible: 
Happens each time I attempt it and for every snap package. And yes I have a Snap Store account.


Steps to Reproduce:
1. sudo dnf install snapd
2. Open gnome-software and search for snap
3. Hit install

Actual results: "GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or permissions invalid


Expected results: Installation of snap package


Additional info: I'm using latest Fedora 27 pre release

Comment 1 Neal Gompa 2017-11-08 18:46:40 UTC
What versions of snapd and snapd-login-service are installed?

Comment 2 brandex07 2017-11-08 23:48:12 UTC
Latest Fedora 27 updates, but at time of writing: 
snapd = 2.27.6-1.fc27
snapd-login-service = 1.22-1.fc27

Thanks

Comment 3 Neal Gompa 2017-11-12 21:25:16 UTC
With Fedora 27 Workstation final and latest updates, I get a different issue: it hangs at "Installing 0%".

Versions of the snapd software:
snapd = 2.28.5-2.fc27
snapd-login-service = 1.23-1.fc27

@Robert, any ideas?

Comment 4 Robert Ancell 2017-11-13 00:40:11 UTC
It seems to be an issue with snapd, running the following:

$ snap install moon-buggy

Just hangs forever (this is essentially what GNOME Software is doing). Note that the following does work:

$ sudo snap install moon-buggy

So it seems related to the user permission checks.

It seems the file /usr/share/polkit-1/actions/io.snapcraft.snapd.policy is missing - perhaps this is breaking it? Also there is some SELinux warnings in the journal, not sure if these are related.

Comment 5 Robert Ancell 2017-11-13 00:46:29 UTC
Copying the .policy file from git makes the Polkit prompt come up, but it still blocks after that. Note you can see what snapd is working on by running:

$ snap changes

From another terminal (this shows it hasn't started the install transaction).

Comment 6 Robert Ancell 2017-11-13 02:54:39 UTC
Created attachment 1351377 [details]
Install Polkit configuration

Patch for snapd packaging to install polkit documentation

Comment 7 Robert Ancell 2017-11-15 20:17:42 UTC
Uh, that should say polkit configuration, not documentation..

Comment 8 Fedora Update System 2017-11-19 21:04:49 UTC
snapd-glib-1.29-1.fc27 snapd-2.29.4-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ab473c46c

Comment 9 Fedora Update System 2017-11-20 19:53:04 UTC
snapd-2.29.4-2.fc27, snapd-glib-1.29-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7ab473c46c

Comment 10 Fedora Update System 2017-11-30 15:38:27 UTC
snapd-2.29.4-2.fc27, snapd-glib-1.29-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.