LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-21-2008, 10:54 AM   #1
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
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,
 
Old 05-22-2008, 05:19 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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).
 
Old 05-22-2008, 10:27 AM   #3
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Original Poster
Rep: Reputation: 42
I tried both of these to no avail:

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

Quote:
Originally Posted by Wim Sturkenboom View Post
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.

Last edited by archangel_617b; 05-22-2008 at 10:28 AM. Reason: suppress smilies
 
Old 05-22-2008, 11:03 AM   #4
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Original Poster
Rep: Reputation: 42
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.
 
  


Reply

Tags
ftp, lftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
k3b - hangs after reading source but completes burn Newoldguy Linux - Newbie 1 01-21-2008 09:21 AM
Problem mirroring with lftp Deathspawner Linux - Software 1 11-22-2005 02:25 PM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
**ERROR: [mplex] Unable to open file shrinked.m2v for reading d1l2w3 Programming 2 04-09-2005 05:49 PM
USB drive hangs while reading on Linux DoubleLetter Linux - Hardware 7 10-26-2004 07:00 AM


All times are GMT -5. The time now is 02:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration