Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

cpan client misbehaviour on OpenSuse 12.3

by ted.byers (Monk)
on Dec 16, 2013 at 15:04 UTC ( #1067342=perlquestion: print w/replies, xml ) Need Help??
ted.byers has asked for the wisdom of the Perl Monks concerning the following question:

Here is the output I routinely see, whenever I try to use cpan:

--2013-12-16 09:49:56-- (try:17) +an/modules/02packages.details.txt.gz Connecting to (|64 +.237.37.14|:80... failed: Connection timed out. Retrying.

I often see this dozens of times, and then, when it finally ends, the download of an index or package gets interrupted, and the process starts all over, with dozens of retries to connect to

Why does it do that, and what can I do to have it try any other site?

A key piece of information that is relevant here is that my connection to the internet is fine. I can, for example, open Firefox and connect to any site of interest to me.

When I first ran cpan, I accepted the option it provides that lets it pick suitable defaults. Was that a mistake? If so, is there a web resource that provides guidance on what options to select when manually selecting the configuration options cpan requires?

Installing the packages I require on this machine will be extremely painful until I get this addressed.



Replies are listed 'Best First'.
Re: cpan client misbehaviour on OpenSuse 12.3
by marto (Bishop) on Dec 16, 2013 at 15:17 UTC

    Select a mirror. Remove the existing entry:

    cpan> o conf urllist shift

    Add the mirror you chose from the list:

    cpan> o conf urllist push

    Save changes to cpan config:

    cpan> o conf commit

    To reinitialise the entire config:

    cpan> o conf init

    See also cpan documentation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1067342]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-04-30 16:17 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (541 votes). Check out past polls.