From: Jamis Buck Date: 2005-10-25T23:23:33+09:00 Subject: Re: net-ssh question On Oct 25, 2005, at 8:12 AM, itsme213 wrote: > I'm using net/ssh to do some simple publication of a web site, and > I get > frequent but unpredictable "corrupted mac detected" errors. The same > commands may die a few times, then succeed. These commands never > die when > I'm manually typing them into the shell. > > Any ideas > (a) what may be causing this > (b) what I can do to improve it What is your local host's OS and SSH version? What is the server's OS and SSH version? Can you write a simple script that gets the corrupted mac detected error? If so, can you enable debugging output and send the output to me? - Jamis > > Below are the echoed versions of remote commands with 3 consecutive > failures, then one success. > > Thanks! > ------------------ > > >> rake remote_publish >> > > cd site.com/ccc/eval... > rm -rf generated_site... > unzip generated_site.zip -d generated_site... > rake aborted! > corrupted mac detected > rakefile.rb:192:in `ssh_cmd_echo' > > >> rake remote_publish >> > > cd site.com/ccc/eval... > rm -rf generated_site... > unzip generated_site.zip -d generated_site... > rake aborted! > corrupted mac detected > rakefile.rb:192:in `ssh_cmd_echo' > > >> rake remote_publish >> > > cd site.com/ccc/eval... > rm -rf generated_site... > unzip generated_site.zip -d generated_site... > rake aborted! > corrupted mac detected > rakefile.rb:192:in `ssh_cmd_echo' > > >> rake remote_publish >> > > cd site.com/ccc/eval... > rm -rf generated_site... > unzip generated_site.zip -d generated_site... > rm -rf published_site... > mv generated_site published_site... > > ---------- > Fwiw, the "ssh_cmd_echo" is simply this: > def ssh_cmd_echo shell, cmd > puts cmd + "..." > out = shell.send_command cmd > if out.status != 0 > puts " #=> Failed: " + out.stderr > raise Exception > end > end > > > >