From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 15:38:57 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C81CD1065672 for ; Mon, 2 Mar 2009 15:38:57 +0000 (UTC) (envelope-from kstewart@owt.com) Received: from smtp.owt.com (smtp.owt.com [66.119.213.2]) by mx1.freebsd.org (Postfix) with ESMTP id 98FCE8FC1C for ; Mon, 2 Mar 2009 15:38:57 +0000 (UTC) (envelope-from kstewart@owt.com) Received: from kstewart2.owt.com (kstewart2.owt.com [64.146.237.228]) (authenticated bits=0) by smtp.owt.com (8.13.8/8.13.8) with ESMTP id n22FPg02004684; Mon, 2 Mar 2009 07:25:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=owt.com; s=default; t=1236007543; bh=sj7xXneTH2m1lGwMr7zt1QpEJHUpxCJ279X20cJ9ang=; h=From:To:Subject:Date:References:In-Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id; b=Tum+qatp1GAPB gXwA7jQepa/hsVUYox39bHmi1GJt3D4aF/mP3OzA+qWgmqc6qXt3DIexkXO5Pa8MTJr Mi4Oog1c8DZVOH7KuraNH2FHFjJQsOtRBQOSkqyus8BwCd0RK4ob6cPeAuRxPrCAoDm 16L0xNW8PAZy0vlH5fk82noo= From: Kent Stewart To: freebsd-questions@freebsd.org, Pieter Donche Date: Mon, 2 Mar 2009 07:25:41 -0800 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903020725.41765.kstewart@owt.com> Cc: Subject: Re: port / portupgrade hangs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 15:38:59 -0000 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