[snap] Chromium with core24 base won't start: desktop-launch not found

Bug #2072395 reported by Tom
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Confirmed
Critical
Nathan Teodosio
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Today I was prompted to update my chromium snap, so I closed it down and the auto-refresh happened. When I tried to launch it, it did not come up. Running `chromium` from the command line resulted in the following error:

$ chromium
Content snap command-chain for /snap/chromium/2905/gnome-platform/command-chain/desktop-launch not found: ensure slot is connected

Browsing the internet, I found people saying that gnome needed to be connected. Running `sudo snap connect chromium:gnome-46-2404 gnome-46-2404:gnome-46-2404` did not fix the problem.

I'm not sure it matters for a snap, but this is (very recently updated) ubuntu 22.04 running KDE on x86_64.

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

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

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
Maxim Wirt (mvirt) wrote :

The same error on Ubuntu 24.04 / x86_64

Revision history for this message
Dr Maria Brandl (regenspatz) wrote :

Same on Ubuntu 18.04.

sudo snap revert chromium --revision 2897

took me back to the previous, functioning version of chromium.

snap refresh --hold=24h chromium

is also useful to stop further updates for a while.

Revision history for this message
Serik Kozhabaev (shiko15) wrote :

As it was suggested by the people above, I ran this command below
> sudo snap revert chromium --revision 2897
But for some reason it gives me this error message:
error: cannot revert "chromium": cannot revert inactive snaps

Revision history for this message
Mingi Hwang (goonmandu) wrote (last edit ):

Can confirm on Ubuntu 20.04, amd64, but with different error message.

$ chromium

Content snap command-chain for /snap/chromium/2905/gpu-2404/bin/gpu-2404-provider-wrapper not found: ensure slot is connected

$ snap info chromium

name: chromium
summary: Chromium web browser, open-source version of Chrome
publisher: Canonical✓
store-url: https://snapcraft.io/chromium
contact: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bugs?field.tag=snap
license: unset
description: |
  An open-source browser project that aims to build a safer, faster, and more
  stable way for all Internet users to experience the web.
commands:
  - chromium.chromedriver
  - chromium
snap-id: XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R
tracking: latest/stable
refresh-date: today at 09:30 KST
channels:
  latest/stable: 126.0.6478.126 2024-07-04 (2905) 174MB -
  latest/candidate: 126.0.6478.126 2024-07-03 (2905) 174MB -
  latest/beta: 127.0.6533.26 2024-06-28 (2904) 179MB -
  latest/edge: 128.0.6555.2 2024-06-26 (2898) 180MB -
installed: 126.0.6478.126 (2905) 174MB

Reverting to Revision 2897 as mentioned in #3 solved the issue.

Revision history for this message
Nathan Teodosio (nteodosio) wrote (last edit ):

Can you also please add the result

  snap info --verbose chromium|grep -q core24 && { snap connections chromium; snap list|grep -P 'mesa|gnome-\d|core2'; }

if not empty? (Stable was rolled back to use core22 to fix the problem so if you already got it updated it will return nothing).

Changed in chromium-browser (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Nathan Teodosio (nteodosio)
Revision history for this message
Dr Maria Brandl (regenspatz) wrote :

Not sure how to address #4, but wonder whether revision 2897 is available on his installation.
On my computer:
ls -l /snap/chromium/
produced:
drwxr-xr-x 12 root root 190 Jun 25 18:31 2897
drwxr-xr-x 11 root root 179 Jul 3 17:23 2905
lrwxrwxrwx 1 root root 4 Jul 7 16:45 current -> 2897

Revision history for this message
Nathan Teodosio (nteodosio) wrote (last edit ):

I reverted Chromium stable channel to core22 (revisions 2897 for x64 and 2899 for aarch64). It would still be valuable to investigate what exactly is going on here with core24 (on candidate channel, revisions 2905 and 2906), which is what triggered this bug, especially regarding the connections as asked in #6 and #7.

tags: added: core24
Revision history for this message
Dr Maria Brandl (regenspatz) wrote (last edit ):

snap list | grep -E 'gpu|gnome|core2'

produces:

core20 20240416 2318 latest/stable canonical** base
core22 20240408 1380 latest/stable canonical** base
core24 20240528 423 latest/stable canonical** base
gnome-3-26-1604 3.26.0.20221130 111 latest/stable/… canonical** -
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 198 latest/stable canonical** -
gnome-3-34-1804 0+git.3556cb3 93 latest/stable canonical** -
gnome-3-38-2004 0+git.efb213a 143 latest/stable canonical** -
gnome-42-2204 0+git.510a601 176 latest/stable canonical** -
gnome-46-2404 0+git.b6706a3 26 latest/stable canonical** -
gnome-calculator 45.0.2 955 latest/stable/… canonical** -
gnome-characters 46.0 797 latest/stable/… canonical** -
gnome-logs 45.0 123 latest/stable/… canonical** -
gnome-system-monitor 45.0 186 latest/stable/… canonical** -
kde-frameworks-5-96-qt-5-15-5-core20 5.96.0 7 latest/stable kde** -
kf5-5-104-qt-5-15-8-core22 5.104 9 latest/stable kde** -
kf5-5-108-qt-5-15-10-core22 5.108 5 latest/stable kde** -
kf5-5-111-qt-5-15-11-core22 5.111 7 latest/stable kde** -
kf5-5-113-qt-5-15-11-core22 5.113 1 latest/stable kde** -
mesa-core22 23.2.1 311 latest/stable canonical** -

Revision history for this message
Dr Maria Brandl (regenspatz) wrote (last edit ):
Download full text (3.8 KiB)

snap connections chromium

returns:

Interface Plug Slot Notes
audio-playback chromium:audio-playback :audio-playback -
audio-record chromium:audio-record :audio-record -
bluez chromium:bluez :bluez -
browser-support chromium:browser-sandbox :browser-support -
camera chromium:camera :camera -
content chromium:foo-install-cups - -
content[gnome-46-2404] chromium:gnome-46-2404 gnome-46-2404:gnome-46-2404 -
content[gpu-2404] chromium:gpu-2404 mesa-2404:gpu-2404 -
content[gtk-3-themes] chromium:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] chromium:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] chromium:sound-themes gtk-common-themes:sound-themes -
cups chromium:cups cups:cups -
desktop chromium:desktop :desktop -
desktop-legacy chromium:desktop-legacy :desktop-legacy -
gsettings chromium:gsettings :gsettings -
hardware-observe chromium:hardware-observe :hardware-observe -
home chromium:home :home -
joystick chromium:joystick :joystick -
mount-observe chromium:mount-observe - -
mpris - chromium:mpris -
network chromium:network :network -
network-bind chromium:network-bind :network-bind -
network-manager chromium:network-manager - -
opengl chromium:opengl :opengl -
password-manager-service chromium:password-manager-service - -
personal-files chromium:chromium-config :personal-files -
personal-files chromium:dot-local-share-applications :personal-files -
personal-files chromium:dot-local-share-icons :personal-files -
raw-usb chromium:raw-usb - -
removable-media chromium:removable-media :removable-media -
screen-inhibit-control chromium:screen-inhibit-control ...

