Hello Dear List Members,

I am new to the list,
so, as LFTP really rocks,
I would like to thank all contributors to such a great SW.

I am a Linux enthusiast.

I would like to solve following issue:
- I want to synchronize (mirror) local directory tree (on Linux
Debian, on LAN behind ADLS router) to a remote FTP server.

synchronisation script is: upload.lftp
===========================
<code>
open -u [email protected],mypassword -p 21 ftp.myserver.com
mirror --reverse --delete --verbose=3 /home/user/01_DATA   /01_DATA
exit
</code>

* * * But it fails.* * *

so I used debug mode (debug -d) :
========================
<code>
lftp -d -f upload.lftp
</code>

And got this log:
=========
<--- 230-User [email protected] has group access to:  myserver
<--- 230 OK. Current restricted directory is /
---> PWD
<--- 257 "/" is your current location
---> PBSZ 0
<--- 200 PBSZ=0
---> MKD /01_DATA
<--- 550 Can't create directory: File exists
---> CWD /01_DATA
<--- 250 OK. Current directory is /01_DATA
---> PROT P
<--- 200 Data protection level set to "private"
---> PASV
<--- 227 Entering Passive Mode (xxx.yyy.zzz.79,253,173)
---- Connecting data socket to (xxx.yyy.zzz.79) port 64941
**** Socket error (No route to host) - reconnecting
---> LIST
---> ABOR
---- Closing aborted data socket
---- Closing control socket
Getting directory contents (0) [Delaying before reconnect: 19]



Symptoms:
=========
- lftp process enters a counting loop, connects again, fails again, an so on.
On remote site, I can see many FTP processes piling up for each retry of LFTP

- There is no such issue with other programs such as FilleZilla, or
NCFTPBATCH while copying directory trees tu the FTP server.

Diagnosis: ?
======
This is not:
1) an initial connection issue
2) a login issue
3) an access rights issue
For instance, LFTP created remote directory /01_DATA in a previous session.

It may be: ?
- a local ADSL router issue (included firewall rules? what else ?)


Thanks in advance for ideas and advice,

-- Peko

Reply via email to