profiles making a run for it

Bug #1764998 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On certain boots, `corebird` just stops working, the profiles seems to magically vanish. A simple `disable` followed by an `enable` is enough to bring the profile back.

sergiusens@mirkwood:~$ corebird
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory
sergiusens@mirkwood:~$ ls /var/lib/snapd/apparmor/profiles/|grep corebird
sergiusens@mirkwood:~$ snap disable corebird
corebird disabled
sergiusens@mirkwood:~$ snap enable corebird
corebird enabled
sergiusens@mirkwood:~$ corebird
ln: failed to create symbolic link '/home/sergiusens/snap/corebird/65/openh264/libopenh264.so.3': File exists
ln: failed to create symbolic link '/home/sergiusens/snap/corebird/65/openh264/libopenh264.so.4': File exists

(corebird:7944): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

(corebird:7944): Gtk-WARNING **: Theme parsing error: style.css:20:13: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(corebird:7944): Gtk-WARNING **: Theme parsing error: style.css:231:16: The 'outline-radius' property has been renamed to '-gtk-outline-radius'

(corebird:7944): Gtk-WARNING **: Theme parsing error: style.css:237:19: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(corebird:7944): Gtk-WARNING **: Theme parsing error: style.css:238:25: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(corebird:7944): Gtk-WARNING **: Theme parsing error: style.css:243:36: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(corebird:7944): Gdk-CRITICAL **: gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed

(corebird:7944): gspell-WARNING **: iso_639.xml: Failed to open file ?/usr/share/xml/iso-codes/iso_639.xml?: open() failed: No such file or directory

(corebird:7944): gspell-WARNING **: iso_3166.xml: Failed to open file ?/usr/share/xml/iso-codes/iso_3166.xml?: open() failed: No such file or directory

(corebird:7944): corebird-WARNING **: MainWindow.vala:492: Couldn't load window geometry for screen_name `sergiusens'

sergiusens@mirkwood:~$ snap version
snap 2.32.3.2+18.04
snapd 2.32.3.2+18.04
series 16
ubuntu 18.04
kernel 4.15.0-16-generic
sergiusens@mirkwood:~$ snap info corebird
name: corebird
summary: Corebird Twitter Client
publisher: snapcrafters
contact: https://github.com/snapcrafters/corebird/issues
license: unknown
description: |
  Corebird is a modern and lightweight Twitter client for the GNOME 3 desktop.
  It features inline image and video preview, creation of lists and favorites,
  filtering of tweets and full text search. Corebird is able to manage multiple
  Twitter accounts.
commands:
  - corebird
snap-id: jpPjOVJYHmcVHb0EJVC6hVlq6eCEYkZ5
tracking: stable
refreshed: 2017-11-20T05:33:15-03:00
installed: 1.7.3 (65) 36MB -
channels:
  stable: 1.7.3 (65) 36MB -
  candidate: 1.7.3 (88) 30MB -
  beta: 1.7.3 (88) 30MB -
  edge: 1.7.4 (90) 30MB -

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: snapd 2.32.3.2+18.04
ProcVersionSignature: Ubuntu 4.15.0-16.17+surface-generic 4.15.17
Uname: Linux 4.15.0-16-generic x86_64
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 18 06:32:19 2018
InstallationDate: Installed on 2018-04-09 (8 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Beta amd64 (20180404)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
no longer affects: snappy
affects: snappy → snapd
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Does this happen on 2.32.5 (which is available in beta). It has a number of fixes, some of those related to system key and profiles. Were you, by any chance, restarting to different kernels?

Changed in snapd:
status: New → Incomplete
Revision history for this message
Oliver Grawert (ogra) wrote :

i had the same issue with a sideloaded snap that works fine on an identical desktop install but on the laptop installation it showed:

ogra@acheron:~$ snapcraft-forum
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory
ogra@acheron:~$ snap run snapcraft-forum
cannot change profile for the next exec call: No such file or directory
snap-update-ns failed with code 1: No such file or directory

refreshing core to beta got me out of this state ...

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

We have identified this issue and will release a fix as snapd 2.32.6

For those curious in the technical details of the problem please look at https://github.com/snapcore/snapd/pull/5109

Changed in snapd:
status: Incomplete → Fix Committed
Changed in snapd (Ubuntu):
status: New → Fix Committed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The fix for this issue is now available in the beta channel (as snapd 2.32.6)

To everyone affected: please help testing by refreshing your core snap to the beta channel with "snap refresh core --beta". If your distribution does not support snapd re-execution this operation will not update your snapd (you can confirm that with "snap version") and thus you will need to wait for a release specific to your distribution.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This was released to stable as snapd 2.32.6

Changed in snapd:
status: Fix Committed → Fix Released
Changed in snapd (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.