login about faq

We have a situation where SFTP files are failing randomly throughout the day about 50% of the time on one of our SFTP connections. Not all connections, just one in particular, and it's seemingly random if it will pass/fail.

Here's the code that we are calling:

// Upload file
if (!sftp.WriteFileBytes(handle, binaryContent)) throw new Exception(sftp.LastErrorText);
// Close the file
if (!sftp.CloseHandle(handle)) throw new Exception(sftp.LastErrorText);

Chilkat is throwing an exception on the CloseHandle function, with error text shown below:

Exception: ChilkatLog:
  CloseHandle:
    DllDate: Oct 29 2015
    ChilkatVersion: 9.5.0.54
    UnlockPrefix: [REMOVED FOR PRIVACY]
    Username: [REMOVED FOR PRIVACY]:ASP.NET v4.0
    Architecture: Little Endian; 64-bit
    Language: .NET 4.5 / x64
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.7
    SftpVersion: 3
    handle: 00000000
    sftpCloseHandle:
      handle: 00000000
      Sent FXP_CLOSE
      sshReadMessage:
        mType: CHANNEL_DATA
      --sshReadMessage
      StatusResponseFromServer:
        Request: FXP_CLOSE
        InformationReceivedFromServer:
          StatusCode: 4
          StatusMessage: Failure
        --InformationReceivedFromServer
      --StatusResponseFromServer
      Received a failed status response.
    --sftpCloseHandle
    Failed.
  --CloseHandle
--ChilkatLog

Any insight would be appreciated!

Thanks, Greg

This question is marked "community wiki".

asked Dec 17 '15 at 09:39

pgarnoldjr's gravatar image

pgarnoldjr
1


Does this server that fails have a really old version of SSH?

link

answered Dec 17 '15 at 10:23

cdlvj130's gravatar image

cdlvj130
9691017

The technical resource on their end "cleaned up the folder", so I assume it was an issue stemming from a large amount of files in the FTP drop location.

link

answered Dec 17 '15 at 15:37

pgarnoldjr's gravatar image

pgarnoldjr
1

Code 4 indicates an invalid message sent by server, and the write error is probably no disk space on the server, or either may be the server limits of data was exceeded.

link

answered Dec 17 '15 at 15:45

cdlvj130's gravatar image

cdlvj130
9691017

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×200
×2
×2

Asked: Dec 17 '15 at 09:39

Seen: 566 times

Last updated: Dec 17 '15 at 15:45

powered by OSQA