Failure to start "Write failed: Broken pipe "

1,892 views
Skip to first unread message

Maxim Veksler

unread,
Jul 4, 2011, 9:31:12 AM7/4/11
to sshu...@googlegroups.com
Downloaded the most recent version from github.

Running on Ubuntu 11.04, connecting to Ubuntu 10.10 (via Ubuntu user, no root privileges on the server)


maxim@maxim-desktop:~/Downloads/sshuttle$ ./sshuttle -r XXXXX.compute-1.amazonaws.com  0.0.0.0/0 -vv
Starting sshuttle proxy.
Binding: 12300
Listening on ('127.0.0.1', 12300).
[local sudo] Password: 
firewall manager ready.
c : connecting to server...
c : executing: ['ssh', 'XXXXX.compute-1.amazonaws.com', '--', 'P=python2; $P -V 2>/dev/null || P=python; exec "$P" -c \'import sys; skip_imports=1; verbosity=2; exec compile(sys.stdin.read(764), "assembler.py", "exec")\'']
c :  > channel=0 cmd=PING len=7 (fullness=0)
Warning: Permanently added 'XXXXX.compute-1.amazonaws.com,XXXXXX' (RSA) to the list of known hosts.
server: assembling 'cmdline_options.py' (29 bytes)
server: assembling 'helpers.py' (698 bytes)
server: assembling 'ssubprocess.py' (13702 bytes)
c : connected.
Connected.
c : Waiting: 2 r=[3, 8] w=[8] x=[] (fullness=7/0)
c :   Ready: 2 r=[8] w=[8] x=[]
c : <  channel=0 cmd=PING len=7                                                                                                                                                     
c :  > channel=0 cmd=PONG len=7 (fullness=7)                                                                                                                                        
c : <  channel=0 cmd=ROUTES len=15                                                                                                                                                  
firewall manager: starting transproxy.                                                                                                                                              
server: assembling 'ssnet.py' (5446 bytes)                                                                                                                                          
server: assembling 'hostwatch.py' (2238 bytes)                                                                                                                                      
server: assembling 'server.py' (2377 bytes)                                                                                                                                         
 s: latency control setting = True                                                                                                                                                  
 s: available routes:                                                                                                                                                               
 s:   10.240.22.0/23                                                                                                                                                                
 s:  > channel=0 cmd=PING len=7 (fullness=0)                                                                                                                                        
 s:  > channel=0 cmd=ROUTES len=15 (fullness=7)                                                                                                                                     
 s: Waiting: 1 r=[4] w=[5] x=[] (fullness=22/0)                                                                                                                                     
 s:   Ready: 1 r=[] w=[5] x=[]                                                                                                                                                      
 s: mux wrote: 15/15                                                                                                                                                                
 s: mux wrote: 23/23                                                                                                                                                                
 s: Waiting: 1 r=[4] w=[] x=[] (fullness=22/0)                                                                                                                                      
>> iptables -t nat -N sshuttle-12300                                                                                                                                                
>> iptables -t nat -F sshuttle-12300                                                                                                                                                
>> iptables -t nat -I OUTPUT 1 -j sshuttle-12300                                                                                                                                    
>> iptables -t nat -I PREROUTING 1 -j sshuttle-12300                                                                                                                                
>> iptables -t nat -A sshuttle-12300 -j RETURN --dest 127.0.0.0/8 -p tcp                                                                                                            
>> iptables -t nat -A sshuttle-12300 -j REDIRECT --dest 0.0.0.0/0 -p tcp --to-ports 12300 -m ttl ! --ttl 42
c : mux wrote: 15/15
c : mux wrote: 15/15
c : Waiting: 2 r=[3, 8] w=[] x=[] (fullness=14/0)
Write failed: Broken pipe
c :   Ready: 2 r=[8] w=[] x=[]
firewall manager: undoing changes.
>> iptables -t nat -D OUTPUT -j sshuttle-12300
>> iptables -t nat -D PREROUTING -j sshuttle-12300
>> iptables -t nat -F sshuttle-12300
>> iptables -t nat -X sshuttle-12300
c : fatal: server died with error code 255


What could be the problem?

Thank you,
Maxim.

Jonathan "Duke" Leto

unread,
Jul 6, 2011, 2:46:44 PM7/6/11
to sshu...@googlegroups.com, Maxim Veksler
Howdy,

I get this error intermittently, once per boot on my Ubuntu netbook.

It always works the second time for me. Does it for you?

Duke

--
Jonathan "Duke" Leto <jona...@leto.net>
209.691.DUKE // http://leto.net
NOTE: Personal email is only checked twice a day at 10am/2pm PST,
please call/text for time-sensitive matters.

Jonathan "Duke" Leto

unread,
Jul 6, 2011, 2:50:22 PM7/6/11
to sshu...@googlegroups.com, Maxim Veksler
Howdy,

I would like to clarify that statement:

Every time I reboot my Ubuntu 10.04 netbook, I get that error the
first time I attempt to start sshuttle. Sshuttle works any subsequent
time I start it, until the next reboot, whence the cycle continues.

This happens for me with a FreeBSD remote server, so I think this is
some kind of bug in Ubuntu or the client side of sshuttle.

Duke

Xiangrong Fang

unread,
Jul 6, 2011, 7:33:16 PM7/6/11
to Jonathan Duke Leto, sshu...@googlegroups.com, Maxim Veksler
I had the same problem.

2011/7/7 Jonathan "Duke" Leto <jona...@leto.net>

Jordan Roy

unread,
Jul 6, 2011, 7:40:21 PM7/6/11
to Xiangrong Fang, Jonathan Duke Leto, sshu...@googlegroups.com, Maxim Veksler

I can confirm I get the same problem.

Jordan


Le Thu, 7 Jul 2011 07:33:16 +0800
Xiangrong Fang <xrf...@gmail.com> écrivait:


Merci,

Jordan

Reply all
Reply to author
Forward
0 new messages