GNU bug report logs - #76959
Empty Scheme files in system generation, breaks `guix system` and boot

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: grave; Reported by: Leo Famulari <leo@HIDDEN>; dated Tue, 11 Mar 2025 20:31:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 76959 <at> debbugs.gnu.org:


Received: (at 76959) by debbugs.gnu.org; 11 Mar 2025 20:43:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 11 16:43:46 2025
Received: from localhost ([127.0.0.1]:46006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ts6S1-0004Y2-P8
	for submit <at> debbugs.gnu.org; Tue, 11 Mar 2025 16:43:46 -0400
Received: from wolfsden.cz ([37.205.8.62]:56966)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1ts6Ry-0004Xs-I8
 for 76959 <at> debbugs.gnu.org; Tue, 11 Mar 2025 16:43:44 -0400
Received: by wolfsden.cz (Postfix, from userid 104)
 id 70CBC2995C6; Tue, 11 Mar 2025 20:43:40 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1741725820; bh=DMWR8FkKTmWFUUvVXx+O2n9snkWdh25MKvqE3CvN6yk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=KJnLusmNI0m+MlDN2zELQTmCKMHcryCravQkMU2Q9VblasSTX72uQWh0tJPW1FkCr
 bIsS1tt0yRGux2vMdO/+PQeEEoMjcoXsRIVmrKjbz4rVho9XuRnocY7VSsqkVKstsn
 O9Drsi9iCdvBgxOrMdBb43k9MJzPNls3SWxRIRCZJETqyNjLzcdjooULaYXMzcX8sk
 HARtRSg7nlsAgemG4ZZTfinR20FXKNPG91ZeK3pHhaz/oEOFAHi023uplepvgu1Vo1
 H1u63cy2ESeD6AtKbWDPqQlYw6TXFtjmDPa9DOkqsOztfTyzdw9r2klaARb3DitxwP
 Xm5x6X2/8XCzbjecmR3nFXEM14WW2RrHyXL5ZLD3kASCKyPhwDnDGGBYTsIKGah88X
 LJbdUyxK/40LRE6q4c+WjdrGCZMjTBDJ/o26FjLt94OplsG6DxOtSE6ENY3EoOujf9
 orTdD26kQ1gqZzYi5BJR7+0F7Qwt4IvlDkp2huL054avuY4N/UQn4NwZ5PNlz76x71
 B96XbxQHQ7/FouhGWPTR1vD+UcTqlncILW+rl0T8jZ7EfUTmz7bVqYyN4jM7XR3kG/
 lXW5HJDB3V0XOxZup9OPa6iGsyDgB9dwTzoNxuKVSIK1cEyNfyRKaRvSAgHYxzSgMe
 MPl4WnQZcqTnUeX996CdoCGc=
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on wolfsden
X-Spam-Level: 
X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED
 autolearn=unavailable autolearn_force=no version=3.4.6
Received: from localhost (unknown [128.0.188.242])
 by wolfsden.cz (Postfix) with ESMTPSA id F24A429A9C2;
 Tue, 11 Mar 2025 20:43:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail;
 t=1741725819; bh=DMWR8FkKTmWFUUvVXx+O2n9snkWdh25MKvqE3CvN6yk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date;
 b=mnFfh06ZWfYFyxD0gzmMHmJMQ9eoJgOBVLSGC8oA6qYWNdVw/uUFMg4zN958wDW2V
 WTHj6srdYspvqVQGZ4rElYklQXf+P3pVDaE81vxxsMVWQsu8QW6BBjbNnXx4rz1qJx
 lXzc+QiXaWsBk1PGfrjUuWPEdQGgKjr8UjrqhQqJgoEZnKv4/YEKufC2QZ2CJPiG5c
 tUW3Ixovr3l7dXorZbFEPBwODxFG/xVGY79b5OsNoQlnqPI88jsmajHWKs1SZkTp2l
 pE1ASh73qp8SKVEKAYEn3hhPSyZfHQnLtgcK0mcz/8WRP8ubuPEz8yVOaa808La3f4
 Vm+4Si0/blqheMupWuxxvab5M3aGClU9ikwVpnxcj6wnJ37g9yL/NZzUXGBT8vVbFN
 /C/SEMewOhsrev3POVxJBigudsf+lUt/X5GRZ5A3LgG1H0Rt1DnL5rNV9vI95Wkns7
 uOsJkpQwH3od/dKWp2ZsowbOejVFLDTwsRnPdlOxRvt8PhkyARhetRk8sDMX1UkduG
 wSePazIqLRiVKlrXn9lCcXgPWyItcg2c5Co8yvOOAuEgx9mW/cS4dlbj4ymK48pJ6F
 AXuWans6Ip5SFvEEjbwLsm660PCOymRq81pV489s7NHWVm6fPtRkaWDbkb6YDNE7lL
 ZHjhgtQ5SVlPHIAkK2874e0M=
From: Tomas Volf <~@wolfsden.cz>
To: Leo Famulari <leo@HIDDEN>
Subject: Re: bug#76959: Empty Scheme files in system generation, breaks
 `guix system` and boot
In-Reply-To: <Z9CdNwX8vaD5UPtG@HIDDEN> (Leo Famulari's message of "Tue,
 11 Mar 2025 16:29:43 -0400")
References: <Z9CdNwX8vaD5UPtG@HIDDEN>
Date: Tue, 11 Mar 2025 21:43:38 +0100
Message-ID: <875xkfxpqd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76959
Cc: 76959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Leo Famulari <leo@HIDDEN> writes:

> I didn't report this to bug-guix (although I did complain on #guix),
> because I thought it was just me, but now another user on #guix has the
> same problem:
>
> https://logs.guix.gnu.org/guix/2025-03-11.log#205907
>
> `guix gc --verify=3Dcontents` reported all the broken files. Repair was
> not possible for most of them.

I do not really have any useful information to add, but this was
happening to me as well over the past *months*.  Happens occasionally,
both in QEMU and on real HW.  BTRFS scrub is always fine, and just (some
of) *new* items copied during the deploy are corrupted.

Since no one else reported anything, I assumed it was just me.  I cannot
really reproduce it, so I have just assumed I keep "holding it wrong".

The trick with running the activation script by hand is much
appreciated, usually the recovery was fairly painful process.

Tomas

=2D-=20
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmfQoHoOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/wakmKg/+IfwhE39BW+xLLwxvrB3EBoVqxhtpWd/f8xfi
NR8TkeevMNL/9y8kw+YWXm2SPE/fgIuxhxy9VhOGiad5kWY5aCydXkGKylVhan3U
04+QJge5aKghoJd08grp2e9LRviyWQweLcfs67QqPnQ0h56N6W2Q0MxLIj8Rm3ZG
dpLfnEsEqZMC2qBRmcH3gdMMRuOp1ifw2JKCWgYuYxEGlAm27P8GbSTt9GR3JYT6
uLtYdowSq9lKxDH1IysnsqEtVfHxv3KPMVmO5DCtw3DY5jOYkB6SKe3FVD1p65+u
egYOqywgKTAencmSNy5uprBFimJOC79JQpqmDRG6+AfbjUyaUyRol9IdaAfCp3ul
H897Nq9ndAM1NPeS1pQkE43HFkTrqMIiy5VbcevFfNGQS+D/5M2cnHGWIxBMq1+Y
ZtDqj2+Dx8Be4AWuu4uez+PicBxwVxvdIIt41N7hHnBaKY9tEvOSiRZ4EUWvQIXi
jcx789Q6ciqQJLtVmi4XppeKJQg+zDmlLd4Y0el1kZdct8Wvm6Ts6e2fcPn3X4VE
rMyX5/Xq8ryKaItpZTQ7vUtjOG2cK3AkASKu0x6wYMYJX8uwOCj7LMU6Y9OVc7GF
2B1l91w6QA8uA5mKs6n3pSTu4l4KQoJOB5ZnlZyWfaowz19T76/KRHpqA4r3H7k2
EsnJTWk=
=MBnk
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#76959; Package guix. Full text available.
Severity set to 'grave' from 'normal' Request was from Felix Lechner <felix.lechner@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Mar 2025 20:30:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 11 16:30:58 2025
Received: from localhost ([127.0.0.1]:45932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ts6Fd-0003wZ-N4
	for submit <at> debbugs.gnu.org; Tue, 11 Mar 2025 16:30:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:48404)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <leo@HIDDEN>) id 1ts6Fa-0003wC-Fa
 for submit <at> debbugs.gnu.org; Tue, 11 Mar 2025 16:30:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leo@HIDDEN>) id 1ts6Ey-0002iN-EQ
 for bug-guix@HIDDEN; Tue, 11 Mar 2025 16:30:18 -0400
Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leo@HIDDEN>) id 1ts6Ev-0005Vq-1D
 for bug-guix@HIDDEN; Tue, 11 Mar 2025 16:30:15 -0400
