Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPAN.pm problems #1042

Closed
p5pRT opened this issue Jan 17, 2000 · 12 comments
Closed

CPAN.pm problems #1042

p5pRT opened this issue Jan 17, 2000 · 12 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 17, 2000

Migrated from rt.perl.org#1993 (status was 'resolved')

Searchable as RT1993$

@p5pRT
Copy link
Author

p5pRT commented Jan 17, 2000

From ilya@math.ohio-state.edu

  perl -MCPAN -e shell

both from home and from work.

From home​: it finishes successfully, but LWP fetch fails, Net​::FTP
fetch succeeds.

From work​: LWP, NetFTP, ncftp and lynx fetches fail. (ncftp one is
understandable, since this version *requires* usage of ncftpget.)

At home​: OS/2, 5.005_53, fetches from ftp.metronet.com.

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

Having no clue,
Ilya

@p5pRT
Copy link
Author

p5pRT commented Jan 18, 2000

From @andk

On Tue, 18 Jan 2000 00​:10​:57 -0500 (EST), Ilya Zakharevich <ilya@​math.ohio-state.edu> said​:

I get strange failures of
perl -MCPAN -e shell

both from home and from work.

From home​: it finishes successfully, but LWP fetch fails, Net​::FTP
fetch succeeds.

From work​: LWP, NetFTP, ncftp and lynx fetches fail. (ncftp one is
understandable, since this version *requires* usage of ncftpget.)
  ^^^^^^^^^^

Oops. Will check.

At home​: OS/2, 5.005_53, fetches from ftp.metronet.com.

metronet is currently taken off the MIRRORED.BY list because they are
facing difficulties. Better you try an alternative.

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

colorado just works from here.

Having no clue,

Neither.
--
andreas

@p5pRT
Copy link
Author

p5pRT commented Jan 18, 2000

From [Unknown Contact. See original ticket]

Andreas J. Koenig writes​:

At home​: OS/2, 5.005_53, fetches from ftp.metronet.com.

metronet is currently taken off the MIRRORED.BY list because they are
facing difficulties. Better you try an alternative.

No problem seen with Net​::FTP. Thus it is an LWP problem.

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

colorado just works from here.

Forgot to add​: both setups worked flawlessly (with LWP) beginning of
December.

Ilya

@p5pRT
Copy link
Author

p5pRT commented Jan 18, 2000

From [Unknown Contact. See original ticket]

On Tue, Jan 18, 2000 at 03​:55​:48PM -0500, Ilya Zakharevich wrote​:

Andreas J. Koenig writes​:

At home​: OS/2, 5.005_53, fetches from ftp.metronet.com.

metronet is currently taken off the MIRRORED.BY list because they are
facing difficulties. Better you try an alternative.

No problem seen with Net​::FTP. Thus it is an LWP problem.

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

colorado just works from here.

Forgot to add​: both setups worked flawlessly (with LWP) beginning of
December.

Ilya

i noticed the exact same thing the other night.. i believe it started after
i upgraded the CPAN bundle. i did a quick check of LWP (just a getprint)
at the time, but i haven't had a chance to look into it more.

