Date: Wed, 28 Aug 2019 18:09:26 -0400 From: Ryan Stone <rysto32@gmail.com> To: Gary Palmer <gpalmer@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Lost user database after bungled upgrade Message-ID: <CAFMmRNy40KG0QcFMmx9e2BKeWPb_3yKtoJa9jddYotGQ6jwD0Q@mail.gmail.com> In-Reply-To: <20190828212021.GA66282@in-addr.com> References: <CAFMmRNy4aj7A0aqrKEpjYzP1TW_h7cUDp2Gm%2BnABD=H01FxFzA@mail.gmail.com> <20190828212021.GA66282@in-addr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <gpalmer@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNy40KG0QcFMmx9e2BKeWPb_3yKtoJa9jddYotGQ6jwD0Q>