These are chat archives for facebook/wdt

21st
Jun 2016
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 14:56
Hi, I am trying this on a couple of Ubuntu vms and I get "connect did not succeed on host 22361 : Connection refused"
Is any prior setup (enabling passwordless ssh) needed before I can use wdt?
Laurent Demailly
@ldemailly
Jun 21 2016 15:06
use -start_port 0 to use dynamic ports if fixed ports are busy (though I thought that was the default now)
@rjammala let me know if that helps. you dont need password less ssh for interactive wdt
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 15:08
Thanks. Will try and let you know.
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 15:30
Tried this, (on sender): $ wdt -directory /usr/bin -destination destionationIP -start_port 0
(on receiver): wdt -directory /tmp/test-transfer -start_port 0
All the unit tests passed but this seems to fail, should I file a bug?
Laurent Demailly
@ldemailly
Jun 21 2016 15:32
you have to pipe connect receiver to sender so the sender can use the connection url created by the receiver. you only need start_port argument for the receiver
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 15:35
I see. thanks
Laurent Demailly
@ldemailly
Jun 21 2016 22:13
@rjammala did it work for you eventually?
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 23:22
sorry. I couldn't figure out how to set up the pipe connection between the receiver and sender. Is that the same url displayed once I start the receiver (some thing like wdt://hostname etc?)
Laurent Demailly
@ldemailly
Jun 21 2016 23:23
ssh dsthost wdt -directory destdir | ssh srchost wdt -directory srcdir -
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 23:23
thanks, trying it.
Laurent Demailly
@ldemailly
Jun 21 2016 23:24
the url is printed on stdout so you can | and have the sender read it from stdin when using the - argument. alternatively you can copy paste the url and pass it as -connect_url
the above is the begining of the wdt --help btw. (or wdt -foo). and https://github.com/facebook/wdt/wiki/Getting-Started-with-the-WDT-command-line which I can update if anything is not clear
Rajanikanth Jammalamadaka
@rjammala
Jun 21 2016 23:31
So, I tried this and get the following error (it asks me for the password of localhost and remotehost) and then I get the following
$ ssh 192.168.0.103 wdt -directory /tmp/test-transfer | ssh localhost wdt -directory /usr/bin -
wdt> connect did not succeed on 127.0.1.1 43274 : Connection refused
never mind. just saw the link you pasted. I tried from the source host
will try the modified command.
Laurent Demailly
@ldemailly
Jun 21 2016 23:52
you don't need to ssh localhost
you can try from any side, it should work, but the receiver kind of need to know the hostname under which the sender can connect to it