Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

ftp problem on cpan client on windows with strawberry perl

by targetsmart (Curate)
on May 28, 2009 at 11:06 UTC ( #766628=perlquestion: print w/ replies, xml ) Need Help??
targetsmart has asked for the wisdom of the Perl Monks concerning the following question:

Whenever I try to install a module, my cpan client stops here
cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support available (try 'install Bundle::CPAN') CPAN: Storable loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[] CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Trying with "C:\APPS\wget\wget.BAT -O -" to get ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
nothing happens after that ftp line. It just stuck there and waits there for hours.., I have to manually put ctrl+C to come out.
I am using cpan client on strawberry perl 5.10.0.5 on windows XP
I did a fresh installation from http://strawberryperl.com/ and did nothing else special.
how to download and install modules with this cpan client.
any settings I have to do like ftp proxy, etc
I have no clues, any help.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Comment on ftp problem on cpan client on windows with strawberry perl
Download Code
Re: ftp problem on cpan client on windows with strawberry perl
by Corion (Pope) on May 28, 2009 at 11:10 UTC
    LWP failed with code[500] message[]

    It seems that Perl cannot reach the outside world, maybe because you are behind a proxy. Set the environment variable HTTP_PROXY to the appropriate value. For example, I have

    HTTP_PROXYX=http://corion:secret@myproxy.internal.example:8080
      Corion's idea is a great one.

      The code 500 means server terminated the connection. Just as another diagnostic test, without using Perl or perl -MCPAN, just use FTP to see if you can download the file. If you type>ftp ftp.perl.org, you should get a response. The user name is "anonymous" and the password is just a carriage return. Then do a "dir" and you will get a response. If you can get this far, then the proxy is not the problem. If you can't get this far, then some kind of firewall/proxy issue is in play, but you have simplified the question for your sys admin and have taken Perl completely out of the equation.

        doing a dir says
        Connected to ftp.cpan.ddns.develooper.com. User (ftp.cpan.ddns.develooper.com:(none)): anonymous 331 PASSCODE: you can use password@PASSCODE Password: 200 PASSCODE: you can use 'quote PASSCODE' or Account command ('ACCT') ftp> dir 421-SecurID internal error 421 aborted Connection closed by remote host. ftp>
        does it mean that surely it is some proxy or firewall issue.
        i have got a proxy file .pac file through which firefox connnects outside and from that I have seen what is the relevant proxy server I can use and I used that and the HTTP_PROXY variable, still i am unable to connect outside.
        I know that it has become a non-perl issue, but any help is appreciated

        Vivek
        -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
Re: ftp problem on cpan client on windows with strawberry perl
by Wiggins (Friar) on May 28, 2009 at 16:26 UTC
    This is quite possibly a problem I noted before:
    [Perl]# host ftp.cpan.ddns.develooper.com ftp.cpan.ddns.develooper.com has address 149.20.20.135 ftp.cpan.ddns.develooper.com has address 168.143.19.69 [Perl]# host 149.20.20.135 135.20.20.149.in-addr.arpa is an alias for 135.128-27.20.20.149.in-add +r.arpa. 135.128-27.20.20.149.in-addr.arpa domain name pointer mirrors1.kernel. +org. [Perl]#
    Note the mirrors1.kernel.org. I found that they had (have?) an improperly configured FTP server. The problem is in the the last line of a multi-line reply, and a missing space:

    Ref: CPANplus 5 minute timeout>

    They were notified, but no response was ever received.

    It is always better to have seen your target for yourself, rather than depend upon someone else's description.

Re: ftp problem on cpan client on windows with strawberry perl
by targetsmart (Curate) on Jun 29, 2009 at 13:08 UTC
    Setting the variables HTTP_proxy, http_proxy, ftp_proxy made it working.
    I am able to install modules from cpan, using cpan client. I am happy about that. Thanks to those who gave those suggestions
    I think LWP was able to access sites outside when the proxy variables are set.
    but still when I am unable to access the ftp.perl.org as anonymous, the same error is showing up as I said before.


    Vivek
    -- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-09-30 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (383 votes), past polls