Upload binary files to HP-UX 11.23 ftp server

Core FTP client questions and answers
Post Reply
core_user
Posts: 5
Joined: Tue Jun 21, 2005 6:17 pm

Upload binary files to HP-UX 11.23 ftp server

Post by core_user »

Hi,

I use core-ftp lite. When I tried to upload a binary file (gzip format) to my HP-UX server with pure-ftpd server loaded, I am always having problems. The upload process was fine (by comparing file size) but gunzip always reports error "invalid compressed data--crc error". I also tried to use DOS command prompt on my Windows XP to upload the same file where is the source file exists to the same HP-UX and gunzip did not report any problem. I searched the Forum and I saw K. Young had problem to upload file to UNIX server with ^M character. I followed the suggestion with the discussion and also made sure that the "binary" button on the menu bar is pushed but I am still having problem. Also if I use sftp simply launched from ssh daemon, I don't have problem aslo. Can anyone help me here? Thanks in advance.
core_user
Posts: 5
Joined: Tue Jun 21, 2005 6:17 pm

Post by core_user »

The file name extension is standard UNIX format, xxx.tar.gz. By the way, I use core-ftp lite 1.3 (build 1420.02). Here is the message showed on the core-ftp when I tried to upload the file:

Welcome to Core FTP, release ver 1.3c, build 1420.02 (U) -- 2003-2005
WinSock 2.0
Mem -- 1,047,540 KB, Virt -- 2,097,024 KB
Started on Wednesday June 22, 2005 at 09:34 AM
Connect socket #336 to test.hp-ux.com, port 21...
220--------Welcome to ftpd [TLS]------
220-You are user number 1 of 50 allowed.
220-Local time is now 09:34. Server port:21.
220-IPv6 connections are also welcome on this server.
220--------Welcome to ftpd [TLS]------
USER ftp-test
331 User ftp-test OK. Password required
PASS *******
230-User ftp-test has group access to: testing
230 OK. Current directory is /home/ftp-test
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/home/ftp-test" is your current location
PORT 192.168.0.150,49,174
200 PORT command successful
LIST
150 Connecting to port 12718
226-Options: -l
226 11 matches total
Transferred 922 bytes in 0.008 seconds

################
Up to above message is that I just logged in, have not done anything
It shows me files in the home directory
Now I am starting to upload a .tar.gz file

I click the source .tar.gz file in my local Windows XP directory
click "->" and the file was starting to being transferred
################

PWD
257 "/home/ftp-test" is your current location
TYPE I
200 TYPE is now 8-bit binary
PORT 192.168.0.150,49,175
200 PORT command successful
STOR disk4.tar.gz
150 Connecting to port 12719
226-File successfully transferred
226 51.368 seconds (measured here), 4.96 Mbyest per second
disk4.tar.gz - 267401008 bytes transferred
MDTM 20050620220001 disk4.tar.gz
550 Can't check for file existence
Transfer time: 00:00:51

The file size on the target ftp server is correct but I can't gunzip the file.
gunzip: disk4.tar.gz: invalid compressed data--crc error
core_user
Posts: 5
Joined: Tue Jun 21, 2005 6:17 pm

I just tried core-ftp pro and it did the same thing

Post by core_user »

The pro version does not work also. I feel strange.
core_user
Posts: 5
Joined: Tue Jun 21, 2005 6:17 pm

Post by core_user »

Yes, I just tried core-ftp lite upload through sftp and gunzip worked.

I did further expriment. I uploaded a small .tar.gz file to my Solaris 2.5.1 and Solaris 9 (SPARC) servers and both succeeded.

I then tried to upload the same small .tar.gz to my HP-UX 11.0 and 11.11 servers and gunzip worked.

I also tried to upload the same file to my HP-UX 11.0 workstation but gunzip failed. (I tried multiple times)

Above tests are done without changing configuration in "Advanced" button besides IP address change. (in Advanced, it is set to "UNIX" for "Server Type").

The original server was across a firewall but above tests don't have firewall involved.

The problem that I have is that I don't have problem to upload file using native Windows XP DOS command prompt.
core_user
Posts: 5
Joined: Tue Jun 21, 2005 6:17 pm

Post by core_user »

Hi, I tried to do a test again. After I uploaded file to my HP and Sun boxes. I did checksum and this time checksum showed different numbers with 1.3c version while Microsoft's built-in ftp program showed the same checksum number on both HP-UX and Solaris. I also had problem with gunzip on the Solaris box this time with crc error.
Post Reply