From nobody Wed Sep 07 13:20:01 2022 X-Original-To: bugs@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 4MN2tB1DDhz4cR8p for ; Wed, 7 Sep 2022 13:20:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MN2t96bq2z3LyF for ; Wed, 7 Sep 2022 13:20:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MN2t95ZhnzXpy for ; Wed, 7 Sep 2022 13:20:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 287DK1uu062766 for ; Wed, 7 Sep 2022 13:20:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 287DK1OW062765 for bugs@FreeBSD.org; Wed, 7 Sep 2022 13:20:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266270] freebsd-update cron corrupts freebsd-update upgrade's in progress Date: Wed, 07 Sep 2022 13:20:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pen@lysator.liu.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662556801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WqTJeqfCqO+Pyo2FURJV6OXXGB56LLG/pGr4PGxOrXM=; b=Yg4iaw3oXolQIPLzgGA7ri36AKtqW6xBKnAGqU/O5PWzXzZ2iiMm0FRn9niADPw2ARguJC O5XcLAlmr+bFe+UL50FME3KVTXo4ARaDfdgW3EqH4OnsOZ7nGgOVNO3XCwz+mbCIquowhr iYvL6kKKgng/0sDlrHqeZJsN92SlfHNAVxAcs96YkAXptNiSb5fRg4hUqZ6XD0HZZD/T4K ueKUou4pnd7vRkWXdd6IWfQEknJmgiRCWys7hjtINFQT+Yu/nozFUKCChPgKrxsYqdW9eb EOmdZd1M/BQHSYil501jA2To4rERD3gZ+bafgaQMywDjqEZok2BDbMghwBaQew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662556801; a=rsa-sha256; cv=none; b=hEwH3wZvGS2kd8i9N4Soj0z7QmcM5EnMlBbXwBgLW4M9pK945hjvOEBf75ygOuVO5oVa17 QhH+llccpA/z75zIh5jlqVJ+6UIMvVUp05rp1huAsFG3TYtVpbglepb95UXFJnSgDNF7hV 11o+4qBmyebcEvM1d/Hi0Ijk2ptzMoJmsLAK1MnhS8xvDxS2r/vX+tHjQyT6+uP+9zU8fy 1p6m9C8NrN9ELKePdmi5XeDElNmbqzA2eTPq/DIhFhF79zom8zH0PwqmOrNpuu1jWjKpBc I6lFJD0G1ZEPkDoPgL5AozOvJP9bWMHm2T0zpDvcbJJshPbJ9HoRbaKjKvp2SQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266270 Bug ID: 266270 Summary: freebsd-update cron corrupts freebsd-update upgrade's in progress Product: Base System Version: 12.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: pen@lysator.liu.se I've been running "freebsd-update cron" from cron every night at 23:10 to g= et notifications for needed updates for a long time. This is working fine. What isn't working fine is I've I initiate an OS upgrade using "freebsd-upd= ate upgrade -r " before the cron job runs, and then finalize the upgrade after the cron job has run... Which for me has happened multiple ti= mes now since that is a good time to perform the upgrades :-) This seems to cause a partially updated system that is very confused - which causes future pkg upgrade and "freebsd-update fetch install"-updates to bec= ome even more confused (sometimes starts to delete "random" files from the runn= ing system since it thinks they aren't needed anymore). One way I've noticed to detect this situation is to do a "file /usr/bin/una= me" and see what OS version the uname binary is from. Suggestion: Add some fail safe mechanism to "freebsd-update cron" that dete= cts an OS-upgrade in progress and stop it from downloading updates for the old = OS version and mix them up with the new OS updates. --=20 You are receiving this mail because: You are the assignee for the bug.=