From nobody Sun Sep 4 17:24:06 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MLJRQ1CR2z4cGQY for ; Sun, 4 Sep 2022 17:24:18 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MLJRP0Q7Nz3yZq for ; Sun, 4 Sep 2022 17:24:16 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from smtpclient.apple ([IPv6:2601:602:87f:b05d:b920:bbbd:43e0:cf48]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 284HOBnn054081 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 4 Sep 2022 10:24:12 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 284HOBnn054081 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1662312253; bh=THnRM7NTgWQThwhMMXdtVcZfQWiRSKuez40BX6aVvu8=; h=From:Subject:Date:In-Reply-To:Cc:To:References; z=From:=20Dan=20Mahoney=20|Subject:=20Re:=20Free BSD=2012.2=20can=20not=20be=20upgraded|Date:=20Sun,=204=20Sep=2020 22=2010:24:06=20-0700|In-Reply-To:=20|Cc:=20"freebsd-questions@freebsd.o rg"=20|To:=20Doug=20Denault=20|References:=20; b=SBmUTwbXsGwCyftFY2G8SjG2SGpdkEZzGfAdyQzEB4tJUL8fVFMO+yZY66AE5ALu7 m2ptLKs/ykbQI30J9dCC3gMZHfykGCTo838xOfCY/GQFh/Tt4sNb4duf5J/yOhW7u9 XfhHVEH614S5Yhm2NbrWjUU84120KJjaRn1Hcjelo/JEQoYIhURPzRCuE6RnEj/tWo LEJ5PJjZUZwQXa0bqdkIO+Be3m+bUjiWqWg6fpp0u1Q3u1xLoOSVTTOV+Bx/Fo1bPg k9r3xGrn5XMAWJDk3QEgJTnBcgZyiHxJKIzEzRLqGReuwtni+CLqTzYHAuBEU96H+E 7uWYSj9FnVl8A== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:87f:b05d:b920:bbbd:43e0:cf48] claimed to be smtpclient.apple From: Dan Mahoney Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_36764694-2D26-4F46-9C8A-ACA398C8484E" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: FreeBSD 12.2 can not be upgraded Date: Sun, 4 Sep 2022 10:24:06 -0700 In-Reply-To: Cc: "freebsd-questions@freebsd.org" To: Doug Denault References: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MLJRP0Q7Nz3yZq X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=SBmUTwbX; dmarc=pass (policy=none) header.from=gushi.org; spf=pass (mx1.freebsd.org: domain of freebsd@gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=freebsd@gushi.org X-Spamd-Result: default: False [-5.20 / 15.00]; DWL_DNSWL_MED(-2.00)[gushi.org:dkim]; URI_COUNT_ODD(1.00)[5]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; RCVD_IN_DNSWL_MED(-0.20)[2620:137:6000:10::142:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.ORG]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; HAS_XAW(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gushi.org:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_36764694-2D26-4F46-9C8A-ACA398C8484E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Sep 4, 2022, at 10:05, Doug Denault wrote: >=20 > There was a long thread on this. My observations and questions are = more about how to update production systems. My long standing update = path is to update my FreeBSD workstations. If that goes okay we some = servers on out LAN that we update next. >=20 > I ran `freebsd-update -r 12.3-RELEASE upgrade` which converted my = laptop essentially into a paperweight by the introduction a bad copy of = ld-elf.so.1. The system would boot, but most useful commands (think cp) = exited with an error. This is all documented via google with no = successful work arounds that I could fine. What you can not do is = `freebsd-update rollback`. I though I could maybe fix this by going to = single user and overwriting ld-elf.so.1. This can not be done as all = commands depend on this file. >=20 > I created image files from: >=20 > FreeBSD-12.3-RELEASE-amd64-dvd1.iso (4+GB) > FreeBSD-12.3-RELEASE-amd64-memstick.img ~1GB >=20 > Neither of these images are self contained. Both install 12.3 = correctly but by downloading the OS from a mirror site of your choosing. = Is there a path thought the dvd1 install that does something with the = extra 3GB of data? Does the dvd1.iso image have to be burned to a DVD? dvd1 includes a bunch of extra local packages, it's otherwise identical = to cd1. You should have a bunch of static binaries in /rescue which include cp. I've been bitten by this several times in the past (on machines in = faraway countries, where my only access was a serial console), where all = of a sudden midway through a freebsd update install I'll just see a = bunch of segfaults, and I'm still not sure what's happening to cause it, = but my solution has been to *before I update* grab a spare tar file for = base.txz for my target OS, just in case. > My am not sure what is the philosophy of deleting the supporting files = so quickly. Other than making a system from backup is there a way to = install an older version? Yes. Grab the base.txz files from ftp.freebsd.org = or ftp-archive.freebsd.org = , or from your boot cdrom. Untar them = over /, and you should have a working linker back. I would not call = that "a production system" but it should be stable enough to let your = system attempt to redo the upgrade. Yes, freebsd-update is bad at recovering from this failure mode. The = rollback function really is only good for rolling back patchlevels, not = major upgrades. Nor does it have a "wait, you're a shell script, please = just use the static files in /rescue, and re-attempt the install" = function. FreeBSD really should have "ftp" or "fetch" or "scp" or something in = /rescue, but there is at least nc, which you can use to get a file on to = the box, albeit slowly. -Dan= --Apple-Mail=_36764694-2D26-4F46-9C8A-ACA398C8484E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Sep 4, 2022, at 10:05, Doug Denault <doug@safeport.com> = wrote:

