Server failed to connect data portError loading directory...

Core FTP client questions and answers
Post Reply
putercoder
Posts: 1
Joined: Mon Apr 12, 2010 2:53 pm

Server failed to connect data portError loading directory...

Post by putercoder »

I have a batch file that executes one a day to upload a file. 8 out of 10 times it works fine. the other 2 times it seems to fail. I run a batch file to execute the commands, which makes it consistenton how I execute the ftp transfer. I can't explain why from the logs. Here is the failed log entry. What am I missing? It appears that when the transfer fails the log entries are in a different order then when it completes successfully.

Started on Sunday April 11, 2010 at 21:22:PMConnect socket #1600 to 172.26.106.91, port 21...220-OS X Server

220-You probably shouldn't be here.

220-

220--------------------------------------------------------------------------------

220-

220-OS X Server

USER dailyfeed

331 Password required for dailyfeed.

PASS **********

230-No directory! Logging in with home=/

230 User dailyfeed logged in.

SYST

215 UNIX Type: L8 Version: BSD-199506

Keep alive off...CWD /Inventoryin_Mi9/

PORT 172,26,117,31,54,67

250 CWD command successful.

200 PORT command successful.

LIST

TYPE A

150 Opening ASCII mode data connection for directory listing.

846D-6898-inventory.txt - 0 bytes transferred

226 Transfer complete.

Server failed to connect data portError loading directory...QUIT

200 Type set to A.

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0


Here is a good log entry that was successful.

Started on Saturday April 10, 2010 at 21:16:PMConnect socket #1604 to 172.26.106.91, port 21...220-OS X Server

220-You probably shouldn't be here.

220-

220--------------------------------------------------------------------------------

220-

220-OS X Server

USER dailyfeed

331 Password required for dailyfeed.

PASS **********

230-No directory! Logging in with home=/

230 User dailyfeed logged in.

SYST

215 UNIX Type: L8 Version: BSD-199506

Keep alive off...CWD /Inventoryin_Mi9/

PORT 172,26,117,31,85,100

250 CWD command successful.

LIST

200 PORT command successful.

150 Opening ASCII mode data connection for directory listing.

226 Transfer complete.

PORT 172,26,117,31,85,101

200 PORT command successful.

LIST

150 Opening ASCII mode data connection for directory listing.

LIST command failedError loading directory...226 Transfer complete.

TYPE A

200 Type set to A.

PORT 172,26,117,31,85,102

200 PORT command successful.

STOR 846D-6898-inventory.txt

150 Opening ASCII mode data connection for directory listing.

226 Transfer complete.

846D-6898-inventory.txt - 2143936 bytes transferred

MDTM 20100411011522 846D-6898-inventory.txt

550 20100411011522 846D-6898-inventory.txt: No such file or directory.

QUIT

221-You have transferred 2084237 bytes in 1 files.

221-Total traffic for this session was 2084480 bytes in 1 transfers.

221-Thank you for using the FTP service on barneys-server.local.

221 Goodbye.

Total uploaded files: 1

Total uploaded data: 2,093 KB

Total downloaded files: 0

Total downloaded data: 0

Also what does the log entry PORT 172,26,117,31,111,135 mean
the first 4 digits are the IP address from the server sending or running the CoreFTP?

Thanks so much
Post Reply