Ubuntu SDK when SSH to device attempts to connect on same port as running webmin (10000)

Bug #1346896 reported by Randy Olive
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-touch-meta (Ubuntu)
New
Undecided
Unassigned

Bug Description

When running an Ubuntu SDK QML app on a nexus 4 device the connection is attempting to connect to localhost at port 10000.

[08:35:49] debug1: Connecting to 127.0.0.1 [127.0.0.1] port 10000.
debug1: Connection established.
debug1: identity file /home/randy/.config/ubuntu-sdk/ubuntudevice_id_rsa type 1
debug1: identity file /home/randy/.config/ubuntu-sdk/ubuntudevice_id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: ssh_exchange_identification: HTTP/1.0 200 Document follows

This causes a conflict on my system due to a running webmin program on the same port:

debug1: ssh_exchange_identification: Connection: close
debug1: ssh_exchange_identification:
debug1: ssh_exchange_identification: <h1>Error - Document follows</h1>
[08:35:49] debug1: ssh_exchange_identification: <pre>This web server is running in SSL mode. Try the URL <a href='https://localhost:10000/'>https://localhost:10000/</a> instead.<br></pre>
[08:35:49] debug1: ssh_exchange_identification: <pre>This web server is running in SSL mode. Try the URL <a href='https://localhost:10000/'>https://localhost:10000/</a> instead.<br></pre>
[08:35:49] ssh_exchange_identification: Connection closed by remote host

This was corrected when I removed 10000 from the available ports listed in: Options-->Devices-->Free Ports

Suggestion: remove 10000 from the list by default
Better: make it more obvious how that port is selected, or allow for choosing port from a list somehow. It took me avery long to figure out that this was the problem.

Also, i added -v to the ssh command in the /usr/share/qtcreator/ubuntu/scripts/qtc_device_run_app_click script so that I could get full errors listed in the SDK window.

Description: Ubuntu 14.04 LTS
Release: 14.04

ubuntu-sdk:
  Installed: 1.126
  Candidate: 1.126
  Version table:
 *** 1.126 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Tags: device sdk
Revision history for this message
Randy Olive (randy-jr-olive) wrote :

I can confirm that this is no longer an issue for 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.