Received: from phl-compute-07.internal (phl-compute-07.phl.internal
 [10.202.2.47])
 by mailfout.stl.internal (Postfix) with ESMTP id 844C91140209;
 Tue, 11 Mar 2025 16:30:10 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-07.internal (MEProxy); Tue, 11 Mar 2025 16:30:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=
 mesmtp; t=1741725010; x=1741811410; bh=oh1/vFxaF2/IcjB3l1kecIMIR
 g4vCllmEnmgh3s3kBo=; b=eL5WczoDOv3Th+buYxskgKPPhNsNtaUUcx5QzTw3x
 L41zIcTidNiaJCvs8fbGe2P4nTtpeH9Z6LkbwCD2O0A+ntRhKOasVB5OeHOXmZJa
 4PrGQTnZQ7rjA+ys1sVrHLUnTJwIRCE2HWwybUCiJ2C70kEUiQkM9IOU3M7dadKW
 eM=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741725010; x=
 1741811410; bh=oh1/vFxaF2/IcjB3l1kecIMIRg4vCllmEnmgh3s3kBo=; b=L
 1jXikMAkRaWfiZzLv7W1yWIsv5EBlvEEFFxh1OQPmzvhyzmWC3kaCnjZ1oItZwBH
 xfk0iYkp05cNt1uybmAs9bsjA7TzrIwr/0lIZhG34FLsHjMWkyaOQlowZwjFkBfP
 NWKHIJJkW2U4iDyeiRdrvvsQw+N6CumuPX0/W+xpfsw/PK5bxON4K9PvY1nZKuRx
 yy92C5ryMHX3PPnNpAWpMeZZZaIIMY/yrfAJdl6QFgQc03Sc7D2LD8d/0SJVCxs8
 86W4O3eVqfjyLh3PeGjmQJNgp6DH7WlGmVfZCaK9zFhMQ82+vLri4feYd0WK4qXz
 5JeNosfeniszasOzc0/tw==
