LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   lftp mirroring hangs cannot open file for reading (http://www.linuxquestions.org/questions/linux-software-2/lftp-mirroring-hangs-cannot-open-file-for-reading-643810/)

archangel_617b 05-21-2008 10:54 AM

lftp mirroring hangs cannot open file for reading
 
Hi,

I have tried setting up lftp to mirror our web host for backups. The problem I've run in to is that when it gets to the web server logs, the current file is in use so the FTP server says:

450 Cannot open file <blah> for reading.

After which lftp immediately retries and it just pounds the server non-stop trying to get this file and the server refusing it.

The server is Serv-U.

Is there some way to resolve this? Tell lftp to just ignore files it cannot retrieve or tell Serv-U to issue some different error so that lftp does not retry?

Thanks in advance,

Wim Sturkenboom 05-22-2008 05:19 AM

http://linux.die.net/man/1/lftp

You can try net:persist-retries in the lftp configuration. No experience and no lftp at hand to test. From the description, it sounds like that's what you're looking for.

However, it's a server side problem and should be solved at the server side (in my opinion).

archangel_617b 05-22-2008 10:27 AM

I tried both of these to no avail:

set net:max-retries 3
set net:persist-retries 3

Quote:

Originally Posted by Wim Sturkenboom (Post 3161236)
However, it's a server side problem and should be solved at the server side (in my opinion).

I agree, however the server is not a sane OS (Windoze) so who knows what's going on there. As for the FTP server, I have messaged Serv-U support to see if they have a solution through their application.

archangel_617b 05-22-2008 11:03 AM

Ugh, for now I'm just using -x to exclude log files. Not ideal, but the log files are not as important as the content.


All times are GMT -5. The time now is 06:52 PM.