ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00132
[Bug 1227820] Re: Cannot add device: device key expected before created
Mystery solved I must have had a version of qtcreator-plugin-ubuntu-
common fromt he PPA without the fix but blocking the update.
The fix is in fact present.
** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1227820
Title:
Cannot add device: device key expected before created
Status in Qt Creator plugins for Ubuntu:
Fix Released
Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
Fix Released
Bug description:
In the Ubuntu SDK, I cannot add a device (unless I had successfully
added one previously somehow).
Reason: the openssh_version script expects the ssh key for the device
to exist before it actually does.
That script is delivered by qtcreator-plugin-ubuntu; I have version
2.8.1-0ubuntu1~saucy1~test4
When you add a device with: Devices, then Detect in the SDK, this script is called:
/usr/share/qtcreator/ubuntu/scripts/openssh_version
BEFORE this script script is called:
/usr/share/qtcreator/ubuntu/scripts/openssh_publickey
The second script creates the key if it does not exist.
But openssh_version assumes the device key is in place with this code:
ssh-add ~/.ssh/ubuntudevice*id_rsa &> /dev/null
If there is no such key, the Devices Detect sequence hangs on
openssh_version stage (with no helpful data in the Log panel).
A simple workaround (although perhaps not the right one given other
factors), is to test for the key and generate it in openssh_version
like this:
if [ ! -f ~/.ssh/ubuntudevice*id_rsa ]; then
ssh-keygen -t rsa -N '' -f $SSHIDENTITY -b 768
fi
ssh-add ~/.ssh/ubuntudevice*id_rsa &> /dev/null
To manage notifications about this bug go to:
https://bugs.launchpad.net/qtcreator-plugin-ubuntu/+bug/1227820/+subscriptions