Secure FTP corrupts file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Secure FTP corrupts file
# 1  
Old 12-16-2008
Secure FTP corrupts file

Sun Microsystems Inc. SunOS 5.9

I am hoping someone has come across this before. I have a script that transfers several gz files via Secure FTP across to an SFTP server on an NT machine.

The transfers show as successful:

pack12_200812160337.tar.gz | 768kB | 768kB/s | ETA: 00:00:01 | 37%
pack12_200812160337.tar.gz | 1.6MB | 816kB/s | ETA: 00:00:00 | 79%
pack12_200812160337.tar.gz | 2.0MB | 1.0MB/s | TOC: 00:00:02 | 100%

Out of the several files transferred one is corrupt and I am unable to decompress it using either winzip or gzip and get the following error messages:

Winzip (Windows)
Error reading header after processing 132 entries.

gzip (Unix)
gzip: pack12_200812160337.tar.gz: invalid compressed data--crc error
gzip: pack12_200812160337.tar.gz: invalid compressed data--length error

I cannot figure out why only one of the files would be corrupted and all the others are ok.

I can also confirm that the file decompresses correctly prior to any transfer.

Any input greatly appreciated.

Thanks

Last edited by ronnie_uk; 12-16-2008 at 10:38 AM..
# 2  
Old 12-18-2008
Not all tar/gzips are equal. Try upgrading your programs. I bet that fixes things.
# 3  
Old 12-19-2008
Ok, thanks.

Not sure if anything has been changed but the problem seems to have gone away. Will monitor the situation and see what happens over the next few weeks.

Last edited by ronnie_uk; 12-19-2008 at 04:37 PM..
# 4  
Old 12-19-2008
You need to transfer zipped files in binary mode, not ascii mode.
# 5  
Old 12-19-2008
Thanks, the transfer is Binary mode but still saw corruption on a single file.

The problem seems to have dissappeared, I am going to monitor it for now and fingers crossed I won't see the issue again.

if I find out what caused it then I will post here.

Thanks anyway
# 6  
Old 01-29-2009
Just thought I would post the resolution to this:

Looks like we had a corrupt sector on one of the Drives on the SFTP server, replaced the drive and issued resolved. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Debian

Secure ftp access to outside chroot

I want to setup ftp on my home server running debian 5.0 I found this guide and have read it carefully. Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Debian Lenny | HowtoForge - Linux Howtos and Tutorials Before I install/config it I want to know if its... (1 Reply)
Discussion started by: chipmunken
1 Replies

2. AIX

How to secure ftp in AIX

Hi, the default ftp that comes with AIX5L is not secured as far as i know. How to install and use the secured FTP in AIX? Linux these days uses vsftpd daemon(very secured FTP daemon) is there VSFTPD for AIX? if there is any where can i download it from? thanks and regards Pchangba (1 Reply)
Discussion started by: pchangba
1 Replies

3. UNIX for Dummies Questions & Answers

SCP -r from Secure FTP site

Hi all, My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use scp -r... (5 Replies)
Discussion started by: cpabrego
5 Replies

4. UNIX for Advanced & Expert Users

Setup Secure FTP

Hi All, Please help me to setup the secure Ftp. I want to build a ftp which should ask the Login id and password, and one thing more a particular login should be enable to read/write only his/her directory i.e,s a user should not be able to open the other directories in the ftp.Please help me... (1 Reply)
Discussion started by: akhtar.bhat
1 Replies

5. UNIX and Linux Applications

Secure FTP Client that Logs well

Folks I am on a quest.... I am looking for a lightweight FTP client capable of FTPS and or SFTP that has good audit and logging capabilities without requiring a central server component. My platforms are Linux, Solaris, AIX, and Windows Server. The kicker is I have found things that meet the... (3 Replies)
Discussion started by: ArtF
3 Replies

6. UNIX for Dummies Questions & Answers

Secure ftp using ssl/tls

We have a requirement to setup secure ftp between our AIX v5.3 system and our mainframe. We don't want to use openssh with sftp and scp. Our mainframe uses ftp over ssl/tls so we have to use this on our AIX box. We have openssl on our AIX system but I'm not sure how to setup ssl/tls over ftp on... (4 Replies)
Discussion started by: DANNYC
4 Replies

7. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

8. HP-UX

ftp to secure server

How to ftp file to secure server. Can somebody pls guide. (1 Reply)
Discussion started by: rkkiran
1 Replies
Login or Register to Ask a Question