X-ME-Sender: <xms:Up3QZ90QUJBU8gimcaDAZEDXGyHEazDKjDS9z0y9ysG5RLePi1GnVA>
 <xme:Up3QZ0HY79pW2CQrPQon1E7qf-Zlni1XT3Ll9BMNbtfcoCIXAccgxcNqI31fO__k4
 kuqdJhV99WQq1eVow>
X-ME-Received: <xmr:Up3QZ97RtWX5hj4KX15DKBVrpceMPfqz2SjnQORRxaRxrkMpX93Wo9N1n0fvaNPXj_b-NHipujEI19NIOQIAHz5f>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvdefudelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhf
 fvuffkgggtugesthdtredttddtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceo
 lhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepledtfeekge
 ejkeetffehieelgffhjeehvdfhfeeiudejgeejudeuhfehveffgeehnecuffhomhgrihhn
 pehgnhhurdhorhhgpdhgihhtlhgrsgdrtghomhenucevlhhushhtvghrufhiiigvpedtne
 curfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgvpdhn
 sggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqd
 hguhhigiesghhnuhdrohhrgh
X-ME-Proxy: <xmx:Up3QZ607g-oLwNRpBStQyLRQxySZQSBrsE2oVLga8kKkcS6V4pM0xQ>
 <xmx:Up3QZwGbPQdzYEVtxvYyYNpvFt2LodvpwHObl2HMnmMQXkRYaUjHBQ>
 <xmx:Up3QZ7-BULIdLoy3xDsmXU4fzRvUZT0OYTw1STNgDpmU6IAgBM7GLg>
 <xmx:Up3QZ9lpivEeUTkCvULfVLueTJFQhkD7olRi0YdpQ1r9ooi20-D02w>
 <xmx:Up3QZ6MvU-vhtov2j6XgenIu6US5Y0IbFleir0k1cBhutinPCOn-x7bk>
