The ssh-agent launcher script fails to relaunch ssh-agent

Bug #1789523 reported by Christopher Snowhill
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

There is an issue with the Xsession, in which logging out and logging back in again does not clear environment variables, so the ssh-agent script thinks that the agent is already running, and thus does not bother to start it again.

I have altered the script, albeit in not the most pretty way, to detect if the agent is already running, and if not, force a restart.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: x11-common 1:7.7+19ubuntu7.1
ProcVersionSignature: Ubuntu 4.15.0-33.36-generic 4.15.18
Uname: Linux 4.15.0-33-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: KDE
Date: Tue Aug 28 17:33:34 2018
Dependencies: lsb-base 9.20170808ubuntu1
DistUpgraded: Fresh install
DistroCodename: bionic
DistroVariant: ubuntu
DkmsStatus:
 anbox, 1, 4.15.0-32-generic, x86_64: installed
 anbox, 1, 4.15.0-33-generic, x86_64: installed
 nvidia, 396.54, 4.15.0-33-generic, x86_64: installed
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] [1002:67df] (rev c7) (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Radeon RX 480 [1043:04fb]
InstallationDate: Installed on 2018-08-04 (24 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: MSI MS-7751
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-33-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash amdgpu.dc=0 mem=33554428k vt.handoff=1
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/09/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V10.11
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: Z77A-GD65 (MS-7751)
dmi.board.vendor: MSI
dmi.board.version: 2.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 2.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV10.11:bd10/09/2013:svnMSI:pnMS-7751:pvr2.0:rvnMSI:rnZ77A-GD65(MS-7751):rvr2.0:cvnMSI:ct3:cvr2.0:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7751
dmi.product.version: 2.0
dmi.sys.vendor: MSI
mtime.conffile..etc.X11.Xsession.d.90x11-common_ssh-agent: 2018-08-28T17:23:14.025376
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.94+git1808281609.f3d90e8~b~padoka0
version.libgl1-mesa-dri: libgl1-mesa-dri 1:18.3~git180816191500.b618d7e~b~padoka0
version.libgl1-mesa-glx: libgl1-mesa-glx 1:18.3~git180816191500.b618d7e~b~padoka0
version.xserver-xorg-core: xserver-xorg-core 2:1.19.6-1ubuntu4
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:18.0.99+git1808290006.cba8fe4~b~padoka0
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git1806121919.3d39506~b~padoka0
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-2

Revision history for this message
Christopher Snowhill (kode54) wrote :
Revision history for this message
Christopher Snowhill (kode54) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the patch. We require all Ubuntu changes to be proposed to upstream first.

However I think X.org is in the process of migrating to a new site (?). Please start by logging the same bug at:

 https://gitlab.freedesktop.org/xorg/meta/issues

and then tell us the new bug ID.

Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to fix ssh-agent startup script" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Christopher Snowhill (kode54) wrote :

Freedesktop tells me it's a downstream Debian script file.

https://gitlab.freedesktop.org/xorg/meta/issues/6

Changed in xorg (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
schamane (schamane) wrote :

@kode54 Re: comment #5

The link gives 404 now!? https://gitlab.freedesktop.org/xorg/meta shows not issues at all. Probably they were moved but where?

Revision history for this message
Christopher Snowhill (kode54) wrote :

It appears it's still there, but only accessible to project members. Which also excludes me.

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.