It's set on line 354 of that same file, when the remote process  
terminates it should send a channel-request packet with the exit  
status. What version of OpenSSH are you running on the remote server?  
What is the remote OS?

- Jamis

On Oct 4, 2008, at 5:19 PM, bartocc wrote:

>
> Hi,
>
> I recently spoke with Jamis on the IRC to report a problem I had with
> a "download" call over a gateway connection.
>
> Looks like the problem comes from line 351 of lib/net/scp.rb
>
> channel.on_close { |ch|
>  raise Net::SCP::Error, "SCP did not finish successfully
> (#{ch[:exit]})" if ch[:exit] != 0
> }
>
> ch[:exit] never seems to get set, so the raise occurs.
>
> I tried commenting out this line, and everything works great.
> The download is done as expected.
>
> I tried a "download" via :scp on a single server without a gateway,
> but did not reproduce the bug. And I could not find in net-scp code
> where else channel[:exit] was set.
>
> >


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to