ubuntu-settings-migrate-to-defaults.18.10.0.py crashed with KeyError in __getitem__(): 'DESKTOP_SESSION'

Bug #1790532 reported by Chaostya
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Fix Released
Medium
Didier Roche-Tolomelli

Bug Description

booted and logged in

ProblemType: Crash
DistroRelease: Ubuntu 18.10
Package: ubuntu-session 3.29.90-1ubuntu3
Uname: Linux 4.19.0-041900rc2-generic x86_64
ApportVersion: 2.20.10-0ubuntu9
Architecture: amd64
CurrentDesktop: GNOME-Greeter:GNOME
Date: Mon Sep 3 23:17:33 2018
ExecutablePath: /usr/share/session-migration/scripts/ubuntu-settings-migrate-to-defaults.18.10.0.py
InstallationDate: Installed on 2018-06-09 (86 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
InterpreterPath: /usr/bin/python3.6
ProcCmdline: /usr/bin/python3 /usr/share/session-migration/scripts/ubuntu-settings-migrate-to-defaults.18.10.0.py
Python3Details: /usr/bin/python3.6, Python 3.6.6+, python3-minimal, 3.6.6-1
PythonArgs: ['/usr/share/session-migration/scripts/ubuntu-settings-migrate-to-defaults.18.10.0.py']
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
SourcePackage: gnome-session
Title: ubuntu-settings-migrate-to-defaults.18.10.0.py crashed with KeyError in __getitem__(): 'DESKTOP_SESSION'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Related branches

Revision history for this message
Chaostya (chaostya) wrote :
tags: removed: need-duplicate-check
Changed in gnome-session (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-session (Ubuntu):
status: New → Confirmed
Revision history for this message
Iain Lane (laney) wrote :

Thanks - I got this too from the gdm-wayland-session.

Traceback (most recent call last):
  File "/usr/share/session-migration/scripts/ubuntu-settings-migrate-to-defaults.18.10.0.py", line 35, in <module>
    if os.environ['DESKTOP_SESSION'] != 'ubuntu':
  File "/usr/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'DESKTOP_SESSION'

information type: Private → Public
Changed in gnome-session (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Iain Lane (laney) wrote :

Marco, would be good if you could look if you've got time, thanks!

Revision history for this message
corrado venturini (corradoventu) wrote :

on new install from Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180906)
just started after install

corrado@corrado-p9-cc-0906:~$ inxi -Fx
System: Host: corrado-p9-cc-0906 Kernel: 4.17.0-9-generic x86_64 bits: 64 compiler: gcc v: 8.2.0
           Desktop: Gnome 3.30.0 Distro: Ubuntu 18.10 (Cosmic Cuttlefish)
Machine: Type: Desktop Mobo: ASRock model: H110M-G/M.2 serial: <root required> UEFI: American Megatrends
           v: P1.10 date: 05/11/2017
CPU: Topology: Dual Core model: Intel Core i3-7100 bits: 64 type: MT MCP arch: Skylake rev: 9
           L2 cache: 3072 KiB
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31296
           Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800
Graphics: Device-1: Intel HD Graphics 630 driver: i915 v: kernel bus ID: 00:02.0
           Display: x11 server: X.Org 1.20.1 driver: i915 resolution: 1920x1080~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2) v: 4.5 Mesa 18.1.5
           direct render: Yes
Audio: Device-1: Intel 100 Series/C230 Series Family HD Audio driver: snd_hda_intel v: kernel
           bus ID: 00:1f.3
           Sound Server: ALSA v: k4.17.0-9-generic
Network: Device-1: Intel Ethernet I219-V driver: e1000e v: 3.2.6-k port: N/A bus ID: 00:1f.6
           IF: enp0s31f6 state: up speed: 100 Mbps duplex: full mac: 70:85:c2:44:7b:86
Drives: Local Storage: total: 931.51 GiB used: 4.32 GiB (0.5%)
           ID-1: /dev/sda vendor: Toshiba model: DT01ACA100 size: 931.51 GiB temp: 37 C
Partition: ID-1: / size: 15.62 GiB used: 4.31 GiB (27.6%) fs: ext4 dev: /dev/sda9
           ID-2: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2
Sensors: System Temperatures: cpu: 44.0 C mobo: N/A
           Fan Speeds (RPM): N/A
Info: Processes: 212 Uptime: 6m Memory: 7.50 GiB used: 1.10 GiB (14.6%) Init: systemd Compilers: gcc: N/A
           Shell: bash v: 4.4.19 inxi: 3.0.22
corrado@corrado-p9-cc-0906:~$

Changed in gnome-session (Ubuntu):
status: Confirmed → In Progress
Changed in gnome-session (Ubuntu):
assignee: Marco Trevisan (Treviño) (3v1n0) → Didier Roche (didrocks)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-session - 3.30.0-0ubuntu2

---------------
gnome-session (3.30.0-0ubuntu2) cosmic; urgency=medium

  * debian/ubuntu-settings-migrate-to-defaults.18.10.0.py:
    - use getenv instead of environ[], as the session env key is
      missing for instance under gdm. (LP: #1790532)
    - add missing sys import (LP: #1791100)

 -- Didier Roche <email address hidden> Fri, 07 Sep 2018 08:58:23 +0200

Changed in gnome-session (Ubuntu):
status: In Progress → 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.