Archived Forum Post

Index of archived forum posts

Question:

"Failed to setup passive data socket for upload"

Jan 08 '16 at 10:22

We are a managed service provider and have a client who purchased some software that uses ChilKat to transfer some FTP data (not sure exactly what it's doing) but it fails in the middle of the session. Below is the snippet from the log file. Can anyone shed any light on what conditions write out these specific error messages?

Their software is failing to complete some type of operation once the FTP session is established to their host, which is at exavault.com. They state they do not have this issue at any other installation. We have used CoreFTP from the same server on the same network and we are able to establish the connection and access the information without issue. CoreFTP can also send the EPSV command without issue. The log file generated indicates it is sending the EPSV command and according to Wireshark captures it begins re-transmission attempts afterwards and times out.

We do not have any outbound ports restricted using the gateway firewall (Sonicwall) nor Windows Firewall, and we are not running any type of host intrusion protection or other software that would be considered intrusive to communications. Anti-virus software has been disabled. This problem occurs on Windows 7 and Windows 2012 R2 server. On the server I have also disabled IPV6 on the outside chance this was interfering. The FTP host is running ProFTPD 1.3.5 Server and the ChilKat module is version 9.5.0.36.

*BEGIN LOG*

uploadFromLocalFile:

  localFileSize: 31

  uploadFromDataSource:

    initialGreeting: 220 ProFTPD 1.3.5 Server (EV) [67.208.64.241]

    restartNext: 0

    modeZ: 0

    binaryMode: 1

    setupDataConnection:

      passive transfer mode

      setupPassiveDataSocket:

        sendCommand:

          sendingCommand: EPSV

        --sendCommand

        readCommandResponse:

          replyLineQP: 229 Entering Extended Passive Mode (|||62801|)

          commandResponse: 229 Entering Extended Passive Mode (|||62801|)

          statusCode: 229

        --readCommandResponse

        dataConnect:

          hostname: 67.208.64.241

          port: 62801

          connect2:

            ConnectFailReason: Connection rejected

          --connect2

          dataConnectSuccess: 0

        --dataConnect

        setupPassiveDataSocket dataConnect failed..

      --setupPassiveDataSocket

      Failed to setup passive data socket for upload

    --setupDataConnection

  --uploadFromDataSource

--uploadFromLocalFile

TotalTime: Elapsed time: 21076 millisec

Failed.

*END LOG*