Oh, monks!

I have an issue with the CPAN shell that has lasted for some time, but it makes installation using the shell something that takes many hours, so it is rather irritating... Especially now that I'm a terrible hurry...

If I go install What::Ever, the shells starts to download, and tries one method, which fails, usually after a long timeout, then goes on to try another, which fails too, then another untill it has exhausted all methods. Then, it tries the next mirror in my mirror list. The same thing happens, it goes on to try the different methods, and after a few timouts, the next mirror. Untill, all of a sudden, it works, and after a few seconds, the module is installed and working.... I can't see any pattern in why it suddenly works, but apparently is does learn something about what doesn't work, and skips some methods after a while. But I can't really see any pattern in that either...

So, it isn't that it doesn't work at all, just that it often takes an hour with all these things about failing fetch methods...

This is an example output:

Fetching with LWP: ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz LWP failed with code[400] message[FTP return code 000] Fetching with Net::FTP: ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/01mailrc.txt.gz Couldn't fetch 01mailrc.txt.gz from ftp.funet.fi Fetching with LWP: ftp://ftp.du.se/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[400] message[FTP return code 000]
LWP works great with other modules, so I can't imagine it being at fault...

Have anybody else seen this behaviour?

If not, is there a way I can set the timeout to some small value, so at least the process is faster?


In reply to Problems accessing CPAN with the shell by Kjetil

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.