← Back to team overview

touch-packages team mailing list archive

[Bug 1346896] [NEW] Ubuntu SDK when SSH to device attempts to connect on same port as running webmin (10000)

 

Public bug reported:

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

** Affects: ubuntu-touch-meta (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: device sdk

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-touch-meta in
Ubuntu.
https://bugs.launchpad.net/bugs/1346896

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

Status in “ubuntu-touch-meta” package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-touch-meta/+bug/1346896/+subscriptions


Follow ups

References