localtunnel packet doesn't work error messages

Bug #1153539 reported by Mariusz on 2013-03-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
Undecided
Unassigned

Bug Description

Packet homepage: http://localtunnel.com

Installation:
sudo apt-get update
sudo apt-get install -y ruby-full
sudo apt-get install -y rubygems1.8
sudo gem install localtunnel

Works OK on original Debian / Desktop PC.
Doesn't work on Raspbian / Raspberry Pi:

root@raspberrypi:/home/pi# localtunnel -k ~/.ssh/id_rsa.pub 22
/var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `next_packet'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:172:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:152:in `next_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb:45:in `get_parameters'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `exchange_keys'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:196:in `proceed!'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:187:in `send_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:142:in `accept_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:189:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:204:in `block in wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:81:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `start'
        from /var/lib/gems/1.9.1/gems/net-ssh-gateway-1.2.0/lib/net/ssh/gateway.rb:74:in `initialize'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `new'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `start_tunnel'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/bin/localtunnel:47:in `<top (required)>'
        from /usr/local/bin/localtunnel:23:in `load'
        from /usr/local/bin/localtunnel:23:in `<main>'
root@raspberrypi:/home/pi#

or

root@raspberrypi:/home/pi# localtunnel -k ~/.ssh/id_rsa.pub 80
/var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `next_packet'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:172:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:152:in `next_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb:45:in `get_parameters'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `exchange_keys'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:196:in `proceed!'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:187:in `send_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:142:in `accept_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:189:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:204:in `block in wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:81:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `start'
        from /var/lib/gems/1.9.1/gems/net-ssh-gateway-1.2.0/lib/net/ssh/gateway.rb:74:in `initialize'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `new'

Mariusz (mariusz-ciszewski) wrote :

