Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id:
99326
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
esarmas [...] gmail.com
Cc:
AdminCc:

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



Subject: http fetch bugs in cpanm
Date: Mon, 6 Oct 2014 14:38:29 +0300
To: bug-Perl-Dist-Strawberry@rt.cpan.org
From: Ev Sarmas <esarmas@gmail.com>
Hello,

I want to learn perl and downloaded and use Strawberry Per (5.20) on 32 bit Windows. It works fine but when I wanted to install Padre I used the 'cpanm' tool which is my source of complaints.

1. cpanm cannot get a http url for a distribution on first try immediately and usually on all 3 tries so I have to run a cpanm command many times in sequence for it to get the distribution and try to install it (often 10 times !!!)
certainly something is wrong, Chrome gets it immediately on first try

this happened with

cpanm Padre
cpanm Alien::wxWidgets
cpanm Wx

2. even when cpanm finally gets the distribution it cannot install it because it often needs to get some other source and fetches further http data which not all result in 200 HTTP code but many times in 301 HTTP code (MOVED) that cpanm handles as error
clearly cpanm should handle 301 and finish the installation

I paste below the log for cpanm Alien:wxWidgets

cpanm (App::cpanminus) 1.7009 on perl 5.020001 built for MSWin32-x86-multi-thread-64int
Work directory is C:\DOCUME~1\eis/.cpanm/work/1412516982.2084
You have make C:\Strawberry\c\bin\dmake.exe
You have LWP 6.08
Falling back to Archive::Tar 2.02
Searching Alien::wxWidgets on cpanmetadb ...
-> FAIL Finding Alien::wxWidgets on cpanmetadb failed.
Searching Alien::wxWidgets () on metacpan ...
--> Working on Alien::wxWidgets
-> OK
Unpacking Alien-wxWidgets-0.65.tar.gz
Entering Alien-wxWidgets-0.65
Checking configure dependencies from META.json
Checking if you have Module::Build 0.28 ... Yes (0.4210)
Configuring Alien-wxWidgets-0.65
Running Build.PL
Possible precedence issue with control flow operator at lib/Alien/wxWidgets/Utility.pm line 77.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Alien-wxWidgets' version '0.65'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Module::Pluggable 2.6 ... Yes (5.1)
Checking if you have Module::Build 0.28 ... Yes (0.4210)
Checking if you have File::Spec 1.50 ... Yes (3.48)
Checking if you have ExtUtils::CBuilder 0.24 ... Yes (0.280219)
Building and testing Alien-wxWidgets-0.65
Possible precedence issue with control flow operator at lib/Alien/wxWidgets/Utility.pm line 77.
Fetch failed! HTTP response: 500 Internal Server Error [500 Can't connect to prdownloads.sourceforge.net:80] at inc/My/Build/Base.pm line 305.
Fetch failed! HTTP response: 599 [Internal Exception] at inc/My/Build/Base.pm line 305.
Got a '301' from 'prdownloads.sourceforge.net' expected '200' at inc/My/Build/Base.pm line 305.
Unable to fetch archive at inc/My/Build/Base.pm line 307.
Building Alien-wxWidgets
Fetching wxWidgets...
-> FAIL Installing Alien::wxWidgets failed. See C:\DOCUME~1\eis\.cpanm\work\1412516982.2084\build.log for details. Retry with --force to force install it.


Please what can I do ??

I must say the impression one gets is not very favorable for Perl (sorry...)
cpanm is not just a tool that may go wrong, it's the main install/upgrade tool for perl packages as I understand and it should work ok


Best regards,

E.Sarmas
Subject: Re: [rt.cpan.org #99326] http fetch bugs in cpanm
Date: Mon, 06 Oct 2014 15:32:30 +0200
To: bug-Perl-Dist-Strawberry@rt.cpan.org
From: Karel Miko <kmx@cpan.org>
Hi, the trouble here is that Alien-wxWidgets build script tries to download some files (probably Wxwidget source tarball) from sourceforge.net server. Unfortunately at the time you have tried it the sourceforge.net server (not a perl server not a strawberry perl server) responded with error "500 Internal Server Error" As you have realized the workaround is to try it again. The more bulletproof fix might be implemented at Alien-wxWidgets's side where their build script might repeatedly retry the download in case of failure. Anyway neither cpanm nor strawberry perl can do much about this as it is simply caused by unreliable and/or overloaded sourceforge.net server. -- kmx
Subject: Re: [rt.cpan.org #99326] http fetch bugs in cpanm
Date: Mon, 6 Oct 2014 22:36:36 +0300
To: bug-Perl-Dist-Strawberry@rt.cpan.org
From: Ev Sarmas <esarmas@gmail.com>

Hi!

Thanks for reply but i think it was rather hasty compounded by the fact that the log output is not so well worded perhaps.

If you look after the 500 error, there is further error report from the same line number (!) that the http code received was 301 when expecting 200 and indeed
if you try on Chrome the link

http://prdownloads.sourceforge.net/wxwindows/wxWidgets-3.0.0.tar.bz2

you easily get the package after a redirect to another url ...

the 500 code seems not to be real (!) since you cannot get both 500 and 301

Also remains my note #1 about the many trials needed to download from the cpan.org site.

I am surprised. These packages seem to be important requirements for an important distribution which is Padre. How do other people install Padre ? Have they noticed no problem ??!

Best Regards,

E.Sarmas

On 6 Oct 2014 16:32, "kmx via RT" <bug-Perl-Dist-Strawberry@rt.cpan.org> wrote:
Show quoted text
<URL: https://rt.cpan.org/Ticket/Display.html?id=99326 >

Hi,

the trouble here is that Alien-wxWidgets build script tries to download
some files (probably Wxwidget source tarball) from sourceforge.net server.

Unfortunately at the time you have tried it the sourceforge.net server (not
a perl server not a strawberry perl server) responded with error "500
Internal Server Error"

As you have realized the workaround is to try it again.

The more bulletproof fix might be implemented at Alien-wxWidgets's side
where their build script might repeatedly retry the download in case of
failure.

Anyway neither cpanm nor strawberry perl can do much about this as it is
simply caused by unreliable and/or overloaded sourceforge.net server.

--
kmx


I am afraid I am not help your more with this issue as I do not regard it a Strawberry perl bug. Therefore closing.


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.