Read more...

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Hi Dr Maria Brandl, thanks but it seems you already got the snap reverted to the core22 version so this won't be of use for debugging. I updated #6 to make that clearer.

Revision history for this message
Dr Maria Brandl (regenspatz) wrote (last edit ):

Reverted back to revision 2905 and updated #10 and #11.

Revision 2905 now behaves as expected, also resilient to operating system shutdown and restart.

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
Dr Maria Brandl (regenspatz) wrote :
Download full text (5.9 KiB)

Being back on revision 2905:

snap info --verbose chromium|grep -q core24 && { snap connections chromium; snap list|grep -P 'mesa|gnome-\d|core2'; }

returns:

snap info --verbose chromium|grep -q core24 && { snap connections chromium; snap list|grep -P 'mesa|gnome-\d|core2'; }
Interface Plug Slot Notes
audio-playback chromium:audio-playback :audio-playback -
audio-record chromium:audio-record :audio-record -
bluez chromium:bluez :bluez -
browser-support chromium:browser-sandbox :browser-support -
camera chromium:camera :camera -
content chromium:foo-install-cups - -
content[gnome-46-2404] chromium:gnome-46-2404 gnome-46-2404:gnome-46-2404 -
content[gpu-2404] chromium:gpu-2404 mesa-2404:gpu-2404 -
content[gtk-3-themes] chromium:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] chromium:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] chromium:sound-themes gtk-common-themes:sound-themes -
cups chromium:cups cups:cups -
desktop chromium:desktop :desktop -
desktop-legacy chromium:desktop-legacy :desktop-legacy -
gsettings chromium:gsettings :gsettings -
hardware-observe chromium:hardware-observe :hardware-observe -
home chromium:home :home -
joystick chromium:joystick :joystick -
mount-observe chromium:mount-observe - -
mpris - chromium:mpris -
network chromium:network :network -
network-bind chromium:network-bind :network-bind -
network-manager chromium:network-manager - -
opengl chromium:opengl :opengl -
password-manager-service chromium:password-manager-service - -
personal-files chromium:chromium-config :personal-files -
personal-files chromium:dot-local-share-applications :personal-files -
personal-files chromium:dot-local-share-icons :personal-files -
raw-usb ...

Read more...

Revision history for this message
Tom (teeks99) wrote :

I can confirm that after a `snap refresh` I'm at 2897 and things are back to working order.

Revision history for this message
Jim Muchow (jdavidm) wrote :

My version of this bug was declared a duplicate (which it is). As I wrote, I simply reset my box and the problem was "fixed" and it has stayed so. I don't know what that means.

xyz@optiplex:~$ ls -al /snap/chromium
total 8
drwxr-xr-x 4 root root 4096 Jul 5 06:37 .
drwxr-xr-x 22 root root 4096 Jul 5 06:36 ..
drwxr-xr-x 12 root root 190 Jun 25 12:31 2897
drwxr-xr-x 11 root root 179 Jul 3 11:23 2905
lrwxrwxrwx 1 root root 4 Jul 5 06:32 current -> 2905

Is there anything more I can do to help?

Revision history for this message
Serik Kozhabaev (shiko15) wrote (last edit ):

I tried other old solutions on the Internet before I found this thread so unfortunately in #4 I deleted my chromium along with its configs and data. I reinstalled 2897 and now everything works fine but my extensions/bookmarks/history are all lost(

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

#4 does not cause Chromium configuration and data files to be deleted.

Look into $HOME/snap/chromium or even for saved snapshots with 'snap saved'.

summary: - [snap] won't start with desktop-launch not found
+ [snap] Chromium with core24 base won't start: desktop-launch not found
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Jim Muchow, no, thank you, the problem is under investigation by the Snapd team.

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.