net-ssh/net-scp

SCP did not finish successfully (1): (Net::SCP::Error)

ANTARESXXI opened this issue · 2 comments

/Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.1/lib/net/scp.rb:365:in block (3 levels) in start_command': SCP did not finish successfully (1): (Net::SCP::Error) from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/channel.rb:591:incall'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/channel.rb:591:in do_close' from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:589:inchannel_close'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:468:in dispatch_incoming_packets' from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:222:inpreprocess'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:206:in process' from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:170:inblock in loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:170:in loop' from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:170:inloop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-3.0.1/lib/net/ssh/connection/session.rb:119:in close' from /Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.1/lib/net/scp.rb:210:inensure in start'
from /Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.1/lib/net/scp.rb:210:in start' from /Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.1/lib/net/scp.rb:226:inupload!'

Both source and destination paths exist and I have correct permissions, so I can't understand what is the reason...

@ANTARESXXI out of curiosity is one of them a symlink? I saw a similar issue when there were symlinks present

I have the same problem and using symlinks. I'll try it without the symlinks and see if anything changes. Thanks for the idea!