Subject: | The requested operation cannot be performed because there is a file transfer in progress |
From http://www.tek-tips.com/viewthread.cfm?qid=1460569&page=6:
--------------------------------------------------------------
I decided to go the Net::SFTP::Foreign route but I'm getting a different
error with it on the ->put() call. I'll search the posts for this error
and repost if I can't find anything.
CODE
#!/usr/bin/perl -X
use Net::SFTP::Foreign;
my $host = "";
my $username = "";
my $password = "";
my $directory = "";
$Net::SFTP::Foreign::debug = 1;
my $sftp = Net::SFTP::Foreign->new( "$username\@$host", password =>
$password );
$sftp->setcwd( "$directory" );
$sftp->put( "test_file.txt" => "test_file.txt" );
if ( $sftp->error )
{
print "Put error: " . $sftp->error . "\n";
print "Put status: " . $sftp->status . "\n";
}
Quote:
=> perl test2.pl
# queueing msg len: 5, code:1, id:3 ... [1]
# waiting for message... [1]
# got it!, len:5, code:2, id:3, status: -
# queueing msg len: 15, code:16, id:0 ... [1]
# waiting for message... [1]
# got it!, len:63, code:104, id:0, status: -
# queueing msg len: 42, code:3, id:1 ... [1]
# waiting for message... [1]
# got it!, len:10, code:102, id:1, status: -
# queueing msg len: 18, code:10, id:2 ... [1]
# waiting for message... [1]
# got it!, len:106, code:101, id:2, status: 3
# queueing msg len: 10, code:4, id:3 ... [1]
# waiting for message... [1]
# got it!, len:40, code:101, id:3, status: 0
Put error: Couldn't setstat remote file (fsetstat): The requested
operation cannot be performed because there is a file transfer in progress.
Put status: The requested operation cannot be performed because
there is a file transfer in progress.