This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
51018
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
MLEHMANN [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
1.9402
Fixed in:
(no value)



Subject: cpan incorrectly claims "Client not fully configured"... readme command almost unusable
I don't know when it happened, but now, my CPAN gives me a confusing and wrong error message when it cannot find a file. As an example, I often use the readme command, and many modules do not provide a readme file, so the file isn't found on the cpan mirror. Older versions gave me a single error line for each such readme, but current cpan gives me several screenfuls and then claims: Client not fully configured, please proceed with configuring. [...] You have not configured a urllist and do not allow connections to the This is untrue, the urllist is configured correctly and contains a working mirror. This problem at least makes the readme command almost useless to me. Here is a full session illustrating the problem: cpan[2]> readme Net::OpenID::Consumer Running readme for module 'Net::OpenID::Consumer' Fetching with LWP: http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme Fetching with LWP: http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.gz Trying with "/usr/bin/curl -L -f -s -S --netrc-optional -U ":" -x "http://10.0.0.5:3128/"" to get "http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme" curl: (22) The requested URL returned error: 404 Trying with "/usr/bin/curl -L -f -s -S --netrc-optional -U ":" -x "http://10.0.0.5:3128/"" to get "http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.gz" curl: (22) The requested URL returned error: 404 Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.tmp22956" to get "http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme" --2009-11-01 11:28:26-- http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme Connecting to 10.0.0.5:3128... connected. Proxy request sent, awaiting response... 404 Not Found 2009-11-01 11:28:26 ERROR 404: Not Found. Trying with "/usr/bin/wget -O /root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.tmp22956" to get "http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.gz" --2009-11-01 11:28:26-- http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.gz Connecting to 10.0.0.5:3128... connected. Proxy request sent, awaiting response... 404 Not Found 2009-11-01 11:28:26 ERROR 404: Not Found. Trying with "/usr/bin/lynx -source" to get "http://ftp-stud.hs-esslingen.de/pub/CPAN/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme" No success, the file that lynx has downloaded looks like an error message: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Object not found!</title> <link rev="made" href="mailto:adrian@hs-esslingen.de" /> <style type="text/css"><!--/*--><![CDATA[/*><!--*/ body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } p, address {margin-left: 3em;} span {font-size: smaller;} /*]]>*/--></style> </head> <body> <h1>Object not found!</h1> <p> The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. </p> <p> If you think this is a server error, please contact the <a href="mailto:adrian@hs-esslingen.de">webmaster</a>. </p> <h2>Error 404</h2> <address> <a href="/">ftp-stud.hs-esslingen.de</a><br /> <span>Sun Nov 1 11:28:27 2009<br /> Apache/2.2.11 (Fedora)</span> </address> </body> </html> Warning: no success downloading '/root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme.tmp22956'. Giving up on it. at /opt/perl/lib/perl5/CPAN/FTP.pm line 837 CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x7c82410)', 'authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme', '/root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-...', 'HASH(0x72ce840)') called at /opt/perl/lib/perl5/CPAN/FTP.pm line 664 CPAN::FTP::hostdleasy('CPAN::FTP', 'ARRAY(0x133f4b8)', 'authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme', '/root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-...', 'HASH(0x72ce840)') called at /opt/perl/lib/perl5/CPAN/FTP.pm line 515 CPAN::FTP::hostdlxxx('CPAN::FTP', 'dleasy', undef, 'ARRAY(0x133f4b8)', 'authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme', '/root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-...', 'HASH(0x72ce840)') called at /opt/perl/lib/perl5/CPAN/FTP.pm line 442 CPAN::FTP::localize('CPAN::FTP', 'authors/id/M/MA/MART/Net-OpenID-Consumer-1.03.readme', '/root/.cpan/sources/authors/id/M/MA/MART/Net-OpenID-Consumer-...') called at /opt/perl/lib/perl5/CPAN/Distribution.pm line 1262 CPAN::Distribution::readme('CPAN::Distribution=HASH(0x6a8bce8)') called at /opt/perl/lib/perl5/CPAN/Module.pm line 474 eval {...} called at /opt/perl/lib/perl5/CPAN/Module.pm line 473 CPAN::Module::rematein('CPAN::Module=HASH(0x4e2a678)', 'readme') called at /opt/perl/lib/perl5/CPAN/Module.pm line 490 CPAN::Module::readme('CPAN::Module=HASH(0x4e2a678)') called at /opt/perl/lib/perl5/CPAN/Shell.pm line 1755 CPAN::Shell::rematein('CPAN::Shell', 'readme', 'Net::OpenID::Consumer') called at /opt/perl/lib/perl5/CPAN/Shell.pm line 1935 CPAN::Shell::__ANON__('CPAN::Shell', 'Net::OpenID::Consumer') called at /opt/perl/lib/perl5/CPAN.pm line 375 eval {...} called at /opt/perl/lib/perl5/CPAN.pm line 372 CPAN::shell() called at /opt/bin/cpan line 198 Client not fully configured, please proceed with configuring. You have not configured a urllist and do not allow connections to the internet to get a list of mirrors. If you wish to get a list of CPAN mirrors to pick from, use this command o conf init connect_to_internet_ok urllist If you do not wish to get a list of mirrors and would prefer to set your urllist manually, use just this command instead o conf init urllist cpan[3]> o conf $CPAN::Config options from '/root/.cpan/CPAN/MyConfig.pm': commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch [] auto_commit [1] build_cache [10] build_dir [/root/.cpan/build] build_dir_reuse [1] build_requires_install_policy [ask/yes] bzip2 [/bin/bzip2] cache_metadata [1] check_sigs [0] colorize_debug [yellow on_black] colorize_output [1] colorize_print [white on_black] colorize_warn [bold red on_black] commandnumber_in_prompt [1] commands_quote undef connect_to_internet_ok [0] cpan_home [/root/.cpan] curl [/usr/bin/curl] dontload_hash undef dontload_list undef ftp [] ftp_passive [1] ftp_proxy [http://10.0.0.5:3128/] ftpstats_period undef ftpstats_size undef getcwd [cwd] gpg [/usr/bin/gpg] gzip [/bin/gzip] halt_on_failure [0] histfile [/root/.cpan/histfile] histsize [100] http_proxy [http://10.0.0.5:3128/] inactivity_timeout [0] index_expire [1] inhibit_startup_message [0] keep_source_where [/root/.cpan/sources] load_module_verbosity [none] lynx [/usr/bin/lynx] make [/usr/bin/make] make_arg [] make_install_arg [UNINST=1] make_install_make_command [/usr/bin/make] makepl_arg [] mbuild_arg [] mbuild_install_arg [--uninst 1] mbuild_install_build_command [./Build] mbuildpl_arg [] ncftp [] ncftpget [] no_proxy [127.0.0.1,localhost,cerebro,plan9.de] pager [less -r] password undef patch [/usr/bin/patch] patches_dir undef perl5lib_verbosity [v] prefer_installer [EUMM] prefs_dir [/root/.cpan/prefs] prerequisites_policy [follow] proxy_pass undef proxy_user [] randomize_urllist undef scan_cache [atstart] shell [/bin/bash] show_unparsable_versions [0] show_upload_date [1] show_zero_versions [0] tar [/bin/tar] tar_verbosity [v] term_is_latin [0] term_ornaments [1] test_report [1] trust_test_report_history [0] unzip [/usr/bin/unzip] urllist 0 [http://ftp-stud.hs-esslingen.de/pub/CPAN/] use_sqlite [1] username undef wait_list 0 [wait://ls6.informatik.uni-dortmund.de:1404] wget [/usr/bin/wget] yaml_load_code [0] yaml_module [YAML::Syck] cpan[4]>
Confirmed, this is a recent regression.
Fixed in 1.94_53. Danke!


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.