How do you think? How much time can it take to resolve this problem?
localtunnel.com works properly for as well known distributions like Ubuntu
( I checked it on Ubuntu Server: http://s22.postimage.org/ywfo4888h/localtunnel.gif )

And it doesn't work on Raspbian. Why Raspbian is proken in this case? Could someone to repair it?
Maybe there are ideas why can be broken? Maybe some of necessarry packets for gem?

Maybe it is possible to change the repository source? How to do it?

peter green (plugwash) wrote :

What version of ubuntu server were you testing with?

Mariusz (mariusz-ciszewski) wrote :

Is works excellent for example on Ubuntu 12.04 LTS

Mariusz (mariusz-ciszewski) wrote :
Download full text (6.5 KiB)

I decided to change repositories of Raspbian to:

deb http://ftp.pl.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ testing main contrib non-free

Then:

root@raspberrypi:/home/pi# sudo apt-get update
Pobieranie:1 http://ftp.pl.debian.org testing InRelease [224 kB]
Stary http://archive.raspberrypi.org wheezy InRelease
Stary http://archive.raspberrypi.org wheezy/main armhf Packages
Ign. http://archive.raspberrypi.org wheezy/main Translation-pl_PL
Ign. http://archive.raspberrypi.org wheezy/main Translation-pl
Ign. http://archive.raspberrypi.org wheezy/main Translation-en
Ign. http://ftp.pl.debian.org testing InRelease
Stary http://ftp.pl.debian.org testing/main Sources
Stary http://ftp.pl.debian.org testing/contrib Sources
Stary http://ftp.pl.debian.org testing/non-free Sources
Stary http://ftp.pl.debian.org testing/main armhf Packages
Stary http://ftp.pl.debian.org testing/contrib armhf Packages
Stary http://ftp.pl.debian.org testing/non-free armhf Packages
Stary http://ftp.pl.debian.org testing/contrib Translation-en
Stary http://ftp.pl.debian.org testing/main Translation-pl
Stary http://ftp.pl.debian.org testing/main Translation-en
Stary http://ftp.pl.debian.org testing/non-free Translation-en
Ign. http://ftp.pl.debian.org testing/contrib Translation-pl_PL
Ign. http://ftp.pl.debian.org testing/contrib Translation-pl
Ign. http://ftp.pl.debian.org testing/main Translation-pl_PL
Ign. http://ftp.pl.debian.org testing/non-free Translation-pl_PL
Ign. http://ftp.pl.debian.org testing/non-free Translation-pl
Pobrano 224 kB w 2s (78,2 kB/s)
Czytanie list pakietów... Gotowe
W: Błąd GPG: http://ftp.pl.debian.org testing InRelease: Następujące podpisy nie mogły zostać zweryfikowane z powodu braku klucza publicznego: NO_PUBKEY AED4B06F473041FA
root@raspberrypi:/home/pi# mc

root@raspberrypi:/home/pi# cd skrypty
root@raspberrypi:/home/pi/skrypty# ./autokey.sh
Aktualizacja listy pakietów (może trochę potrwać)... OK
Przetwarzanie klucza AED4B06F473041FA:
 -> pobieranie klucza z serwera... OK
 -> dodawanie klucza do bazy... OK
root@raspberrypi:/home/pi/skrypty# ./autokey.sh
Aktualizacja listy pakietów (może trochę potrwać)... OK
Wszystkie klucze są dodane, nie ma nic do roboty.

root@raspberrypi:/home/pi/skrypty# sudo apt-get remove localtunnel
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
E: Nie udało się odnaleźć pakietu localtunnel

root@raspberrypi:/home/pi/skrypty# sudo gem remove localtunnel
ERROR: While executing gem ... (RuntimeError)
    Unknown command remove
root@raspberrypi:/home/pi/skrypty# sudo gem remove localtunnel
ERROR: While executing gem ... (RuntimeError)
    Unknown command remove

root@raspberrypi:/home/pi/skrypty# sudo apt-get remove ruby-full
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane:
  libruby1.9.1-dbg libtcltk-ruby1.9.1 ruby1.9.1-full
Aby je usunąć należy użyć "apt-get autoremove".
Następujące pakiety zostaną USUNIĘTE:
  ruby-full
0 ...

Read more...

Mariusz (mariusz-ciszewski) wrote :

Some new ideas???

Mariusz (mariusz-ciszewski) wrote :
Download full text (3.4 KiB)

Hellooo.

On Ubuntu still works:

mariusz@ubuntu:~$ localtunnel -k ~/.ssh/id_rsa.pub 22
   Hooray! Localtunnel v2 beta now available: http://j.mp/localtunnel-v2
   Port 22 is now publicly accessible from http://3sfs.localtunnel.com ...

On Raspberry again:

root@raspberrypi:/home/pi# localtunnel -k /home/pi/.ssh/id_rsa.pub 80
/var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `next_packet'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:172:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:152:in `next_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb:45:in `get_parameters'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `exchange_keys'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:196:in `proceed!'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:187:in `send_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:142:in `accept_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:189:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:204:in `block in wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:81:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `start'
        from /var/lib/gems/1.9.1/gems/net-ssh-gateway-1.2.0/lib/net/ssh/gateway.rb:74:in `initialize'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `new'
        from /var/lib/gems/1.9.1/gems...

Read more...

Mariusz (mariusz-ciszewski) wrote :
Download full text (3.3 KiB)

I decided to download rubby 1.8.7 sources, compile and install.

root@raspberrypi:~# ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [armv6l-linux]
root@raspberrypi:~# localtunnel -k /home/pi/.ssh/id_rsa.pub 80
/var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet': connection closed by remote host (Net::SSH::Disconnect)
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/packet_stream.rb:93:in `next_packet'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:172:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:152:in `next_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb:45:in `get_parameters'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:348:in `exchange_keys'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:196:in `proceed!'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:187:in `send_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/algorithms.rb:142:in `accept_kexinit'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:189:in `block in poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:167:in `poll_message'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:204:in `block in wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `loop'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:202:in `wait'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh/transport/session.rb:81:in `initialize'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `new'
        from /var/lib/gems/1.9.1/gems/net-ssh-2.6.6/lib/net/ssh.rb:186:in `start'
        from /var/lib/gems/1.9.1/gems/net-ssh-gateway-1.2.0/lib/net/ssh/gateway.rb:74:in `initialize'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `new'
        from /var/lib/gems/1.9.1/gems/localtunnel-0.3/lib/localtunnel/tunnel.rb:44:in `start_tunnel'
        from /var/lib/gems/1.9.1/gems/localtunne...

Read more...

peter green (plugwash) wrote :

Raspbian does not provide localtunnel. If you can provide specific evidence of an actual bug (as apposed to a behvioural difference that is within specifications) in a raspbian tool or library please file a bug for that. Otherwise there isn't much was can reasonablly do.

Changed in raspbian:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers