From owner-freebsd-current@freebsd.org Wed Aug 28 22:40:37 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 248E5E8504 for ; Wed, 28 Aug 2019 22:40:37 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46JggS2ZwZz3KgR for ; Wed, 28 Aug 2019 22:40:36 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1567032035; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=iCjjQ4EdFr/ChpTHggaKU8gvuvw5T1eD4+MzNouKEcxAQKNKwVIDBidtUmmXrj+RxbRqw1WwSUS8/ NeHJBLSNBDwv9xiqbyoZ7vPI/263XdyFwQ618X1u5uRE7bcjpFUkCjEG+4iWBi9pHuujf7ZjceKAIA 9NMRA5wrCS66QubFahbfczd6Ga+HJsD95A26HFF4XoewVgCSeU+fQpDfC3HgF4QpWv0l3/L9Sxx4ns LrYRAhD4EEUB2/Is4Zc0ddJP7LniKFWjh9Fm7atZzBcbAGpK5tzLoyxXYJNs583GiULt7w6uL446Jt RC23MJbU7q35+B2Vw6JApsyz/dB7hZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=V6FSlKw8hRXyFTKKDYBJL/eJrNDQP6u4ISW0TLIap0I=; b=t4sde2nDjTpdP/4Uu7qqNSfFLFrLgck/JlN3W015newv/AAFsfSV5Bv9F/tJYu/O3++lqyuKh1JYj XUFm85gH8CBG/kXGeItT1Ksx5N8Urz/JaVynC+3tkgZ322bkjhEKfsFKBIWkToBN5SqVjimZOu45pR pCHPiNWKPzwR5s2LKR4Lsz6jqAKYluUMIE//+S8fnMAZqpvj7XdDXpcdGzdUOD20Jlep3S+elyePbc IM7i7VYDTXt6nft/iUTzCdQEWiViH4787tuBCU9hsx30O6HXKEic6pLXe5p1yXD2tqO6TV6QrWA8QH 7ubcYlqi6w5bT0MORiUF3u/P9NQV4DQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=V6FSlKw8hRXyFTKKDYBJL/eJrNDQP6u4ISW0TLIap0I=; b=uKnWZ9ZMplG1BoXJUYqWKbYx3YettQ1mJxJOKJKfg/ECGupPxur7p9iH6ix7FzewP478q2g2UZzJ0 9KzuQMyjwCIvGY8v9gujOVwlXgRR1PU3rbOCttwTDQ6YT6lAH83WIWOHx/fejLoKBtRxJ1Uz0xpthx xNnoeNb2qKG7/LSwrPQndoSXfuqZAh+ejyrANhQcXVYsGxdjY0XNIncuGSCi5674mhTVU3ODgXaO1F 3nNBh9XNdCGyFuuVbhUer6DBlxOD4DOefTbb7WHxLlKZnLBort62KeuSvTLrV1WfJi+fBur1FmWN6B pM6WjItUWIu/40IpRJxcDZ7Z5olgH1Q== X-MHO-RoutePath: aGlwcGll X-MHO-User: d83deaaa-c9e4-11e9-b67b-cdd75d6ce7a8 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id d83deaaa-c9e4-11e9-b67b-cdd75d6ce7a8; Wed, 28 Aug 2019 22:40:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x7SMeWK0014752; Wed, 28 Aug 2019 16:40:32 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: Lost user database after bungled upgrade From: Ian Lepore To: Ryan Stone , Gary Palmer Cc: FreeBSD Current Date: Wed, 28 Aug 2019 16:40:32 -0600 In-Reply-To: References: <20190828212021.GA66282@in-addr.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46JggS2ZwZz3KgR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] 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:40:37 -0000 On Wed, 2019-08-28 at 18:09 -0400, Ryan Stone wrote: > 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. > > PR 223751 suggests that perhaps the assert is a side effect of another problem such as a missing file, and fixing that may eliminate the assert. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223751 Or maybe in your case the files are fine and it really is a uid problem. But a "pkg check -s -a" as suggested in the PR couldn't hurt. :) -- Ian > 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 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org"