do-release-upgrade failed silently after failed to connect to snap service

Bug #1926267 reported by Patrick Wu
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Brian Murray
Hirsute
Won't Fix
Undecided
Unassigned
Impish
Won't Fix
High
Unassigned

Bug Description

Multiple reports received for people trying to upgrade from Ubuntu 20.04 to Ubuntu 20.10 using `do-release-upgrade` on WSL failed silently. After digging, it is found that in DistUpgradeQuirks.py, DistUpgradeQuirks._checkStoreConnectivity won't check for the message thrown by `snap debug connectivity` which is complaining about the inability of connecting to `snapd` service:
`
> error: cannot communicate with server: Get "http://localhost/v2/debug?aspect=connectivity": dial unix /run/snapd.socket: connect: no such file or directory

This bug should affect all versions of packages especially 20.04 or higher (1:20.04.32).

Tags: fr-1326

Related branches

Patrick Wu (callmepk)
tags: added: rls-hh-incoming
tags: added: fr-1326
tags: removed: rls-hh-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu Hirsute):
status: New → Confirmed
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Logan Rosen (logan) wrote (last edit ):

This also impacts upgrading from 20.10 to 21.04. I was able to reproduce the issue in my local WSL2 install of Groovy.

Revision history for this message
Daniel (sad1212fasdf) wrote :

I can reproduce the issue on when trying to upgrade from Ubuntu 20.04.2 LTS to Ubuntu 21.04 using `do-release-upgrade` on WSL 2.

I don't get any real error output. The last this I see is a screen that shows only:

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://archive.ubuntu.com/ubuntu focal InRelease
Hit http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command terminated with exit status 1 (Mon Jul 12 09:14:34 2021) ===

Revision history for this message
Daniel (sad1212fasdf) wrote :

PS, when I invoke `apt remove snapd` and run `do-release-upgrade` again, the upgrade completes successfully.

Revision history for this message
Steve Dodd (anarchetic) wrote :

Bug #1810565 related.

Changed in ubuntu-release-upgrader (Ubuntu Hirsute):
status: Confirmed → Won't Fix
Changed in ubuntu-release-upgrader (Ubuntu Impish):
status: Confirmed → Triaged
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ubuntu-release-upgrader_22.04.2.dsc: done.
  Uploading ubuntu-release-upgrader_22.04.2.tar.xz: done.
  Uploading ubuntu-release-upgrader_22.04.2_source.buildinfo: done.
  Uploading ubuntu-release-upgrader_22.04.2_source.changes: done.
Successfully uploaded packages.

Changed in ubuntu-release-upgrader (Ubuntu):
assignee: Brian Murray (brian-murray) → nobody
status: In Progress → Fix Committed
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Brian Murray (brian-murray) wrote :

I'm happy to upload this to Impish but the bug will need an SRU template completed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:22.04.2

---------------
ubuntu-release-upgrader (1:22.04.2) jammy; urgency=medium

  [ Didier Roche ]
  * DistUpgrade/DistUpgradeQuirks.py: Only try to connect to snapd if there is
    a socket for system activation or if snapd was already running. This
    resolves failures to upgrade under WSL. (LP: #1926267)

 -- Brian Murray <email address hidden> Fri, 29 Oct 2021 09:59:29 -0700

Changed in ubuntu-release-upgrader (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

Ubuntu 21.10 (Impish Indri) has reached end of life, so this bug will not be fixed for that specific release.

Changed in ubuntu-release-upgrader (Ubuntu Impish):
status: Triaged → Won't Fix
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.