Skip Menu |

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 31397
Status: resolved
Priority: 0/
Queue: File-Fetch

People
Owner: Nobody in particular
Requestors: dendvk [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 'lwp' said it fetched '/home/somefile', but it was not created
Date: Wed, 12 Dec 2007 09:51:42 +0300
To: bug-file-fetch [...] rt.cpan.org
From: Денис Кольвах <dendvk [...] mail.ru>
Hello guys. I've encounter such issue. What does it mean? Here is a part of my script: use File::Fetch; $File::Fetch::TIMEOUT = 5; $File::Fetch::WARN = undef; $File::Fetch::DEBUG = undef; $File::Fetch::BLACKLIST = [qw|lynx wget curl|]; foreach my $h (@hosts) { my $uri = $h->{proto}.$h->{host}.$h->{tld}.$h->{doc_root}.$h->{file}; my $path = $pwd.$h->{host}.$h->{tld}; unlink $path.'/'.$h->{file}; print "\n\nTrying $uri ...\n"; my $i = 1; my $ff = File::Fetch->new(uri => $uri); my $status = undef; while($i <= 3) { $status = $ff->fetch(to => $path); last if($status); $i++; sleep $opt{wait}; } } Sometimes (not often) this foreach give me error described in subject of my letter, and after this does not fetch anymore, empty error came from $ff->fetch for all rest files to download. How can I cure this situation? Should I not use lwp at all, or create new File::Fetch object for each file from list? -- С уважением, Денис Кольвах mailto:dendvk@mail.ru
Subject: Re: [rt.cpan.org #31397] AutoReply: 'lwp' said it fetched '/home/somefile', but it was not created
Date: Wed, 12 Dec 2007 11:40:32 +0300
To: Bugs in File-Fetch via RT <bug-File-Fetch [...] rt.cpan.org>
From: Денис Кольвах <dendvk [...] mail.ru>
Also I have to note, this issue has been never seen on Red Hat Enterprise Linux ES release 3 (Taroon Update 9) File::Fetch $VERSION = '0.10'; LWP $VERSION = "5.808"; Perl 5.8.1 but achieved on Red Hat Enterprise Linux ES release 4 (Nahant Update 6) File::Fetch $VERSION = '0.12'; LWP $VERSION = "5.79"; Perl 5.8.5 Also I have to note, there is no problem with free space on HDD and of course, with files permitions.
On Wed Dec 12 01:52:17 2007, dendvk@mail.ru wrote: Show quoted text
> I've encounter such issue. What does it mean?
This means that the LWP module gave back a status 200 or 304 after we requested it to fetch a remote file, but that the file either didn't exist after the call, or it had zero size. If you were fetching an empty file, that would explain the error. Show quoted text
> Here is a part of my script: > > use File::Fetch; > $File::Fetch::TIMEOUT = 5; > $File::Fetch::WARN = undef;
This is generally a bad idea, and you lose diagnostics that could help you track down the problem. Let me know if you need any more help.