Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 11276
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: david [...] kineticode.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



To: bug-cpanplus [...] rt.cpan.org
From: David Wheeler <david [...] kineticode.com>
Subject: Inconsistent Source Files
Date: Fri, 28 Jan 2005 08:30:42 -0800
I have four servers on which I routinely install modules from CPAN using CPANPLUS. They all use the same mirrors, and yet they are inconsistently up-to-date. For example, I wanted to install my new module this morning, Class::Delegator. On my Mac, I got: ============================================================ CPAN Terminal> x --update_source [MSG] Checking if source files are up to date [MSG] Updating source file '01mailrc.txt.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt.gz' [MSG] Updating source file '03modlist.data.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/modules/03modlist.data.gz' [MSG] Updating source file '02packages.details.txt.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/modules/02packages.details.txt.gz' [MSG] Rebuilding author tree, this might take a while [MSG] Rebuilding module tree, this might take a while CPAN Terminal> i Class::Delegator Installing Class::Delegator ... ============================================================ It then successfully installed. On my Linux box, however (behind the same IP, FWIW), I got: CPAN Terminal> x --update_source [MSG] Checking if source files are up to date [MSG] Updating source file '01mailrc.txt.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt.gz' [MSG] Updating source file '03modlist.data.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/modules/03modlist.data.gz' [MSG] Updating source file '02packages.details.txt.gz' [MSG] Trying to get 'ftp://ftp.cpan.org/pub/CPAN/modules/02packages.details.txt.gz' [MSG] Rebuilding author tree, this might take a while [MSG] Rebuilding module tree, this might take a while CPAN Terminal> i Class::Delegator [ERROR] 'Class::Delegator' does not contain an author part [ERROR] Cannot find 'Class::Delegator' in the module tree No such module: Class::Delegator No modules found to operate on! Nothing done ============================================================ Note that they're using *exactly* the same URLs to grab the source files. The files are not, however, the same. On my Mac: -rw-r--r-- 1 david david 94464 28 Jan 08:03 01mailrc.txt.gz -rw-r--r-- 1 david david 2349085 28 Jan 08:03 02packages.details.txt -rw-r--r-- 1 david david 335994 28 Jan 08:03 03modlist.data And on my Linux box: -rw-rw-r-- 1 david david 94464 Jan 28 08:21 01mailrc.txt.gz -rw-rw-r-- 1 david david 332851 Jan 28 08:21 02packages.details.txt.gz -rw-rw-r-- 1 david david 95614 Jan 28 08:21 03modlist.data.gz Note how much smaller 02packages.details.txt.gz and 03modlist.data.gz are? Could CPANPLUS be caching older files or something? I tried to install the latest version of DateTime today, too, and much to my surprise, on my Linux box, it installed version 0.22, which was released 2004-07-23. There have been three releases since then, including one yesterday! So could CPANPLUS be caching older or incomplete source files somewhere? And why on only some boxes and not others? FWIW, I didn't have this problem with 0.0499. Regards, David
From: "Jos I. Boumans" <kane [...] dwim.org>
Subject: Re: [cpan #11276] Inconsistent Source Files
Date: Fri, 28 Jan 2005 17:42:09 +0100
To: bug-CPANPLUS [...] rt.cpan.org
RT-Send-Cc:
On Jan 28, 2005, at 5:42 PM, David Wheeler via RT wrote: Show quoted text
> > This message about CPANPLUS was sent to you by david@kineticode.com > <david@kineticode.com> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=11276 > > > I have four servers on which I routinely install modules from CPAN > using CPANPLUS. They all use the same mirrors, and yet they are > inconsistently up-to-date. For example, I wanted to install my new > module this morning, Class::Delegator. On my Mac, I got: > > ============================================================ > CPAN Terminal> x --update_source > > [MSG] Checking if source files are up to date > [MSG] Updating source file '01mailrc.txt.gz' > [MSG] Trying to get > 'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt.gz'
Note that 'ftp.cpan.org' is a round robin, which sends you to one of any number of mirrors behind it. So most likely, you're not ending up at the same physical machine everytime. Show quoted text
> Note how much smaller 02packages.details.txt.gz and 03modlist.data.gz > are? Could CPANPLUS be caching older files or something? I tried to > install the latest version of DateTime today, too, and much to my > surprise, on my Linux box, it installed version 0.22, which was > released 2004-07-23. There have been three releases since then, > including one yesterday! > > So could CPANPLUS be caching older or incomplete source files > somewhere? And why on only some boxes and not others? FWIW, I didn't > have this problem with 0.0499.
Try setting your mirror to say, ftp.funet.fi, or something else that's not roudn robin or loadbalanced machine, and see if it persists.. nothing in the code would support the behaviour you described. -- Jos Boumans "Two rules to success in life: 1. Don't tell people everything you know" --Sassan Tat CPANPLUS http://cpanplus.sf.net