Operating System - Tru64 Unix
1830250 Members
3495 Online
110000 Solutions
New Discussion

ftp can put but not get

 
robert hurst
Occasional Contributor

ftp can put but not get

TRU64 5.1A when ftp,ing between two of these servers can connect and run a put but when try a 'get' file transfer starts then have message 426 closing contection cannot find file. But file DOES exist.

Any Ideas?
6 REPLIES 6
Michael Schulte zur Sur
Honored Contributor

Re: ftp can put but not get

Hi,

this is strange, that the connection gets lost when getting a file.

Please post the commands you use and result you get. You can instruct ftpd to log any ftp commands it is executing, the you can see errors in ftp script.

Michael
robert hurst
Occasional Contributor

Re: ftp can put but not get

Here is a transscript of the ftp process.

ftp 132.1.0.50
Connected to 132.1.0.50.
220 pharm-oscar FTP server (Compaq Tru64 UNIX Version 5.6) ready
User (132.1.0.50:(none)): root
Password:
230 User root logged in.
ftp> cd /mnt1/backup
250 CWD command successful.
ftp>bin
200 Type set to I.
ftp>get FILE.DAT
200 PORT command sucessful.
150 Opening BINARY mode data connection for FILE.DAT (132.1.0.50,1444) (2703360426 bytes>.
426 Data connection: No such file or directory.
ftp>

IP addresses have been changed to protect the innocent.

thanks.
Michael Schulte zur Sur
Honored Contributor

Re: ftp can put but not get

Hi,

please try dir FILE.DAT instead of get.
On unix you have a case sensitive ftp.
Also login on the server with the file go to the directory and check with ls -lb *FILE.DAT* for hidden characters.

Michael
Mobeen_1
Esteemed Contributor

Re: ftp can put but not get

Robert,

1. Check the permissions

2. Remember about case-sensitiveness

If both the above don't yield any positive results

1. Can you let us know if you can create a new file in the same directory and be able to do a PUT on the same?

rgds
Mobeen
robert hurst
Occasional Contributor

Re: ftp can put but not get

i have been running some tests.

It would appear to be file size related I have no problem ftp'ing small files but when i try the to transfer my FILE.DAT which is approx 1.5 Gb then i get the problems.

I have run ls -lb names come up clean checked the case of the file names

I also created a new FILE.DAT on one server and sucessfully 'put' it on the other box, but when i tried to 'get' it back i got the error message

426 Data connection: No such file or directory

Also got me unix wrong its 5.1B not A
Mobeen_1
Esteemed Contributor

Re: ftp can put but not get

Robert,
In that case it looks like your FTP may not have suport for large files. May be we should rule this possibility out.

Can you please review the discussion thread below

http://curl.haxx.se/mail/lib-2003-12/0073.html

Regards
Mobeen