From owner-freebsd-current@freebsd.org Wed Aug 28 22:09:39 2019 Return-Path: Delivered-To: freebsd-current@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 5F37EE7CA8 for ; Wed, 28 Aug 2019 22:09:39 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 46Jfzl1wCGz3JKJ; Wed, 28 Aug 2019 22:09:39 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-qk1-x729.google.com with SMTP id w18so1251400qki.0; Wed, 28 Aug 2019 15:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/H2+PT7qoU9+RsCwNpqeH+9Bfz6VD4YOyMpGwsExoo0=; b=cs1t3+KQvoqmFzcjyMVnSaQsQI3HTqFOBoeSHe7EPjLI7cGyt3vRQDVGH4WGE0kqJk mgQMVPcZ4cdedfFNmj838tjH80sPozfdbcE6oIJSLFuN1bYvL11DQF/+qm8ZIfkZx/dL D2TTh++WFVVZfLJwZ/3om+PHooaV4JWrNXNNugD3DMEdFWkOFF8c4dRrWqyRoNnVbnu9 IuBY4LmKTBFTvl7bRKFAQDRoz1yzPSiav95WmTXybwd3U4fEyYo9gISUwWknCQEn3KnE Ck9Rt9QHD5vfJ9TMYxW4XYoeP+fR14v3EyAhfmJOSXbH9CWsRCRFmqbBPagc0INKIII9 I2Dg== 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=/H2+PT7qoU9+RsCwNpqeH+9Bfz6VD4YOyMpGwsExoo0=; b=R3Coxstcb8FBIJqjYaWS/n9SOfFv0kU/oe/bkgWWMp4jsD2LY/hjnXHmfzv+Jlfhgf CDB4RKmEpSU1m8WjtENriR89CHOSq7PHIi9ajbetb39yUWyp/+eCiLanrGw1KsNmJYi7 fwyXiAeLsYB1CQVVsuccMBTo/wHdrX662DwUj0vUE8IpefS2e+B3I01tQXY8W2SDFvRL PoLUjXsh2FZ6BPCytiSCyPsiTxuhlQI4XJ38VvXrYBSpiU4sXezPeRQJqG9waly0Hc4j PfMhSOc+MOjPNYt89KEG/aky1xp7r7JeuJn6RZgRxF9Neb2M3cwEIJTyMF3CR8iDzh+V 3OuQ== X-Gm-Message-State: APjAAAWSUN/WRGI4gJrxauxr7djW1Q0eoTvDLFpTGksnK8bW8XB4bsM8 LXrEf4eBFT3AlJGEeZ01TQ0+XyLx9ujZPYSOJ4PMKQ== X-Google-Smtp-Source: APXvYqyzljQw/xkNqcJkxaQcE/E7aA6NkZJHJR5gLOIpLOFRgTypDFyktxifzz9HwZ5pk8E3TcL3GwbPJzEHBVM8R1U= X-Received: by 2002:a37:883:: with SMTP id 125mr5799766qki.478.1567030177904; Wed, 28 Aug 2019 15:09:37 -0700 (PDT) MIME-Version: 1.0 References: <20190828212021.GA66282@in-addr.com> In-Reply-To: <20190828212021.GA66282@in-addr.com> From: Ryan Stone Date: Wed, 28 Aug 2019 18:09:26 -0400 Message-ID: Subject: Re: Lost user database after bungled upgrade To: Gary Palmer Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46Jfzl1wCGz3JKJ X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.988,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2019 22:09:39 -0000 Thanks for the hint; I wasn't aware of /var/backups. Unfortunately fixing my user database at this point hasn't fixed pkg. I'm worried that it has some bad data cached somewhere now. I tried restoring the pkg databack from /var/backups but that hasn't helped. On Wed, Aug 28, 2019 at 5:20 PM Gary Palmer wrote: > > On Wed, Aug 28, 2019 at 05:09:35PM -0400, Ryan Stone wrote: > > Hi everybody, > > > > I lost /etc/master.passwd and friends while trying to recover from an > > src upgrade gone wrong. I'm trying to run "pkg upgrade -f" to get all > > of the users and groups created by packages recreating, but pkg is > > hitting an assert related to uids: > > > > Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), > > function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, > > line 386. > > > > Is there any way to get past this, or is the system toast? > > Did you try restoring from the backups under /var/backups? There should > be master.passwd in there which can be restored and /etc/passwd and > the DB files regenarated with pwd_mkdb (I think, never tried) > > Regards, > > Gary