Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2009 07:25:41 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        freebsd-questions@freebsd.org, Pieter Donche <Pieter.Donche@ua.ac.be>
Subject:   Re: port / portupgrade hangs
Message-ID:  <200903020725.41765.kstewart@owt.com>
In-Reply-To: <Pine.GSO.4.63.0903021547340.5051@hmacs.cmi.ua.ac.be>
References:  <Pine.GSO.4.63.0903021547340.5051@hmacs.cmi.ua.ac.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 02 March 2009 06:54:21 am Pieter Donche wrote:
> Sometimes (not often) when installing ports from the ports collection or
> upgrading ports (via portupgrade -R) when fetching some needed tar.gz
> file, the fetch hangs, just like now:
>
> => rdiff-backup-1.2.6.tar.gz doesn't seem to exist in
> /usr/ports/distfiles/.
> => Attempting to fetch from
> http://download.savannah.gnu.org/releases/rdiff-backup/.
> fetch:
> http://download.savannah.gnu.org/releases/rdiff-backup/rdiff-backup-1.2.6.t
>ar.gz: Moved Temporarily
> => Attempting to fetch from
> http://ftp.cc.uoc.gr/mirrors/nongnu.org/rdiff-backup/.
> rdiff-backup-1.2.6.tar.gz                      43% of  191 kB  107 kBps
>
> This is now immobile for over an hour ...
>
> Up to now when such a hang occured, I just waited and waited and
> eventually it would continue and finish the job.
>
> But, is there a safe way to do a retry?
> I dare not just do a Ctrl-C and issue
> # portupgrade -R rdiff-backup
> again, since I have no no clue what could go wrong if one does that ...
>
> Or is it save to do Ctrl-C and try again?

It should be safe to do the Ctrl-c. You are doing a fetch. What can go wrong? 
If you only have a partial distfile, and portupgrade can't handle that, at 
the worst, you cd /usr/ports/distfiles, remove the partial file, and try 
again. Things only get messy if you kill a job during an install. Since 
nothing has been added to the port database, you can probably just install it 
again.

I did a portupgrade -FN rdiff-backup-1.2.6,1 and was able to download the 
distfile. I only saw 18KBps, which I assume means there are a other people 
doing a fetch from that site.

Kent
-- 
kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903020725.41765.kstewart>