Archived Forum Post

Index of archived forum posts

Question:

SFTP: Failed to receive response to FXP_OPEN

May 23 '17 at 08:44

Hello again.

I have tried installing the latest ActiveX version for fixing the problem explained in this thread, but the problem still persists.

The error message has changed a bit, maybe that it conveys more information?

ChilkatLog:
  UploadFileByName:
    DllDate: May 20 2017
    ChilkatVersion: 9.5.0.67
    UnlockPrefix: ---------
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    SshVersion: SSH-2.0-OpenSSH_6.6p2-hpn14v4
    SftpVersion: 3
    uploadFileByName:
      remoteFilePath: home/Prod/OUT/E342_000000762972.xml
      localFilePath: G:\PCIL9\Communication\Interfaces\Dossier\Outgoing\E342_000000762972.xml
      localFileSize: 554
      sftpOpenFile:
        remotePath: home/Prod/OUT/E342_000000762972.xml
        access: writeOnly
        createDisposition: createTruncate
        v3Flags: 0x1a
        Sent FXP_OPEN
        Received EOF..
        Failed to read expected SFTP packet.
        Failed to receive response to FXP_OPEN
      --sftpOpenFile
      Failed to open file.
    --uploadFileByName
    Failed.
  --UploadFileByName
--ChilkatLog
  (COM successful)

Thanks in advance.

-B


Answer

The SFTP protocol operates within a channel in SSH (the "sftp" subsystem).

For some reason, the SSH server is sending a channel "EOF" in response to the request to create the file. (Effectively, this means the server is closing the channel, but not the SSH connection.)

Check to see if this is somehow the SSH server's behavior in response to receiving a request to create a file where permission is not granted.