FTP script failing in middle , Error 421


 
Thread Tools Search this Thread
Operating Systems HP-UX FTP script failing in middle , Error 421
# 1  
Old 08-05-2009
FTP script failing in middle , Error 421

All,

I know this question has been asked , but mine is different scenario

I am unsing HP unix, trying to transfer HP-Unix to HP-Unix.

I am transfering a bunch of file form machine1 to machine2. when i intiate my FTP script the files are getting transfered from machine1 to machine2. But after some time it is failing with the error below.

Partial files were transfered, and the below error "*** Source file not found in remote system:wcs" is not correct it seems i see the source file available. What is the below error mean , what might be the cause.

To note last month this job was running without any issue. Nothing changed the source code now it is failing




*** Source File: /eaa/20090124/100_aaaa_0999
{=======
Connected to 109.334.22.11
220 wc2 FTP server ready.
331 Password required for rus.
230 User rus logged in.
421 Service not available, remote server has closed connection
}=======


*** End : FTP on Aug 04 2009 10:55:56 PM

*** Source file not found in remote system:wc2

Thanks in Advance,
Arun
# 2  
Old 08-05-2009
Instead of running a script, try to perform all the steps manually to see where the actual problem is. I suspect it is a permissions or authentication problem.
# 3  
Old 08-05-2009
When i run individually yes it working fine the files are getting transfered.

The more i noted is that , the FTP is not failing at a constant point , it is failing at random position. But the error is same

421 Service not available, remote server has closed connection


Thank you

Last edited by arunkumar_mca; 08-05-2009 at 09:59 PM..
# 4  
Old 08-06-2009
Is the active connection switching between active mode and passive mode?
# 5  
Old 08-06-2009
Are either of your systems running HP-UX 11.31?
# 6  
Old 08-06-2009
I tried with passive mode , Even after that the script failed . I am sorry about my typo we are trying to trassfer file from Soloris machine to HP-UNIX
# 7  
Old 08-06-2009
Please post the actual script and make it clear which computer (Solaris or HP-UX) is running the script. FTP can be push or pull.

Are both computers on the same LAN? How are they connected? Is there a firewall between them?

Some things to check:
1) Ensure that both computers have their LAN cards set to NOT auto-negotiate and that the LAN ports for both ports are set to NOT auto-negotiate.
2) Set the block size for ftpd on the HP-UK box in /etc/inetd.conf to 32. The value 32 is smaller than the default of 56.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script getting stopped at the middle.

I have created a shell scrit to run the informatica workflows sequentially.In the script i am executing 7 workflows sequentially after running 4 workflows the scrpt getting stop and it is not continuing next step evn it is updating logs.4th workflow will take more time to finish is that making... (1 Reply)
Discussion started by: katakamvivek
1 Replies

2. Shell Programming and Scripting

ftp script error

Hi , I was writing a bash script of ftp to transfer the files , rite now I am considering my local server as ftp server and through keygen -ssh I ahve generated the public & private keys , the private key I have kept in the folder named scripts where my all scripts resides and the public key... (6 Replies)
Discussion started by: rahul125
6 Replies

3. Shell Programming and Scripting

input of two numbers in the middle of the script

Hi, My script ask for the input of two numbers in the middle of it. I would like to know how to indicate this two numbers when I submit the script. thanks for any help, jalves (4 Replies)
Discussion started by: jalves
4 Replies

4. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

5. UNIX for Dummies Questions & Answers

unzip failing with write error

All, I am trying to unzip a file, when i doing i am seeing the below error. I have more than enough memory space in the directory where i am unziping. Can you please help me to find out the issue I dont know why i am getting disk full error. I have more space in /pa01 directory ... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

6. Shell Programming and Scripting

FTP script error

This question has been answered many times. I tried to use some examples. Here is the error and cannot find the reason. Please help! messages : 40 step1 step2 arcfile1.sh: line 55: syntax error: unexpected end of file :( here is the script: #!/bin/bash DATE=`date +%Y%m%d`... (21 Replies)
Discussion started by: Lenora2009
21 Replies

7. Shell Programming and Scripting

FTP script error

Hi all, I am trying to run a FTP script which would go to diff servers in the environment and get the request logs and I am getting the following error, Please let me know. server1.ou.st.com (to) usage: open host-name Not connected. Local directory now /home/pk960/logs Not connected.... (0 Replies)
Discussion started by: crosairs
0 Replies

8. AIX

0653-421 mksysb errot

When i am taking mksysb that time it is giving error 0653-421 error. (8 Replies)
Discussion started by: pernasivam
8 Replies

9. UNIX for Dummies Questions & Answers

FTP login failing

Please help. I am running Solaris 8 trying to get my FTP to work. When I try to access the FTP server from another computer on the network, it connects and prompts for a password. The username and password I set up do not work as well as my root account. Neither of the accounts are set up in the... (3 Replies)
Discussion started by: zbis12
3 Replies
Login or Register to Ask a Question