--
<BLINK> ;for (74,1970500640,1634627444,1751478816,1348825708,543711587,
1801810465){for($x=1<<1^1;$x>=1>>1;$x--) {$q=hex ff,$r=oct($x=~s,\d,$&amp;*
10,e,$x),$x/=1/.1,$q<<=$r,$s.=chr (($_&$q)>>$r),$t++}}while($= ||= !$|)
{$o=$o?$?​:$/;$|=1;print $o?$s​:$"x$t if$;;print"\b"x$t;sleep 1} </BLINK>

@p5pRT
Copy link
Author

p5pRT commented Jan 18, 2000

From [Unknown Contact. See original ticket]

Andreas J. Koenig writes​:

From home​: it finishes successfully, but LWP fetch fails, Net​::FTP
fetch succeeds.

From work​: LWP, NetFTP, ncftp and lynx fetches fail. (ncftp one is
understandable, since this version *requires* usage of ncftpget.)
^^^^^^^^^^

Oops. Will check.

At home​: OS/2, 5.005_53, fetches from ftp.metronet.com.

metronet is currently taken off the MIRRORED.BY list because they are
facing difficulties. Better you try an alternative.

Same behaviour with other sites. I tried again, and again found no
way to make CPAN emit debug-LWP tracing.

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

colorado just works from here.

Here is the trace​:

Debug(CPAN​:-e,1,[CPAN​::shell|1|UNDEF])​: line[reload|index]
Debug(Shell​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,174,[CPAN​::Shell​::reload|
1|UNDEF])​: self[CPAN​::Shell]command[index]arg[]
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,2653,[CPAN​::FTP​::localize|1
|1])​: file[authors/01mailrc.txt.gz] aslocal[/home/ilya/.cpan/sources/authors/01m
ailrc.txt.gz] force[3]
CPAN​: LWP​::UserAgent loaded ok
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,1965,[CPAN​::FTP​::hosteasy|1
|0])​: localizing perlish[ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailr
c.txt.gz]
Fetching with LWP​:
  ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz
Fetching with Net​::FTP​:
  ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,1965,[CPAN​::FTP​::hosteasy|1
|0])​: getfile[01mailrc.txt.gz]dir[pub/perl/CPAN/authors]host[ftp.cs.colorado.edu
]aslocal[/home/ilya/.cpan/sources/authors/01mailrc.txt.gz]
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,2082,[CPAN​::FTP​::ftp_get|1|
0])​: Going to fetch file [01mailrc.txt.gz] from dir [pub/perl/CPAN/authors]
  on host [ftp.cs.colorado.edu] as local [/home/ilya/.cpan/sources/authors
/01mailrc.txt.gz]

Net​::FTP​: Net​::FTP(2.53)
Net​::FTP​: Exporter
Net​::FTP​: Net​::Cmd(2.16)
Net​::FTP​: IO​::Socket​::INET
Net​::FTP​: IO​::Socket(1.1603)
Net​::FTP​: IO​::Socket(1.1603)
Net​::FTP​: IO​::Handle(1.1505)

Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,2082,[CPAN​::FTP​::ftp_get|1|
0])​: Going to ->login("anonymous","alden@​math.mps.ohio-state.edu")

