 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Ryan Pieszak
Joined: 19 Jun 2003 Posts: 25
|
|
FTPGetFile task failing |
|
Greetings, I'm trying to automated a file download from an ftp site, and this is the error I'm getting: Job Ontario_RTM_FTP execution error. Exit code: -1. An error occurred while executing automation script: Line 1: Download failed for "". The server has returned an extended error: 200 Type set to I. 200 PORT command successful. 550 \pub\reports\PUB\Disp This is the syntax I'm using (minus the username and password): FTPGetFile( "aftp.theimo.com", " ", " ", "\\pub\\reports\\PUB\\DispUnconsEnergyPrice\\PUB_DispUnconsEnergyPrice_2004051109.html", "c:\\program files\\24x7 automation 3\\activity folder\\temp_ontario_prices.html" ) Any help would be appreciated. Ryan
|
|
Tue May 11, 2004 9:17 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
Re: FTPGetFile task failing |
|
Normally FTP code 200 means "The requested action has been successfully completed." Try enabling the script tracing option in Tools/Options menu; Log page and then rerunning script. In the trace window you should a more specific error message sent by your FTP server. In case if there is no error, try changing connection type to passive. This can be done using FTPConfig command with "CONNECTION TYPE" and "PASSIVE" parameters. : Greetings, : I'm trying to automated a file download from an ftp site, and this is the : error I'm getting: Job Ontario_RTM_FTP execution error. Exit code: -1. An : error occurred while executing automation script: Line 1: Download failed : for "". The server has returned an extended error: 200 Type set : to I. 200 PORT command successful. 550 \pub\reports\PUB\Disp : This is the syntax I'm using (minus the username and password): FTPGetFile( : "aftp.theimo.com", " ", " ", : "\\pub\\reports\\PUB\\DispUnconsEnergyPrice\\PUB_DispUnconsEnergyPrice_2004051109.html", : "c:\\program files\\24x7 automation 3\\activity : folder\\temp_ontario_prices.html" ) : Any help would be appreciated. : Ryan
|
|
Tue May 11, 2004 10:01 am |
|
 |
Ryan Pieszak
Joined: 19 Jun 2003 Posts: 25
|
|
Re: FTPGetFile task failing |
|
Greetings again SysOp, I tried the changes you said. In the trace, there was no error, so I added a FTPConfig line like you said, and there was still no success, only same behavior. Below is a copy of the trace. Also, I tried to FTP manually from the command line and it works fine. Any other suggestions? JAL **** 5/11/2004 10:37:33 **** JAL 1: FTPCONFIG JAL 1: Executing FTPCONFIG("CONNECTION TYPE", "PASSIVE") JAL JAL 2: FTPGETFILE JAL 2: Executing FTPGETFILE("aftp.theimo.com", "username", "password", "\pub\reports\PUB\DispUnconsEnergyPrice\PUB_DispUnconsEnergyPrice_2004051109.html", "c:\program files\24x7 automation 3\activity folder\temp_ontario_prices.html") Connected to aftp.theimo.com 220 IMO Restricted Site - Only authorized access is allowed. 331 Guest login ok, send your complete e-mail address as password. 230 Guest login ok, access restrictions apply. : Normally FTP code 200 means "The requested action has been successfully : completed." : Try enabling the script tracing option in Tools/Options menu; Log page and : then rerunning script. In the trace window you should a more specific : error message sent by your FTP server. : In case if there is no error, try changing connection type to passive. This : can be done using FTPConfig command with "CONNECTION TYPE" and : "PASSIVE" parameters.
|
|
Tue May 11, 2004 10:53 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
Re: FTPGetFile task failing |
|
What kind of FTP server are you running? : Greetings again SysOp, : I tried the changes you said. In the trace, there was no error, so I added a : FTPConfig line like you said, and there was still no success, only same : behavior. Below is a copy of the trace. Also, I tried to FTP manually from : the command line and it works fine. Any other suggestions? : JAL : **** 5/11/2004 10:37:33 **** : JAL 1: FTPCONFIG : JAL 1: Executing FTPCONFIG("CONNECTION TYPE", "PASSIVE") : JAL : JAL 2: FTPGETFILE : JAL 2: Executing FTPGETFILE("aftp.theimo.com", : "username", "password", : "\pub\reports\PUB\DispUnconsEnergyPrice\PUB_DispUnconsEnergyPrice_2004051109.html", : "c:\program files\24x7 automation 3\activity : folder\temp_ontario_prices.html") : Connected to aftp.theimo.com : 220 IMO Restricted Site - Only authorized access is allowed. : 331 Guest login ok, send your complete e-mail address as password. : 230 Guest login ok, access restrictions apply.
|
|
Tue May 11, 2004 11:06 am |
|
 |
Ryan Pieszak
Joined: 19 Jun 2003 Posts: 25
|
|
Re: FTPGetFile task failing |
|
We're running IIS 5, but we're not serving the file. We're getting the file from the external site, and I'm not sure what they're running.
: What kind of FTP server are you running?
|
|
Tue May 11, 2004 11:09 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
Re: FTPGetFile task failing |
|
I afraid this software returns some non-standard return codes back to the FTP client. Can you tell us what appears to be different when using DOS command line FTP utility you download files from your local IIS FTP server and from that external FTP server. Do you get the same number and type of prompts and responses? In case if there are no differences in the protocol and you cannot get the FTPGetFile to work use try one of the following alternative methods.: 1. Use forward-slashes instead of backslashes in directory and file names. 2. Use WebGetFile instead of FTPGetFile. For the URL specify something the following user:passwordd@ftp://aftp.theimo.com/pub/reports/PUB/DispUnconsEnergyPrice/PUB_DispUnconsEnergyPrice_2004051109.html 3. Run command line FTP utility with -s option to process a script file. Example script and command could be as below *** file script.ftp *** user username pwd password cd remote_dir_here get bye *** command to schedule *** ftp -n -s:script.ftp aftp.theimo.com : We're running IIS 5, but we're not serving the file. We're getting the file : from the external site, and I'm not sure what they're running.
|
|
Tue May 11, 2004 1:05 pm |
|
 |
Ryan Pieszak
Joined: 19 Jun 2003 Posts: 25
|
|
Re: FTPGetFile task failing |
|
SysOp, It was the slashes. When I changed them to forward-slashes, my test worked. I'll let you know if I have anymore problems, but I expect not. Thanks for your help. Ryan : I afraid this software returns some non-standard return codes back to the FTP : client. : Can you tell us what appears to be different when using DOS command line FTP : utility you download files from your local IIS FTP server and from that : external FTP server. Do you get the same number and type of prompts and : responses? : In case if there are no differences in the protocol and you cannot get the : FTPGetFile to work use try one of the following alternative methods.: 1. : Use forward-slashes instead of backslashes in directory and file names. : 2. Use WebGetFile instead of FTPGetFile. For the URL specify something the : following : user:passwordd@ : ftp://aftp.theimo.com/pub/reports/PUB/DispUnconsEnergyPrice/PUB_DispUnconsEnergyPrice_2004051109.html : 3. Run command line FTP utility with -s option to process a script file. : Example script and command could be as below : *** file script.ftp *** : user username : pwd password : cd remote_dir_here : get : bye : *** command to schedule *** : ftp -n -s:script.ftp aftp.theimo.com
|
|
Tue May 11, 2004 2:05 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|