Impossible to install snap: Unexpected change ID returned

Bug #1721740 reported by Jean-Baptiste Lallement
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Fix Released
Critical
Robert Ancell
Artful
Fix Released
Critical
Robert Ancell

Bug Description

with core 16-2.28.1 from candidate

Test Case
1. In gnome-software install a snap
2. When the polkit auth dialog shows up do nothing and wait for at least 5 minutes
3. After 5 minutes,, type your password and proceed with the installation

Actual result
The installation fails with this message: "Impossible to install snap: Unexpected change ID returned"

Expected result
Installation is successful

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-software 3.26.0-0ubuntu3
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 6 12:19:23 2017
InstallationDate: Installed on 2014-07-23 (1170 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
InstalledPlugins:
 gnome-software-plugin-flatpak N/A
 gnome-software-plugin-limba N/A
 gnome-software-plugin-snap 3.26.0-0ubuntu3
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-software
UpgradeStatus: Upgraded to artful on 2017-06-13 (114 days ago)

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

This seems to cause a simlar bug for removals (bug 1721765).

Changed in gnome-software (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This seems to have been fixed by the solution for bug 1718170.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

The cause appears to be multiple threads accessing the same SnapdClient object at the same time. This causes multiple requests to be sent at the same time and snapd-glib has a bug that doesn't handle the replies correctly. The solution in bug 1718170 is to make a SnapdClient for each thread, and avoids this issue.

Changed in gnome-software (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
Revision history for this message
Sebastien Bacher (seb128) wrote :

The other bug has been resolved, does it mean that one should be closed as well since you said it was the same issue?

tags: added: gnome-software-snap
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I'm closing this report. I cannot reproduce with latest versions.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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