cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTPS hang

From: Randy Paz <randy_at_achievefinancialcu.com>
Date: Mon, 13 Feb 2012 14:15:06 +0000

Hi all,

We use curl to obtain a file using FTPS. We have a routine that automatically* runs each morning. For some reason the automatic routine will hang. If I open a command prompt and enter the same command by hand the file usually transfers. It does not always do it on the first attempt. If the transfer does not start after about a minute, I usually stop it (control-c) and enter the command again. It usually works. The most I've had to do this is 3 times before getting the file. Below is the results of the automatic run of the command. I cut it off after 1 minute however these messages run for about 3 hours (when the automated routine finally stops the job). Thank you for any help you can provide.

Randy

(Note: for security reasons I 'cleaned' the output)

D:\SummitFTP>curl -v -S -o "FileName" -B --ftp-pasv -u UserName:Password "ftp://100.101.102.103:2225/FileName"
* About to connect() to 100.101.102.103 port 2225 (#0)
* Trying 100.101.102.103... % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0connected
< 220 batch.ftp.company.com NcFTPd Server (licensed copy) ready.

> USER UserName

< 331 User UserName okay, need password.

> PASS Password

< 230-You are user #8 of 150 simultaneous users allowed.

< 230-

< 230-*****************************************************************

< 230-*

< 230-* Hello, UserName!

< 230-* You are connected to Company/FTP.

< 230-*

< 230-* It is Fri Feb 10 07:01:07 EST 2012.

< 230-* You have connected to me from 10.11.12.13 (10.11.12.13).

< 230-*****************************************************************

< 230-

< 230 Restricted user logged in.

> PWD

< 257 "/" is cwd.

* Entry path is '/'
> EPSV

* Connect data stream passively
< 502 Unimplemented command.

* disabling EPSV usage
> PASV

< 227 Entering Passive Mode (100,101,102,103,241,223)

* Trying 100.101.102.103...
  0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0connected
* Connecting to 100.101.102.103 (100.101.102.103) port 61919
> TYPE A

< 200 Type okay.

> SIZE FileName

  0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
  0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0< 213 2330194

> RETR FileName

< 150 Data connection accepted from 10.11.12.13:63322; transfer starting for FileName (2301777 bytes).

* Maxdownload = -1
* Getting file with size: -1

  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:15 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:16 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:22 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:23 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:24 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:25 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:26 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:27 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:28 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:29 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:30 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:31 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:32 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:33 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:34 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:35 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:36 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:37 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:38 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:39 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:40 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:41 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:42 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:43 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:44 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:45 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:46 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:47 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:48 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:49 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:50 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:51 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:52 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:53 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:54 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:55 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:56 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:57 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:58 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:00:59 --:--:-- 0
  0 2275k 0 0 0 0 0 0 --:--:-- 0:01:00 --:--:-- 0
etc.

* Automated routine information (in case anyone cares or thinks it is important): The automated routine is run through a program called UC4. It is run on a Windows Server 2008 R2 (64 bit) virtual machine.

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

Notice: This e-mail and all attachments from Achieve Financial Credit Union, Inc., are CONFIDENTIAL and intended SOLELY for the recipients as identified in the "TO", "CC", and "BCC" lines of this e-mail. This e-mail may contain privileged communications and/or work product. Any use, dissemination, distribution, or publication of the information contained in this e-mail by anyone other than an intended recipient is strictly prohibited. If you are not an intended recipient, your receipt of this e-mail and its attachments is the result of an inadvertent disclosure or unauthorized transmittal. Sender reserves and asserts all rights to confidentiality, including all privileges, which may apply. Pursuant to those rights and privileges, immediately DELETE and DESTROY all copies of the e-mail and its attachments from your computer system, in whatever form, and immediately NOTIFY the sender of your receipt of this e-mail by telephoning or returning the email. DO NOT review, copy, or rely on in any way the contents of
 this e-mail and its attachments. All rights of the sender for violations of the confidentiality and privileges applicable to this e-mail and any attachments are expressly reserved. Achieve Financial Credit Union is not responsible or liable for personal information or opinions expressed by the author. There is no assurance that this e-mail is error or virus-free. Achieve Financial Credit Union shall have no liability or obligation with respect thereto.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-13