iftp copying pgp files from ftp is not working

Sep 21, 2015
5
0
I am trying to copy a pgp file from FTP a ftp site. Source file size is around 7KB. But copy command only copies exactly 4KB. It doesn't throw any error message. Any normal file copies fine, but PGP files are copied only partially. I even tried using /D option in copy command and didn't work either.

Any help if much appreciated.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
I've seen partial file downloads, too. (Uploads always seem to work as expected.) Nothing to do with PGP; I suspect that it's just certain file sizes that have issues...? It is not a text vs. binary issue, as I've had text files truncated.

This in version 16.03.55, by the way. I don't know whether the issue still exists in newer versions.

/D, I'm pretty sure, has nothing to do with FTP transfers.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
Later: I have not seen this issue for some months now, because I did eventually find a workaround, in v16. I dropped back to an older version of IPWorks9.dll (August 2013) and the problem went away. I'm afraid this probably would not be a good solution in later versions of Take Command, though.
 
May 20, 2008
11,378
98
Syracuse, NY, USA
Are you using Active FTP? It has been broken for a few versions of TCC (and still is). Try Passive FTP.
 
Sep 21, 2015
5
0
Thanks for your reply.

I did. I do not see any errors, if that is what I am looking for. using /v, what do you think I should see?
 
May 20, 2008
11,378
98
Syracuse, NY, USA
When I use Passive=No, I get errors like this. I don't know whqat's happening to you.

Code:
TCC: FTP protocol error: 426 Data connection unexpectedly closed, file transfer /TCSH-build.zip aborted by client. "/TCSH-build.zip"
 
Jan 12, 2014
422
7
Switzerland, SO
Is this PGP file a cleartext file (ASCII/ANSI) (public key or so)? Then you could try with "copy /FTP:A ..." to perform FTP transfer in ASCII mode, instead of the default binary mode ...
 
May 20, 2008
11,378
98
Syracuse, NY, USA
With IFTP /V you should see something like this. I downloaded a file called DynamicSetEnvVar.zip.
Code:
TYPE I
200 Type set to I.
SIZE /DynamicSetEnvVar.zip
213 32306
PASV
227 Entering Passive Mode (128,230,13,36,235,216)
RETR /DynamicSetEnvVar.zip
150 Opening BINARY mode data connection for DynamicSetEnvVar.zip (32306 Bytes).
226 Transfer complete. 32,306 bytes transferred. 31.55 KB/sec.
First, TCC asks for binary mode (I) and the server replies with a code (200) and an acknowledgement. Then, TCC asks for the size of the file. The server responds with a code (213) and the file size (32306). Then TCC asks for the file (RETR). When the server thinks the transfer is done, it sends a code (226) and the number of bytes it sent.

So you can see how much was sent and compare it to the 4KB you say was received. If the server says it sent the whole file, then there seems to be a problem with TCC. If the server says it sent the 4KB you received then there seems to be a problem with the server.

And if you're really using passive mode, you should see TCC send the PASV command along with the server's response.
 
Sep 21, 2015
5
0
Thanks to all for your help. Much appreciated.

I switched to winscp to download the file instead of iFTP and it is working.
 
Similar threads
Thread starter Title Forum Replies Date
cgunhouse Problems With IFTP Support 3
vefatica IFTP and SFTP Support 7
vefatica WAD IFTP timeout? Support 3
B when doing SFTP via IFTP to my secure site my users always get the finger print key prompt Support 1
cgunhouse IFTP "/S" Option Support 6
vefatica WAD IFTP - old problem still there Support 2
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
vefatica IFTP and active FTP Support 13
vefatica Both IFTP problems remain in build 50 Support 35
vefatica More on IFTP Support 7
vefatica IFTP problems (broken pipe?) Support 24
cgunhouse Foldermonitor and iftp Support 1
Charles Dye Minor nit: DIR /F, IFTP, colorization Support 4
Charles Dye IFTP, current directory, open new connection Support 0
D iftp problem Support 2
D iftp failure after upgrading to build 65 Support 9
S FTP site; IFTP access Support 10
K iftp script copy deletes target files Support 17
J Problems with FTP after IFTP timeout Support 2
P iftp with ftp proxy Support 0
J IFTP issue Support 1
nikbackm IFTP questions Support 3
D "534 Fallback to [C]" after iftp Support 7
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
redwdc Copying files with spaces, commas, etc. Support 5
P Copying files in subdirectories Support 9
P Copying descript.ion file fails Support 8
JohnQSmith Fixed Copying with regex (several issues) Support 7
rps Documentation Help file revision - Copying hidden DESCRIPT.ION files Support 19
S Copying descriptions in DESCRIPT.ION Support 3
Joe Caverly Copying text of MSGBOX Support 0
M Copying files (NOT file contents) to clipboard from TCC Support 17
P Copying descriptions Support 4
samintz How to? exclude a subdirectory when copying Support 2
S COPYing attributes Support 3
Charles Dye Difficulty copying DESCRIPT.ION files Support 1
Roedy copying files to DVD or CD Support 3
K Copying and mouse Support 0
CWBillow Windows 7 copying and Take Command Support 5
A GPF when copying large amount of data on busy USB Drive Support 3
p.f.moore Copying Take Command installed folder Support 19

Similar threads