From owner-freebsd-cloud@freebsd.org Mon Apr 20 22:04:05 2020 Return-Path: Delivered-To: freebsd-cloud@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 C51522B1758 for ; Mon, 20 Apr 2020 22:04:05 +0000 (UTC) (envelope-from lwhsu.freebsd@gmail.com) Received: from mail-yb1-f193.google.com (mail-yb1-f193.google.com [209.85.219.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 495ghN5TJmz4CWn for ; Mon, 20 Apr 2020 22:04:04 +0000 (UTC) (envelope-from lwhsu.freebsd@gmail.com) Received: by mail-yb1-f193.google.com with SMTP id n188so6280993ybc.3 for ; Mon, 20 Apr 2020 15:04:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KgoQzM1dZJnTwuwHokp1gSFpB27Lmid3EwmtEbBWntU=; b=nV9QTTqxgx2CPTWGTlRPYs8aMZ6ti6t+9LAJMgBs40PVOeS1WVSt2bZ2APXVBJ2f27 MJb0Z9RoRhLsHcCFFKY79z18r2dDIRUVgmS0BSxGz+VFjL6+FpmZKR4PD7+h4wF9NHR/ 8t9ISx1gEBH1fTUPkXtiKbYKQ2KV7phdpfWLeU0f6N6yXHMf+dRDg0CTVHC4hPCAiRKz TMKrTnCTkTMiP8fGEcQWWGGgyR0b+ZJwfq7+3y+3mu5jWjw0NopmlOsdg2XHOGnYhryb fvx2v/vaiWdmDrrOgkY5iZzs14VmL1V0BNrqs38kjcCPj9RmxbpvJc2IL7f4U/Tky644 K/Hw== X-Gm-Message-State: AGi0PubvSSCMkW9eEEBSxDGXQJTtl2TkQKnGlJYs0t+zJItrTcN2T19g h0qa+djPMkaq7GNQiBdJcX8QfCFtbREDRBrMWCyjplMM X-Google-Smtp-Source: APiQypLOo0xsKah9EYo8QoeeAqddrF7YlJLQfJXqxD3o67DvGMmLN7G7kyOF3EM9h63PfRr19gEkt+w6lFQ4AKwqwjA= X-Received: by 2002:a25:9c83:: with SMTP id y3mr4320413ybo.127.1587420243206; Mon, 20 Apr 2020 15:04:03 -0700 (PDT) MIME-Version: 1.0 References: <66e37bf4-bcd7-4c49-89f8-1fe05fb4f6cc@www.fastmail.com> In-Reply-To: <66e37bf4-bcd7-4c49-89f8-1fe05fb4f6cc@www.fastmail.com> From: Li-Wen Hsu Date: Tue, 21 Apr 2020 06:03:51 +0800 Message-ID: Subject: Re: Instance of 11.3 got "pkg: repository meta has wrong version 2" To: Dan Langille Cc: "freebsd-cloud@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 495ghN5TJmz4CWn X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of lwhsufreebsd@gmail.com designates 209.85.219.193 as permitted sender) smtp.mailfrom=lwhsufreebsd@gmail.com X-Spamd-Result: default: False [-2.18 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[193.219.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; IP_SCORE(-0.19)[ip: (-0.06), ipnet: 209.85.128.0/17(-0.40), asn: 15169(-0.43), country: US(-0.05)]; FORGED_SENDER(0.30)[lwhsu@freebsd.org,lwhsufreebsd@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[193.219.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[lwhsu@freebsd.org,lwhsufreebsd@gmail.com]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 22:04:05 -0000 On Tue, Apr 21, 2020 at 5:43 AM Dan Langille wrote: > > On Mon, Apr 20, 2020, at 4:46 PM, Li-Wen Hsu wrote: > > > The background is some users reported that when launch instance of > > 11.3, pkg doesn't work at all and the error message is: "pkg: > > repository meta has wrong version 2" > > This affects non-cloud users. I've encountered it on 12.1 release after > an upgrade from 12.0 or 11.3, not sure which. > > We are using our own repo. > > We found 'pkg bootstrap -f' fixed it for us: > > re: https://forums.freebsd.org/threads/pkg-update-error.74260/ That sounds very possible. It can happen if the pkg itself didn't get upgraded for a long time (which won't happen automatically on a base update), and the self hosted pkg repo already created by the latest pkg. For the cloudware, I have this patch to sysutils/firstboot-pkgs and hope it helps: https://reviews.freebsd.org/D24517 Best, Li-Wen