net-ssh / net-scp

Pure Ruby implementation of the SCP protocol
http://github.com/delano/net-scp
MIT License
154 stars 63 forks source link

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

Open ANTARESXXI opened 8 years ago

ANTARESXXI commented 8 years ago

/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...

majormoses commented 8 years ago

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

ChaseLEngel commented 8 years ago

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