From owner-freebsd-questions@freebsd.org Mon Jan 4 15:15:53 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7B0C64D8D15 for ; Mon, 4 Jan 2021 15:15:53 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from mx-p1.obspm.fr (mx-p1.obspm.fr [145.238.193.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "*.obspm.fr", Issuer "GEANT OV RSA CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8fMr2tB5z4qXq for ; Mon, 4 Jan 2021 15:15:52 +0000 (UTC) (envelope-from Albert.Shih@obspm.fr) Received: from io.chezmoi.fr (vpn.obspm.fr [145.238.186.39]) (authenticated bits=0) by mx-p1.obspm.fr (8.15.2/8.15.2/DIO Observatoire de Paris - 15/04/10) with ESMTPSA id 104FFmO4111852 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 4 Jan 2021 16:15:50 +0100 Date: Mon, 4 Jan 2021 16:15:48 +0100 From: Albert Shih To: freebsd-questions@freebsd.org Subject: pkg update timeout Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (mx-p1.obspm.fr [145.238.193.20]); Mon, 04 Jan 2021 16:15:50 +0100 (CET) X-Virus-Scanned: clamav-milter 0.102.4 at mx-p1.obspm.fr X-Virus-Status: Clean X-Rspamd-Queue-Id: 4D8fMr2tB5z4qXq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of Albert.Shih@obspm.fr designates 145.238.193.20 as permitted sender) smtp.mailfrom=Albert.Shih@obspm.fr X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[obspm.fr]; RCVD_IN_DNSWL_MED(-0.20)[145.238.193.20:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2200, ipnet:145.238.0.0/16, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2021 15:15:53 -0000 Hi Stupid question but, I try to set up a FETCH_TIMEOUT and FETCH_RETRY for pkg update. The reason is we use our own poudriere server. And from time to time the poudriere server are down. Not big deal but during this time the pkg won't give up until don't_know_how_long. And because we using puppet to manage all server, the puppet agent won't work because he wait the pkg update to finish. So I try : FETCH_TIMEOUT: FETCH_RETRY fetch_timeout fetch_retry in /usr/local/etc/pkg.conf in /usr/local/etc/pkg/repos/myrepos.conf in env in bash Force pkg to use /usr/local/etc/pkg.conf. but the pkg update never end, and if I add «-d» flag I can see the pkg still waiting the libfetch to finish. Anyone known where should I put those options ? Thanks Regards -- Albert SHIH DIO bātiment 15 Observatoire de Paris xmpp: jas@obspm.fr Heure local/Local time: Mon Jan 4 04:09:20 PM CET 2021