Operating System - Linux
1822147 Members
4155 Online
109640 Solutions
New Discussion юеВ

ftp file transfer completed but 0 size files downloaded

 
Route83
New Member

ftp file transfer completed but 0 size files downloaded


Hello everybody,

I would like to ask you about my problem:

The problem is that from a local linux machine I connect far end server hosting some files for me - that is on another network I use NAT VPNs and not sure IF firewall is in place between the paths - anyway the issue is i can run '' get 'filename' and it seems it retrieved the file successfully but when i check the file it shows 0 size ! I know there is enough space in local server ,deleted all files but still it downloads in 0 size ,nothing at all.

My concern is regarding to network path and transfer mode which should be set up somwhere in Router or Firewall if there is .. ?

or what needs to be checked from network side -on VPN servers, or firewall settings ?

Any of you would know on this topic ??? I would appreciate.

Thanks & Regards
Sezgin.

6 REPLIES 6
Steven Schweda
Honored Contributor

Re: ftp file transfer completed but 0 size files downloaded

> [...] linux [...]

Then why ask in an HP-UX forum?

http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=118

> [...] far end server [...]

Not a very detailed description of anything.

> [...] the issue is [...]

Is that anything like a _problem_?

> [...] i can run '' get 'filename' and it
> seems it retrieved the file successfully
> [...]

As usual, it might help to show actual
commands with their actual output, instead of
vague descriptions and interpretations.

With little to no information about exactly
what these systems are, exactly what you're
doing, or exactly what happens when you do
it, it's hard even to guess what might be
happening.

Can you use FTP on this system to fetch a
file from some other server? From itself?
Can you fetch a file from "far end server" to
some other system? Where is the problem?
Route83
New Member

Re: ftp file transfer completed but 0 size files downloaded

Hi Steve,

At first, thank you very much for reply.

Actually you are right it is Linux but i thought this ftp file size issue is something to generic to all.

Since it is restricted login to a customer network i have just asked the questions to get an idea.What I know sometime i have had issues with transferred file size that is due to binary or ascii transfer mode but in this case even there is no some part of bytes downloaded all it shows 0 size. Here is the a few copy/ paste from them :

$ hostname

srddm01c

$ sftp -oPort=20191 neufcege@198.206.164.1

Connecting to 198.206.164.1...

Warning Notice



Access to this network and the information on it are lawfully

available only for approved purposes by employees of Nortel

and other users authorized by Nortel. If you are not an

employee of Nortel or an authorized user, do not attempt to

log on. Other than where prohibited by law and subject to

legal requirements, Nortel reserves the right to review any

information in any form on this network at any time.

neufcege@198.206.164.1's password:

sftp> cd /rdd/xref

sftp> get DMS2patch

Fetching /rdd/xref/DMS2patch to DMS2patch

[file on srddm01c is 0 size]



Thanks & Regards.

Steven Schweda
Honored Contributor

Re: ftp file transfer completed but 0 size files downloaded

> ftp file transfer [...]

> $ sftp [...]

You appear to be using SFTP, not FTP.

> Fetching /rdd/xref/DMS2patch to DMS2patch
>
> [file on srddm01c is 0 size]

With my weak psychic powers, I do not know
the file size on the server, so I don't know
if "0 size" is right or wrong.

> Can you [...]

Still wondering (even if you change FTP to
SFTP).

You could try adding "-v" (or "-vv", or
"-vvv", ...) to your "sftp" command. With
approximately no information (or largely
inaccurate information), my guesses about
the causes would probably be worth little.
Viktor Balogh
Honored Contributor

Re: ftp file transfer completed but 0 size files downloaded

What if this file has a size of zero also on the remote side? Just a wild question... ;)
****
Unix operates with beer.
Route83
New Member

Re: ftp file transfer completed but 0 size files downloaded


No , the file size is not zero on the resource server for sure !

Yesterday a few investigation was made and ftp worked fine but NOT sftp which we need to do it via sftp since it is the policy.

But today ftp still does not work ! I am just triying to get some logs in our server ( Linux) just to help us to give an idea what is going wrong while transferring.
any logs you should suggest me find and get it to open and see what is regarding to this issue ? I got syslog but it does not show useful data..

The thing i ask help from you is to advise me what the problem can surface around :

- In the network congiguration ? If so which parameters need to be checked ?

- In our local machine,If so which logs,files to check ?

Your help would be appricated
Many thanks
Sezgin
Steven Schweda
Honored Contributor

Re: ftp file transfer completed but 0 size files downloaded

> No , the file size is not zero on the
> resource server for sure !

You know this how?

> But today ftp still does not work ! [...]

"Does not work" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.

> [...] I got syslog but it does not show
> useful data..

In that respect, it's just like you.

> The thing i ask help from you is to advise
> me what the problem can surface around :
> [...]

From what you've told us, I'm pretty sure
that the problem is somewhere in the hardware
or the software on one or both of the systems
involved, or somewhere between them.


> As usual, it might help to show actual
> commands with their actual output, instead of
> vague descriptions and interpretations.

Which part of that was unclear?

> > Can you [...]
>
> Still wondering (even if you change FTP to
> SFTP).

Do you ever answer questions, or do you only
ask more?