Issue with FTP (passive mode?)

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Issue with FTP (passive mode?)

  • Creator
    Topic
  • #53112
    Vidya Sridhar
    Participant

    Hello,

    I have researched this topic in the forum boards, but did not find a solution, hence the post. I have an outbound ftp thread that can connect to the vendor’s server but cannot “put” the file in the specified directory. It will only write zero byte file and the thread errors out after a write. I also made sure the active mode was not checked on the thread config in Cloverleaf.

    When I tried to do the ftp manually on the command line, I was able to log in and cd to the directory specified. But when I do a ls or put in the remote server complains about not using PASV mode.  🙁  I had to use the command passive to make it PASV.

    Is this a vendor FTP config issue? Thanks for any input on this issue.

    Here is what happened on the command line:

    hci@######>ftp hostname

    Connected to ###.##.##.##

    220 (vsFTPd 2.0.5)

    Name (###.##.##.##:username): ######

    331 Please specify the password.

    Password:

    230 Login successful.

    ftp> put 10100_star_20120524_TEST

    200 PORT command successful. Consider using PASV.

    150 Ok to send data.

    (I  had to CTRL C out of the hang up here)

    send aborted

    226 File receive OK.

    ftp> passive    (After I specify passive, the put works well)

    Passive mode on.

    ftp> put 10100_star_20120524_TEST

    227 Entering Passive Mode (174,18,14,658,97,133)

    150 Ok to send data.

    226 File receive OK.

    64 bytes sent in 0.05039 seconds (1.24 Kbytes/s)

    local: 10100_star_20120524_TEST remote: 10100_star_20120524_TEST

    ftp> ls

    227 Entering Passive Mode (174,18,14,678,52,101)

    150 Here comes the directory listing.

    10100_star_20120524_TEST

    archive

    226 Directory send OK.

    ftp>quit

Viewing 2 reply threads
  • Author
    Replies
    • #76600
      David Barr
      Participant

      I think it’s pretty common for FTP transfers to only work in passive mode. If you have problems transferring in active mode, it’s probably not an FTP server issue; the transfer is being blocked by the firewall that you are behind.

      So if you don’t have “ACTIVE mode” checked on the thread configuration, it should be using passive mode. I’m not sure why the thread isn’t working. Maybe turn up the debug level (EO config) and see if there are any errors in the log. Also try restarting the process that your thread is in. Sometimes a thread remembers previous settings until you restart the process.

    • #76601
      Paul Johnston
      Participant

      Hello Vidar,

      We experienced a similar issue recently when we upgraded to 5.8.

      When we tried to FTP to a server is was trying to use EPSV ( Extended Passive mode)

      I did several Google searches before I determined we could use a cURL command option to turn off the EPSV.

      The cURL options can be set in Thread Configuration – Protocol FTP Properties.  The last tab on the window is for cURL options.

      For our resolution we entered this option to turn off EPSV.

      Name                                        Value

      CURLOPT_FTP_USE_EPSV         FALSE

      There may be an cURL option that would work for you .

      Here are the web sites I found that may help you with the cURL options.

      <a href="http://curl.haxx.se/docs/manpage.html&#8221; class=”bbcode_url”>http://curl.haxx.se/docs/manpage.html

      <a href="http://www.bartlettpublishing.com/site/bartpub/blog/3/entry/197&#8243; class=”bbcode_url”>http://www.bartlettpublishing.com/site/bartpub/blog/3/entry/197

    • #76602
      Traci Zee
      Participant

      How would I turn off EPSV option for Cloverleaf version 5.7?

      Thanks!

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,447
Topic Tags
288
Empty Topic Tags
10