550 Errors when using Script to run commands

Core FTP Server questions and answers
Post Reply
Motorman
Posts: 3
Joined: Mon Mar 27, 2006 8:32 pm

550 Errors when using Script to run commands

Post by Motorman »

I've been running server build 123 for about a month with very few problems until we tried to have an automated script run. Each time the mget * command runs in the script I get a return of 250 PORT command successful followed by a 550 RETR failed. It appears the data is transfered correctly but the 550 generates a warning email. I'm not sure what exactly the 550 RETR means, When we run this script on WinIIS it works okay also with WarFTPd also works fine with out the 550 error returned. Is there a server setting that needs to be tweaked?
Motorman
Posts: 3
Joined: Mon Mar 27, 2006 8:32 pm

Post by Motorman »

Here is the script that runs :
#! /bin/ksh
# DATATEL 03/27/06 14:07:26
#
ftp -i -n -v 172.16.30.35 <<eof
user import 1mp0rt
ascii
cd /vCal/cancel/counter
lcd /datatel/live/collive/DATA/DATA_R/R2.COUNTER
mget *
quit
eof

Here is the reply:boreas /datatel/live/collive >> ftp -i -n -v 172.16.30.35 Connected to 172.16.30.35.
220 Core FTP server ver 0.0.0.1 - Unregistered
ftp> user import 1mp0rt
331 password required for import
230-Logged on
230
ftp> ascii
250 MODE set to A
ftp> cd /vCal/cancel/counter
250 CWD command successful
ftp> lcd /datatel/live/collive/DATA/DATA_R/R2.COUNTER
Local directory now /datatel/live/collive/DATA/DATA_R/R2.COUNTER
ftp> mget *
250 PORT command successful
550 RETR failed <------------------------------------------------These
are generating these warning emails
250 PORT command successful
550 RETR failed <--------------------------------------------------
ftp> quit
221-
221 Goodbye
boreas /datatel/live/collive >>

One of our programers wrote the script and is the one running it. The Login Home Directory for the user is c:\vCal. the subdirectorie in vCal is cancel. I think the script is wrong and is trying to put him into c:\vCal\vCal\cancel instead of c:\vCal\cancel. But I'm not a programer so I don't know for sure. Thanks
Mike

Just recieved this from our programmer:
I am actually getting the records from the R25 server and updating Datatel, it then removes the file from R25 server successfully but returns the error message. There is a process runs that runs and polls R25 every so many minutes to see if there is any thing there. When ever it polls it returns the error message.

Here is what shows up in the message file in Datatel


R2.MESSAGES 8

R2MSG.MODE IMPORT

R2MSG.TYPE WARNING

R2MSG.EVENT.ID

R2MSG.VERSION

R2MSG.UID

R2MSG.EVENT.DESC Attempting import. Error = 2.

R2MSG.EMAIL

R2MSG.EVENT.TYPE CS

Added by JHOFER

Added on 03/06/06

R2.MESSAGES.ADDTIME

Changed by JHOFER

Changed on 03/06/06

Reference Directory R2.REPLY

Message Text 550 RETR failed

550 RETR failed
Post Reply