keychain does not work in kde-plasma running under upstart

Bug #1259877 reported by Andy Fawcett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10

Running 13.10 on multiple machines, all with kde-plasma as the desktop environment. Some environments are clean 13.10 installs, some are upgrades from earlier versions.

keychain is enabled for users, to allow easier use of SSH keys. Keychain is enabled via .bash_profile

With this setup, the ssh-agent does not cache the passphrase. This worked fine with 13.04 and earlier.

After a LOT of digging deeper, I found that disabling upstart support for kde-plasma in /etc/upstart-xsessions and restarting the system makes it all work again.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1259877/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → upstart (Ubuntu)
Revision history for this message
James Hunt (jamesodhunt) wrote :

@Andy - this sounds like an environment issue - I have been using keychain from the outset on Ubuntu with an Upstart session init. Either .bash_profile is not being sources (Upstart only ever runs code via /bin/sh), or that script is being sourced, or the variables it sets are not being injected into the Upstart Session Inits environment (via 'initctl set-env -g var=value').

Revision history for this message
Andy Fawcett (andy-athame) wrote :

As one of the tests, I made a completely clean install of 13.10 (Ubuntu), and installed the kubuntu-desktop package. Enabled KDM as the default login manager.

Created the .bash_profile, with enough to execute keychain, and source the keychain output files.

#!/bin/bash
export SSH_ASKPASS=/usr/bin/ssh-askpass
keychain ~/.ssh/id_dsa
. ~/.keychain/${HOSTNAME}-sh
export PATH=~/bin:$PATH
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

with kde-plasma as an upstart xsession, this is executed (keychain invokes the passphrase dialog), but the ssh-agent functionality does not work

with kde-plasma disabled from upstart, and running normally, it all works as expected.

I'm happy to try anything to get to the bottom of the problem.

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.