Re: Problem in fetch

2000-10-27 Thread Harti Brandt

On Thu, 26 Oct 2000, Andrea Campi wrote:

 When trying to install ports, very often I find everything freezes just
 after fetch completes. If I hit ^C and type "make install" again, the
 tarball is there, that's why I say that fetch is already done.
 If I hit ^T, I see fetch sitting in sbwait, the time not increasing.
 
 Any idea?

The same here. It blocks in utimes(2) when trying to set the times on the
fetched file.

No clue. Annoying.

harti
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
  [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Problem in fetch

2000-10-27 Thread Jeroen Ruigrok van der Werven

-On [20001027 10:00], Dag-Erling Smorgrav ([EMAIL PROTECTED]) wrote:
Jeroen Ruigrok van der Werven [EMAIL PROTECTED] writes:
 [Making sure Dag-Erling gets the mail]
 -On [20001026 18:45], Andrea Campi ([EMAIL PROTECTED]) wrote:
  When trying to install ports, very often I find everything freezes just
  after fetch completes. If I hit ^C and type "make install" again, the
  tarball is there, that's why I say that fetch is already done.
  If I hit ^T, I see fetch sitting in sbwait, the time not increasing.
 Just a note, I got the same thing under 4-STABLE with the latest
 sources.

Weird. I develop libfetch on -STABLE these days, and have no such problems.

I guess it is some sites again.  I don't have the problem with every
http or ftp site.

Does this only happen with FTP documnts, BTW? I recently changed the
FTP code so it waits for the status code to arrive on the control
socket when the transfer is complete (so that connection caching will
work). That may be the problem; try setting FETCH_CMD to 'fetch -T60'
and see if it times out after sixty seconds.

Might be, cannot be sure 100% right now, from memory, I'd say yes.

The vim6 port for one is problematic.

 I'll get a debug/verbose dump for you tomorrow DES.

Thanks!

No problem.

Everybody else, if you don't know how to do this:

# cd /usr/src/lib/libfetch  make clean  make obj  \
make depend -DDEBUG  make -DDEBUG  make install

then run fetch with -vv, and you'll get a full transcript of the
session (note that this can be quite a lot when fetching a
chunk-encoded HTTP document)

[10:28] [root@lucifer] (7) {1} # FETCH_CMD='fetch -vv -T60' make fetch 
 vim-6.0j-rt.tar.gz doesn't seem to exist in /usr/ports/distfiles/vim.
 Attempting to fetch from
 ftp://ftp.prz.tu-berlin.de/pub/unix/editors/vim/unreleased/unix/.
looking up ftp.prz.tu-berlin.de
connecting to ftp.prz.tu-berlin.de:21
fetch: vim-6.0j-rt.tar.gz: File unavailable (e.g., file not found, no
access)
 Attempting to fetch from ftp://ftp.vim.org/pub/vim/unreleased/unix/.
looking up ftp.vim.org
connecting to ftp.vim.org:21
setting passive mode
opening data connection
initiating transfer
fetch: remote: 1266150 / 972245439
Receiving vim-6.0j-rt.tar.gz (1266150 bytes): 100%
1266150 bytes transferred in 2.3 seconds (540.03 kBps)
/usr/ports/editors/vim6
[10:29] [root@lucifer] (8) {0} # 

It timed out after the 60 seconds had passed.

DEBUG output:

[10:43] [root@lucifer] (30) {0} # FETCH_CMD='fetch -vv -T60' make fetch 
 vim-6.0j-src.tar.gz doesn't seem to exist in
 /usr/ports/distfiles/vim.
 Attempting to fetch from
 ftp://ftp.prz.tu-berlin.de/pub/unix/editors/vim/unreleased/unix/.
scheme:   [ftp]
user: []
password: []
host: [ftp.prz.tu-berlin.de]
port: [0]
document: [/pub/unix/editors/vim/unreleased/unix/vim-6.0j-src.tar.gz]
--- ftp.prz.tu-berlin.de:21
looking up ftp.prz.tu-berlin.de
connecting to ftp.prz.tu-berlin.de:21
 220 ProFTPD 1.2.0pre8 Server (ftp.prz.tu-berlin.de) [kumpel.prz.tu-berlin.de]
 USER ftp
 331 Anonymous login ok, send your complete e-mail address as password.
 PASS [EMAIL PROTECTED]
 230 Anonymous access granted, restrictions apply.
 TYPE I
 200 Type set to I.
 CWD /pub/unix/editors/vim/unreleased/unix
 550 /pub/unix/editors/vim/unreleased/unix: No such file or directory
fetch: vim-6.0j-src.tar.gz: File unavailable (e.g., file not found, no access)
 Attempting to fetch from ftp://ftp.vim.org/pub/vim/unreleased/unix/.
scheme:   [ftp]
user: []
password: []
host: [ftp.vim.org]
port: [0]
document: [/pub/vim/unreleased/unix/vim-6.0j-src.tar.gz]
--- ftp.vim.org:21
looking up ftp.vim.org
connecting to ftp.vim.org:21
 220-Welcome to the FTP archive of The Netherlands Unix Users Group, NLUUG.
 220-
 220-This server is located in The Netherlands, Europe.
 220-If you are abroad, please find an ftp site near you.
 220-Most information on this site is mirrored.
 220-
 220-Information about your login and any transfers you do are logged.
 220-If you don't like this, disconnect now.
 220-
 220-There are currently 153 users logged in (maximum 175).
 220-
 220-You may login as "ftp" or "anonymous".
 220-
 220 ftp.nluug.nl FTP server (Version wu-2.6.0(1) Fri Jun 23 09:17:44 EDT 2000) 
ready.
 USER ftp
 331 Guest login ok, send your complete e-mail address as password.
 PASS [EMAIL PROTECTED]
 230 Guest login ok, access restrictions apply.
 TYPE I
 200 Type set to I.
 CWD /pub/vim/unreleased/unix
 250-Unreleased versions of Vim - Vi IMproved - for Unix et al.
 250-
 250-The files in this directory contain test versions for Unix systems.
 250-Get both the "src" and the "rt" (runtime) archive!
 250-These are also used for VMS, BeOS, OS/2, Mac, etc., in combination
 250-with the "extra" archive (in ../extra).
 250-
 250-Ctags is no longer included.  See http://ctags.sourceforge.net.
 250-A copy of the sources is in the "extra" directory.
 250-
 250- SIZEFILE  CONTENTS
 250-1266150  vim-6.0j-rt.tar.gzruntime files for version 6.0j
 

RE: Problem in fetch

2000-10-26 Thread Andrea Campi

Sorry to follow up on myself... I forgot to mention this is -CURRENT,
updated to a couple of days ago...

 -Original Message-
 From: Andrea Campi 
 Sent: Thursday, October 26, 2000 6:44 PM
 To: '[EMAIL PROTECTED]'
 Subject: Problem in fetch
 
 
 When trying to install ports, very often I find everything 
 freezes just after fetch completes. If I hit ^C and type 
 "make install" again, the tarball is there, that's why I say 
 that fetch is already done.
 If I hit ^T, I see fetch sitting in sbwait, the time not increasing.
 
 Any idea?
 
 --
 You can have it soon, cheap and working. Choose *two*, not three!
 
 Andrea Campi
 Network Administrator
 World Online S.rl.
 V. Montecuccoli, 20 - 20132 Milano, Italy
 
 Tel. +39 02 483293.1
 Fax. +39 02 483293.601
 --
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Problem in fetch

2000-10-26 Thread Jeroen Ruigrok van der Werven

[Making sure Dag-Erling gets the mail]

-On [20001026 18:45], Andrea Campi ([EMAIL PROTECTED]) wrote:
When trying to install ports, very often I find everything freezes just
after fetch completes. If I hit ^C and type "make install" again, the
tarball is there, that's why I say that fetch is already done.
If I hit ^T, I see fetch sitting in sbwait, the time not increasing.

Just a note, I got the same thing under 4-STABLE with the latest
sources.

You can run fetch with more verbosity.  See what that does.

I'll get a debug/verbose dump for you tomorrow DES.

-- 
Jeroen Ruigrok van der Werven  Network- and systemadministrator
[EMAIL PROTECTED]VIA Net.Works The Netherlands
BSD: Technical excellence at its best  http://www.via-net-works.nl
There is such a thing as a man being too proud to fight...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message