There was a long thread on this. My observations and = questions are more about how to update production systems. My long = standing update path is to update my FreeBSD workstations. If that goes = okay we some servers on out LAN that we update next.

I ran `freebsd-update -r 12.3-RELEASE upgrade` which = converted my laptop essentially into a paperweight by the introduction a = bad copy of ld-elf.so.1. The system would boot, but most useful commands = (think cp) exited with an error. This is all documented via google with = no successful work arounds that I could fine. What you can not do is = `freebsd-update rollback`. I though I could maybe fix this by going to = single user and overwriting ld-elf.so.1. This can not be done as all = commands depend on this file.

I created = image files from:

=  FreeBSD-12.3-RELEASE-amd64-dvd1.iso (4+GB)
=  FreeBSD-12.3-RELEASE-amd64-memstick.img ~1GB

Neither of these images are self contained. Both install 12.3 = correctly but by downloading the OS from a mirror site of your choosing. = Is there a path thought the dvd1 install that does something with the = extra 3GB of data? Does the dvd1.iso image have to be burned to a = DVD?

dvd1 includes a bunch of extra local packages, = it's otherwise identical to cd1.

You = should have a bunch of static binaries in /rescue which include = cp.

I've been bitten by this several = times in the past (on machines in faraway countries, where my only = access was a serial console), where all of a sudden midway through a = freebsd update install I'll just see a bunch of segfaults, and I'm still = not sure what's happening to cause it, but my solution has been to = *before I update* grab a spare tar file for base.txz for my target OS, = just in case.

My am not sure what is the = philosophy of deleting the supporting files so quickly. Other than = making a system from backup is there a way to install an older = version?

Yes.  Grab the base.txz files from ftp.freebsd.org or = ftp-archive.freebsd.org, or from your boot cdrom.  = Untar them over /, and you should have a working linker back.  I = would not call that "a production system" but it should be stable enough = to let your system attempt to redo the upgrade.

Yes, freebsd-update is bad at recovering from this = failure mode.  The rollback function really is only good for = rolling back patchlevels, not major upgrades.  Nor does it have a = "wait, you're a shell script, please just use the static files in = /rescue, and re-attempt the install" function.

FreeBSD really should have "ftp" or "fetch" or = "scp" or  something in /rescue, but there is at least nc, which you = can use to get a file on to the box, albeit slowly.

-Dan
= --Apple-Mail=_36764694-2D26-4F46-9C8A-ACA398C8484E--