Skip to main content
May 14, 2008
Answered

CFFTP error after 8.0.1 upgrade - LISTDIR

  • May 14, 2008
  • 2 replies
  • 1123 views
Here's the affected code:
---------------
<cfftp action="OPEN" username="ommitted" transfermode="auto" password="ommitted" connection="ftpconn" server="ommitted" stoponerror="no">

<cfftp action="LISTDIR" connection="ftpconn" name="dirlisting" stoponerror="yes" directory="/" timeout="120" retrycount="3">

----------------

It worked fine in CF8, however when I upgraded to 8.0.1 it fails every time.

I have attempted to research the topic and have only found vague references to JVM 1.6 causing the issue, or increasing the JVM heap size. Perhaps the problem is related to the number of files in the directory? There are, at any given time, 20k+ files in the directory.

I have also attempted to move the timeout / retry to the "open" tag instead, and I've tried a few other things. I'm currently attempting to remove files in the directory and retrying in an effort to get it to work. However, if this does work it is a short-term fix as the file count will grow again in short order.

Any ideas?


    This topic has been closed for replies.
    Correct answer
    Problem solved.

    Passive was originally specified on the connection OPEN action, but not on the LISTDIR action.

    When I added passive to the LISTDIR action all worked as desired.

    2 replies

    Correct answer
    May 19, 2008
    Problem solved.

    Passive was originally specified on the connection OPEN action, but not on the LISTDIR action.

    When I added passive to the LISTDIR action all worked as desired.
    May 14, 2008
    The error, by the way is:

    -----------------------

    An error occurred during the FTP LISTDIR operation. Error: Read timed out.

    (occurs when moving the timeout to the OPEN action.)

    OR

    An error occurred during the FTP LISTDIR operation. Error: 425 Failed to establish connection.

    (occurs when using the timeout on the LISTDIR)

    -----