Issue with ftp hanging


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Issue with ftp hanging
# 8  
Old 06-30-2015
Yea, but.......yea, but......

It's obvious that pings will get slower when other traffic is on the link, ie, the ftp job, and that doesn't tell us anything.

If the ftp is running from node A to node B then I'd set up ping scripts in both directions. The question is what happens to ping response times when the ftp job 'hangs'? Do the pings stop completely (lost packets), or return to full speed (ftp is producing no traffic so ping is fast)?

At that time what speed are pings from node C to node A? And node C to node B? Does this show that the network interface on A or B has completely screwed up and not communicating at all? Or do both interfaces still work but ftp is hung?

Unfortunately, I think you need to run this test to destruction (until the ftp is completely stuffed and 'hung') and then see if you can get either or both interfaces to talk. If one node won't communicate then that's the node to investigate.

Last edited by hicksd8; 06-30-2015 at 04:32 PM..
# 9  
Old 06-30-2015
Also consider -
Code:
netstat -s | grep -i drop

to look for tcp drops - in general there should be few. Check on both servers.

Oops - this is a Red Hat derived system. I know it supports netstat but the assumption is the -s option.
I do not know.
# 10  
Old 07-01-2015
Try:-
Code:
ethtool -S ent0

This will give you all sorts of statistics about the card including any dropped packets. What output do you get?


Robin
# 11  
Old 07-01-2015
I think we're going to just have to put this one to bed. I ran another test, pinging both ways and also involving a third server. As expected, the average time of a ping became about 4 times slower during the ftp. I can't run it to any more 'destruction' than what I'm already doing. Watching stdout of the ftp, I can see it succesfully pull several smaller files, then one of the c. 4gb files takes about 2 minutes, then on the next big file it hangs. I leave it trying for about 10 minutes before killing it. Past experience indicates that at this point, 10 minutes is no different than 10 hours. And yes, I have, in the past, left it up for as much as 16 hours.

I appreciate everyone's help, but I'm not sure what else can be done at this point.
# 12  
Old 07-01-2015
Right, so after the ftp job is hung do the pings still work?

After the ftp job is hung can you still login to both systems?

After the ftp job is hung and you run another ftp job in the same direction does it run or hang immediately?

If you run the job reversed ('put' instead of 'get' or vice-versa) does it transfer all the files successfully without hanging?
# 13  
Old 07-01-2015
More questions in addition to those from hicksd8 I'm afraid:-
  • When the FTP stops, is the ping response faster again or still about 4 times slower?
  • Can you leave the job that is stuck and start others that still work?
  • Can you transfer the file with that hash subcommand in first? It puts a # mark on the screen for each block of data (typically 1024 bytes) so you can see if it really stops or just goes very slowly.
  • Is the target file growing at all?
  • Is there something on the network that throttles your use?


Sorry for all these, but it's difficult to spot anything yet.



Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ftp issue

I have logged into ftp and unable to enter into the below directory. can anyone help me out to enter into the below directory. ftp> dir 200 Command PORT okay. 150 File status okay; about to open data connection. drwx------ 0 0 Dec 15 06:39 BANK ISI-Bas ftp> cd BANK... (5 Replies)
Discussion started by: ramkumar15
5 Replies

2. Shell Programming and Scripting

Connecting to a server using FTP is hanging

Hi Friends I have created a shell script to connect to a windows server. But the problem is while trying to run the script I am not getting any output. After running the script it is hanged and the prompt is not showing until if I press the ctrl+Z to break the script. I also tried using the FTP... (2 Replies)
Discussion started by: Kannannair
2 Replies

3. UNIX for Advanced & Expert Users

Ftp issue

Hi we are facing an issue on our server our job connects to a target server and pulls the file from a location .But it is taking too much time to do this . Hwne i manully do the ftp it finished in few seconds .but when the jobs is pulling it is taking 30 to 40 min . please see the log... (1 Reply)
Discussion started by: ptappeta
1 Replies

4. Shell Programming and Scripting

ftp issue

Hi again, I'm using the following shell script via cron to upload the daily log files from my shell to the web server so we can view them online. But somehow logs get corrupted and i don't know what's issue. I would really appreciate for your help please. Shell Script: ftp.sh #!/bin/sh... (3 Replies)
Discussion started by: user`
3 Replies

5. UNIX for Dummies Questions & Answers

FTP Issue

Hi all, iam trying to connect to a ftp site in putty by using the follwing command . ftp URLname. I get the below error ftp: usftp.ABC.com: unknown host. Iam able to connect to the same site through windows commandline. Can anyone put your thoughts on what might be the issue?. ... (2 Replies)
Discussion started by: swathich
2 Replies

6. IP Networking

FTP issue

Hello all, FTP times out when I transfer large files. Small files get transffered fine. small files -------- -bash-3.1$ ftp -i cldevoradb01 Connected to cldevoradb01.enterprisenet.org. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS.... (4 Replies)
Discussion started by: luft
4 Replies

7. Shell Programming and Scripting

FTP client is hanging very rarely!

Hi, I have a script in which I am using ftp to transfer some files from remote -> local and vice versa, this scripts is invoked by cron. for your reference I am sharing the function also : ============================================= fn_FileTransfer_LocalToRemote() { set -x... (1 Reply)
Discussion started by: anshuman0507
1 Replies

8. Shell Programming and Scripting

FTP Issue-Help

Hi all, I am trying to transfer files from one server to another. Following is script i wrote for this purpose. It downloads the file to the server which the script is residing and uploads it to the remote server. Main Script #!/bin/bash -x ... (2 Replies)
Discussion started by: Tuxidow
2 Replies

9. Shell Programming and Scripting

ftp issue

I was changing a bit of the existing script and didnt comment the ftp part in it. So, the ftp step executed, but there was no input file. I got the message like this netout: write returned 0? 250 Transfer completed successfully. What does this mean?. Has the ftp replaced the existing... (1 Reply)
Discussion started by: dnat
1 Replies

10. Shell Programming and Scripting

ftp issue

Hi all, I am trying to connect to ftp through the following shell script ip='172.12.40.45' user='oracele' pw='oracle@7Hills' ftp -n -i -v $ip<<EOF user $user $pw EOF But i am getting the following message $ /home/oracle/practice/ftptst Connected to 172.12.40.45. 220 (vsFTPd... (5 Replies)
Discussion started by: ravi raj kumar
5 Replies
Login or Register to Ask a Question