Failed spotify snap refresh leaves snap in a disconnected state

Bug #2015353 reported by Harm van Bakel
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After attempting to update the spotify snap to version 1.2.8.923.g4f94bf0d the update failed with the following error:

- Setup snap "spotify" (63) security profiles (cannot update mount namespace of snap "spotify": cannot update preserved namespace of snap "spotify": cannot update snap namespace: remove /usr/bin/gjs: read-only file system)

After the update failed, the spotify snap remained on the version that was installed before the attempted update, but the connection to the content interface (and perhaps other interfaces) was lost during the upgrade process and wasn’t restored when the refresh failed. The failed update left the snap in a broken state with the following error when trying to launch spotify:

ERROR: not connected to the gnome-3-28-1804 content interface.

A workaround is to remove the spotify snap and then do a fresh installation of the latest version, although any current spotify settings are lost during this process.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: snapd 2.58+22.04
ProcVersionSignature: Ubuntu 5.15.0-70.77-generic 5.15.92
Uname: Linux 5.15.0-70-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 5 09:04:29 2023
InstallationDate: Installed on 2020-07-03 (1005 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Snap.Changes: no changes found
SourcePackage: snapd
UpgradeStatus: Upgraded to jammy on 2022-11-20 (136 days ago)

Revision history for this message
Harm van Bakel (hvbakel) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Lyubomir (mystiquewolf) wrote :
Revision history for this message
Harm van Bakel (hvbakel) wrote :

Linking to the snapcraft forum thread that has more information on this issue:

https://forum.snapcraft.io/t/spotify-snap-update-failed-version-1-2-8-923-g4f94bf0d/34586

Revision history for this message
benstokes (ibenstokes) wrote :

It seems like you encountered an issue while updating the Spotify snap on your Ubuntu 22.04 system. The error message suggests a problem with the security profiles during the update process. Additionally, after the update failed, the connection to the content interface was lost, rendering Spotify unusable.

Since the update failed and left the snap in a broken state, the suggested workaround of removing the Spotify snap and then performing a fresh installation of the latest version seems like a reasonable solution. However, it's important to note that this process will result in the loss of any current Spotify settings.

To proceed with the workaround:

Remove the broken Spotify snap:
arduino
sudo snap remove spotify

Install the latest version of Spotify:
sudo snap install spotify
After reinstalling Spotify, you should be able to use it normally, albeit with the loss of any previous settings.

If you encounter any further issues or need assistance with the process, feel free to ask https://spotigeek.com.tr/

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.