Feedback-ID: i819c4023:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-guix@HIDDEN>; Tue, 11 Mar 2025 16:30:10 -0400 (EDT)
Date: Tue, 11 Mar 2025 16:29:43 -0400
From: Leo Famulari <leo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Empty Scheme files in system generation, breaks `guix system` and boot
Message-ID: <Z9CdNwX8vaD5UPtG@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Received-SPF: pass client-ip=202.12.124.144; envelope-from=leo@HIDDEN;
 helo=fout-b1-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

In recent days, I reconfigured my system in the same way that I always
do it.

The resulting system was malformed, preventing boot and the use of `guix
system`.

Specifically, the files that make up the system itself --- such as
'/var/guix/profiles/system-NNN-link/parameters' --- are empty! Zero
bytes.

IIRC, I was able to work around it by running the activation scripts
from an older generation "by hand", but I don't remember for sure if
this was sufficient or not. For example:

`guile -s /var/guix/profiles/system-NNN-link/activate`

I didn't report this to bug-guix (although I did complain on #guix),
because I thought it was just me, but now another user on #guix has the
same problem:

https://logs.guix.gnu.org/guix/2025-03-11.log#205907

`guix gc --verify=contents` reported all the broken files. Repair was
not possible for most of them.

`btrfs scrub` was successful, and memtest86+ passed 9 times, so I'm
relatively confident in the filesystem and the hardware.

I don't have a handle on the relevant details, but here is some system
information:

------
# cat /etc/fstab 
# This file was generated from your Guix configuration.  Any changes
# will be lost upon reboot or reconfiguration.

UUID=287d4ed7-7fc8-4726-8882-fbe1f71fe7cd       /       btrfs   defaults
UUID=3A45-1EB8  /boot/efi       vfat    defaults
# guix system describe
Generation 92   Mar 10 2025 14:02:20    (current)
  file name: /var/guix/profiles/system-92-link
  canonical file name: /gnu/store/ws8gp0ylxppqxbraac14r0crk1jam7n3-system
  label: GNU with Linux 6.13.6
  bootloader: grub-efi
  root device: UUID: 287d4ed7-7fc8-4726-8882-fbe1f71fe7cd
  kernel: /gnu/store/bk469qvagzgxjvxbvj7myplyxzqa9qk0-linux-6.13.6/bzImage
  channels:
    nonguix:
      repository URL: https://gitlab.com/nonguix/nonguix
      branch: master
      commit: 944619c1947ba59823f4ad6d8b13842b7e162d76
    guix:
      repository URL: https://git.savannah.gnu.org/git/guix.git
      branch: kernel-updates
      commit: ccf4b131e489f6845a041d566bbd1ce929324faa
  configuration file: /gnu/store/aa5dq0j4ag28zf2vlr3n0jv8p2wi5y4s-configuration.scm
------




Acknowledgement sent to Leo Famulari <leo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#76959; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 11 Mar 2025 20:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.