• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFFTP problems with very large files

Enthusiast ,
Nov 09, 2012 Nov 09, 2012

Copy link to clipboard

Copied

I have an app that runs under CF9 to automatically check a couple of remote SFTP sites for available files, and transfer them to my server when they show up.  I just added a new client's SFTP info to the setup, and am seeing an odd problem.  They had both small (5-10 KB) and large (20MB+) files.  The small ones transferred just fine.  Every one of the large ones failes with a CFFTP error of -1.

First thing I thought of was timeouts.  So I set the CFFTP timeout to 300, and the page request timeout to 9999 (which shouldn't matter anyway because I have the cfadmin box for timing out long-running pages unchecked).  Did not make a difference.  In fact, the CFFTP throws the -1 error after about a minute or less - which is far below the 5 minutes (300 seconds) that I set the CFFTP timeout param to be.

I tried downloading one of the large files with FileZilla, and it copied just fine.

Anyone have any ideas, either for the solution or something else to try to debug it?  Cannot find anything relevant from a Google search.

thanks,

-reed

Views

769

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2012 Nov 12, 2012

Copy link to clipboard

Copied

LATEST

A CFFTP error of -1 suggests to me that the process was abruptly interrupted. Think, for example, of a broken connection or timeout.

One thing to try: Make sure you give the 300 second timeout attribute to the correct cfftp tag! That is, the one opening the connection, namely

<cfftp action="open" connection="myConn" timeout="300">

In addition, put the following tag at the top of the page to prevent ColdFusion from prematurely timing out the page itself:

<cfsetting RequestTimeout = "300">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation