Search broken after snapd is restarted

Bug #1718170 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Test Case:
1. Start gnome-software and close it
2. Make sure gnome-software is still running in the background
    $ pgrep -l gnome-software
3. Restart snapd
    $ sudo service snapd restart
4. Open gnome-software
5. Click on 'Search'
6. Search 'gedit'

Expected result
There should be at least 2 records for gedit as a deb and as a snap

Actual result
There is no result and after a while only debs are shown in the list

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-software 3.26.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.12.0-13.14-generic 4.12.10
Uname: Linux 4.12.0-13-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 19 12:14:03 2017
InstallationDate: Installed on 2013-09-03 (1476 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
InstalledPlugins:
 gnome-software-plugin-flatpak N/A
 gnome-software-plugin-limba N/A
 gnome-software-plugin-snap 3.26.0-0ubuntu1
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Robert Ancell (robert-ancell) wrote :

commit 3e8a4ed577b48c485039d2b0d00f2936da92a00d
Author: Robert Ancell <email address hidden>
Date: Thu Sep 21 12:55:12 2017 +1200

    snap: Don't use a common SnapdClient

    If the client fails (e.g. snapd is restarted) this means that snapd operations
    don't restart. Since GNOME Software runs as a background process this is
    unrecoverable.

    I could have checked for connection failures and reconnected when these occurred
    but this seems simpler. The cost of a SnapdClient is low (basically a single
    socket connection).

    This reverts the change in 696d076.

Changed in gnome-software (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.26.1-0ubuntu1

---------------
gnome-software (3.26.1-0ubuntu1) artful; urgency=medium

  * New upstream stable release: (LP: #1721308)
    - Fixes snap plugin not working after snap restart (LP: #1718170)
  * debian/patches/0001-gs_details_page_set_url-Pass-helper-to-gs_plugin_loa.patch
    - Applied upstream

 -- Robert Ancell <email address hidden> Wed, 11 Oct 2017 10:36:26 +1300

Changed in gnome-software (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.