Net​::FTP=GLOB(0x666fc8)>>> user anonymous
Net​::FTP=GLOB(0x666fc8)<<< 331 Guest login ok, send your complete e-mail address
as password.
Net​::FTP=GLOB(0x666fc8)>>> PASS ....
Net​::FTP=GLOB(0x666fc8)<<< 230- Hello monk.mps.ohio-state.edu, you are 4 out
of a max of 40 users.
Net​::FTP=GLOB(0x666fc8)<<< 230-
Net​::FTP=GLOB(0x666fc8)<<< 230- Welcome to the Computer Science Departmental
FTP server at the
Net​::FTP=GLOB(0x666fc8)<<< 230- University of Colorado, Boulder.
Net​::FTP=GLOB(0x666fc8)<<< 230- Be sure to visit our WWW site, at http​://www.
cs.colorado.edu
Net​::FTP=GLOB(0x666fc8)<<< 230-
Net​::FTP=GLOB(0x666fc8)<<< 230- All transfers are logged with your host name
and email address.
Net​::FTP=GLOB(0x666fc8)<<< 230- If you don't like this policy, disconnect now
!
Net​::FTP=GLOB(0x666fc8)<<< 230-
Net​::FTP=GLOB(0x666fc8)<<< 230- If your FTP client crashes or hangs shortly a
fter login, try using a
Net​::FTP=GLOB(0x666fc8)<<< 230- dash (-) as the first character of your passw
ord. This will turn off
Net​::FTP=GLOB(0x666fc8)<<< 230- the informational messages which may be confu
sing your ftp client.
Net​::FTP=GLOB(0x666fc8)<<< 230-
Net​::FTP=GLOB(0x666fc8)<<< 230- Please e-mail comments, questions, trouble re
ports, and complaints
Net​::FTP=GLOB(0x666fc8)<<< 230- to trouble@​cs.colorado.edu. Please drive saf
Net​::FTP=GLOB(0x666fc8)<<< 230-
Net​::FTP=GLOB(0x666fc8)<<< 230-Please read the file README
Net​::FTP=GLOB(0x666fc8)<<< 230- it was last modified on Fri Apr 12 12​:48​:39 199
6 - 1375 days ago
Net​::FTP=GLOB(0x666fc8)<<< 230-Please read the file README.users
Net​::FTP=GLOB(0x666fc8)<<< 230- it was last modified on Tue Mar 11 10​:16​:07 199
7 - 1043 days ago
Net​::FTP=GLOB(0x666fc8)<<< 230 Guest login ok, access restrictions apply.
Net​::FTP=GLOB(0x666fc8)>>> CWD pub/perl/CPAN/authors
Net​::FTP=GLOB(0x666fc8)<<< 250 CWD command successful.
Net​::FTP=GLOB(0x666fc8)>>> TYPE I
Net​::FTP=GLOB(0x666fc8)<<< 200 Type set to I.
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,2082,[CPAN​::FTP​::ftp_get|1|
0])​: Going to ->get("01mailrc.txt.gz","/home/ilya/.cpan/sources/authors/01mailrc
.txt.gz")

Net​::FTP=GLOB(0x666fc8)>>> PORT 128,146,111,52,152,68
Net​::FTP=GLOB(0x666fc8)<<< 200 PORT command successful.
Net​::FTP=GLOB(0x666fc8)>>> RETR 01mailrc.txt.gz
Net​::FTP=GLOB(0x666fc8)<<< 425 Can't build data connection​: Connection timed out
.
Couldn't fetch 01mailrc.txt.gz from ftp.cs.colorado.edu
Net​::FTP=GLOB(0x666fc8)>>> QUIT
Net​::FTP=GLOB(0x666fc8)<<< 221-You have transferred 0 bytes in 0 files.
Net​::FTP=GLOB(0x666fc8)<<< 221-Total traffic for this session was 1487 bytes in
0 transfers.
Net​::FTP=GLOB(0x666fc8)<<< 221-Thank you for using the FTP service on freestuff.
cs.colorado.edu.
Net​::FTP=GLOB(0x666fc8)<<< 221 Goodbye.
Debug(FTP​:/home/ilya/perl/lib/perl5/5.00503//CPAN.pm,1965,[CPAN​::FTP​::hosteasy|1
|0])​: localizing perlish[ftp​://ftp.duke.edu/pub/perl/authors/01mailrc.txt.gz]
Fetching with LWP​:
  ftp​://ftp.duke.edu/pub/perl/authors/01mailrc.txt.gz
Fetching with Net​::FTP​:

etc.etc.etc

Ilya

@p5pRT
Copy link
Author

p5pRT commented Jan 19, 2000

From [Unknown Contact. See original ticket]

Ilya Zakharevich writes​:

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

Another datapoint​:

lynx ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz

works at home (OS/2), but not at work... I put the lynx trace into
the attachment for you FTP gurus (interrupted by Cntl-C after a long wait).

Ilya

@p5pRT
Copy link
Author

p5pRT commented Jan 19, 2000

From [Unknown Contact. See original ticket]

  Lynx Trace Log (2.8.2dev.14)

LYNX_SIG_FILE set to '/home/ilya/.lynxsig'
Loading cfg file '/opt/local/lib/lynx.cfg'.
HTMLDTD​: Copying DTD element info of size 5192, 118 * 44
ProcessMailcapFile​: Loading file '/usr/local/lib/mosaic/mailcap'.
ProcessMailcapFile​: Could not open '/usr/local/lib/mosaic/mailcap'.
ProcessMailcapFile​: Loading file '/home/ilya/.mailcap'.
ProcessMailcapFile​: Could not open '/home/ilya/.mailcap'.
HTFormat​: Looking up presentation for text/plain to www/present
FindPresentation​: found exact match​: text/plain
HTFormat​: Looking up presentation for text/html to www/present
FindPresentation​: found exact match​: text/html
HTFileInit​: Loading default (HTInit) extension maps.
HTLoadExtensionsConfigFile​: Loading file '/usr/local/lib/mosaic/mime.types'.
HTLoadExtensionsConfigFile​: Could not open '/usr/local/lib/mosaic/mime.types'.
HTLoadExtensionsConfigFile​: Loading file '/home/ilya/.mime.types'.
HTLoadExtensionsConfigFile​: Could not open '/home/ilya/.mime.types'.
HTParse​: aName​:http​://www.math.ohio-state.edu relatedName​:
1
HTParse​: result​:http​://www.math.ohio-state.edu/
LYLoadCookies​: reading cookies from /home/ilya/.lynx_cookies
Window size changed from (24,80) to (38,80)
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
1
HTParse​: result​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz
LYMain.c​: User in REMOTE domain
Entering mainloop, startfile=ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz
getfile​: getting ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz

HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp.cs.colorado.edu

HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:
Entered HTAnchor_findAddress
New anchor 159660 has hash 71 and address `ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz'
HTAccess​: loading document ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:file​:
HTParse​: result​:ftp
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp.cs.colorado.edu
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
1
HTParse​: result​:/pub/perl/CPAN/authors/01mailrc.txt.gz
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp.cs.colorado.edu
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp.cs.colorado.edu
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
HTParse​: result​:ftp.cs.colorado.edu
Looking up ftp.cs.colorado.edu.
HTParseInet​: parsing `ftp.cs.colorado.edu'.
HTParseInet​: Parsed address as port 21, IP address 128.138.243.20
Making FTP connection to ftp.cs.colorado.edu.
FTP connected, socket 5 control 1413608
  Rx​: 220 freestuff.cs.colorado.edu FTP server (Version wu-2.6.0(2) Wed Nov 17 14​:44​:48 MST 1999) ready.
  Tx​: USER anonymous
  Rx​: 331 Guest login ok, send your complete e-mail address as password.
  Tx​: PASS ilya@​
  Rx​: 230- Hello monk.mps.ohio-state.edu, you are 11 out of a max of 40 users.
Adding message to help cache​: Hello monk.mps.ohio-state.edu, you are 11 out of a max of 40 users.

  Rx​: 230-
Adding message to help cache​:

  Rx​: 230- Welcome to the Computer Science Departmental FTP server at the
Adding message to help cache​: Welcome to the Computer Science Departmental FTP server at the

  Rx​: 230- University of Colorado, Boulder.
Adding message to help cache​: University of Colorado, Boulder.

  Rx​: 230- Be sure to visit our WWW site, at http​://www.cs.colorado.edu
Adding message to help cache​: Be sure to visit our WWW site, at http​://www.cs.colorado.edu

  Rx​: 230-
Adding message to help cache​:

  Rx​: 230- All transfers are logged with your host name and email address.
Adding message to help cache​: All transfers are logged with your host name and email address.

  Rx​: 230- If you don't like this policy, disconnect now!
Adding message to help cache​: If you don't like this policy, disconnect now!

  Rx​: 230-
Adding message to help cache​:

  Rx​: 230- If your FTP client crashes or hangs shortly after login, try using a
Adding message to help cache​: If your FTP client crashes or hangs shortly after login, try using a

  Rx​: 230- dash (-) as the first character of your password. This will turn off
Adding message to help cache​: dash (-) as the first character of your password. This will turn off

  Rx​: 230- the informational messages which may be confusing your ftp client.
Adding message to help cache​: the informational messages which may be confusing your ftp client.

  Rx​: 230-
Adding message to help cache​:

  Rx​: 230- Please e-mail comments, questions, trouble reports, and complaints
Adding message to help cache​: Please e-mail comments, questions, trouble reports, and complaints

  Rx​: 230- to trouble@​cs.colorado.edu. Please drive safely.
Adding message to help cache​: to trouble@​cs.colorado.edu. Please drive safely.

  Rx​: 230-
Adding message to help cache​:

  Rx​: 230-Please read the file README
Adding message to help cache​: Please read the file README

  Rx​: 230- it was last modified on Fri Apr 12 12​:48​:39 1996 - 1376 days ago
Adding message to help cache​: it was last modified on Fri Apr 12 12​:48​:39 1996 - 1376 days ago

  Rx​: 230-Please read the file README.users
Adding message to help cache​: Please read the file README.users

  Rx​: 230- it was last modified on Tue Mar 11 10​:16​:07 1997 - 1044 days ago
Adding message to help cache​: it was last modified on Tue Mar 11 10​:16​:07 1997 - 1044 days ago

  Rx​: 230 Guest login ok, access restrictions apply.
HTFTP​: Logged in.
  Tx​: SYST
  Rx​: 215 UNIX Type​: L8
HTFTP​: Treating as Unix server.
HTFTP​: Opened master socket number 6
HTFTP​: This host is 128.146.111.52
HTFTP​: bound to port 39216 on 128.146.111.52
TCP​: Master socket(), bind() and listen() all OK
  Tx​: PORT 128,146,111,52,153,48
  Rx​: 200 PORT command successful.
HTFTP​: Port defined.
HTParse​: aName​:ftp​://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz relatedName​:
1
HTParse​: result​:/pub/perl/CPAN/authors/01mailrc.txt.gz
HTFTP​: UnEscaped /pub/perl/CPAN/authors/01mailrc.txt.gz
  Tx​: TYPE I
  Rx​: 200 Type set to I.
  Tx​: RETR /pub/perl/CPAN/authors/01mailrc.txt.gz

@p5pRT
Copy link
Author

p5pRT commented Jan 20, 2000

From [Unknown Contact. See original ticket]

Andreas J. Koenig writes​:

At work​: Solaris 7, 5.005_03, fetches from ftp.cs.colorado.edu (the
files *are* there).

colorado just works from here.

Turned out to be a new firewall. Setting FTP_PASSIVE in environment
fixes it. However​: could CPAN.pm try passive mode itself?

And the problem of LWP not working from home remains... Any hint on
debugging?

Ilya

@p5pRT
Copy link
Author

p5pRT commented Jan 20, 2000

From @andk

On Thu, 20 Jan 2000 20​:21​:34 -0500 (EST), Ilya Zakharevich <ilya@​math.ohio-state.edu> said​:

Turned out to be a new firewall. Setting FTP_PASSIVE in environment
fixes it. However​: could CPAN.pm try passive mode itself?

I'm not sure if it should. There are many variations of firewalls.

And the problem of LWP not working from home remains... Any hint on
debugging?

cpan> ! use LWP​::Debug qw(+trace +debug)

--
andreas

@p5pRT
Copy link
Author

p5pRT commented Jan 21, 2000

From @jhi

Andreas J. Koenig writes​:

On Thu, 20 Jan 2000 20​:21​:34 -0500 (EST), Ilya Zakharevich <ilya@​math.ohio-state.edu> said​:

Turned out to be a new firewall. Setting FTP_PASSIVE in environment
fixes it. However​: could CPAN.pm try passive mode itself?

I'm not sure if it should. There are many variations of firewalls.

If somebody wants to help Andreas/Graham out and hack firewall support
to CPAN.pm/libnet, I'd say ncftp is a good place to start, it knows
how to negotiate with *many* different firewall configurations. In
the configuration file the various options are even described in
writing, no need to look at the actual ncftp code (I hope).

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2003

From @ask

This ticket stalled. Ilya, please followup on this mail if CPAN is still not working properly
for you.

- ask

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2003

@ask - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant