Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Errors using Net::DownloadMirror

by nathanvit (Beadle)
on Mar 21, 2006 at 16:17 UTC ( [id://538215]=perlquestion: print w/replies, xml ) Need Help??

nathanvit has asked for the wisdom of the Perl Monks concerning the following question:

Hello guys,
i'm trying to make a mirror of a directory in which i've a webserver by ftp to my local PC.
I'm using Net::DownloadMirror as the example:
use Net::DownloadMirror; my $um = Net::DownloadMirror->new( ftpserver => "192.168.0.52", usr => "nathanvi", pass => "MYPASS", localdir => "C:\\Documents and Settings\\dip8a01015\\Ea +syPHP1-8\\www\\tiki", remotedir => "/var/www", debug => 1, # 1 for yes, 0 for no timeout => 500, # default 30 ); print("hostname : ", $um->get_ftpserver(), "\n"); $um->Update();
I received a lot of errors:
.... Net::FTP=GLOB(0x1ae5470)>>> CWD /var/www//var/www/dadabik Net::FTP=GLOB(0x1ae5470)>>> 550 /var/www//var/www/dadabik: No such fil +e or directory /var/www//var/www/dadabik is neither a file nor a directory ....
In the server's log i can see:
[21/Mar/2006:17:25:50 +0100] nathanvi.lingotto.local 192.168.50.195 55 +0 SIZE - - - "SIZE /var/www//var/www/dadabik [21/Mar/2006:17:25:50 +0100] nathanvi.lingotto.local 192.168.50.195 55 +0 CWD - - - "CWD /var/www//var/www/dadabik
Any suggestion please?
Relly thanks!!
PS: Sorry for my english...

2006-03-22 Retitled by planetscape, as per Monastery guidelines
Original title: 'DownloadMirror'

Replies are listed 'Best First'.
Re: Errors using Net::DownloadMirror
by Melly (Chaplain) on Mar 21, 2006 at 16:24 UTC

    Best guess is that your webserver automatically logs you into /var/www and then you are appending /var/www to that (or it's setting '/' to /var/www).

    Try leaving the remotedir parameter blank ('').

    Tom Melly, tom@tomandlu.co.uk
Re: Errors using Net::DownloadMirror
by Anonymous Monk on Jan 06, 2008 at 21:02 UTC
    I had this same issue. I didn't have too much time to resolve this but I've found temporary solution.
    Problem was in Net::MirrorDir (0.05). I changed line 120 from
    $self->{_readremotedir}->($self, "$p/$_") for(@files);
    to
    $self->{_readremotedir}->($self, "$_") for(@files);
    and it worked

    Regards,
    emde

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://538215]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found