From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gE7kHwYiD2axDgAA62LTzQ:P1 (envelope-from ) for ; Thu, 04 Apr 2024 23:56:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gE7kHwYiD2axDgAA62LTzQ (envelope-from ) for ; Thu, 04 Apr 2024 23:56:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IfIeozp+; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712267782; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=umbbwOkoMWdNPqZ9E5g1Re3kCGRV1u/WYkJqJ0upcGg=; b=mUVm4F6yXMZbTn8Zjvqs9T6quwhXM2EBSJqjyWy3Gj/R3fYYlI3hX7yVvCoKxYmtOuOCV/ QvslURe4qRvX04X99iB2GTRmEo7dDD5ak6wyZK/EbKG0JJJrLPyR87uiUWV7AxhItvnCFP PV37lJUw/Nax4ibtfp/Sk8MjcN/bHngw5aMrWX5BmxhbHgHaq1bNa/2W/YjGozmgxy+HHZ ppANbr+niDIfjVqaR8dpUug38+F6wuOLnHFy63zZ5rigcA1RxxF7RnYlXEAe9BPL7dkIf+ K808edDqFObMM5uCkRAPwzKY3k8aRgw+PaeKpK1wNg/AZks1zbtg6B8E2i1rig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712267782; a=rsa-sha256; cv=none; b=XAok3/wDAsOj+sBCi5sLxYsTXBV5qObWctV1FUitZ5z/Jjxu5T7As9zJTei+xg41DjydFt cIEV7c8qi6LEErOLzNZDnjOFlPWYE9O/0Duz58x+1L2Fzwp7ji4IXll3HTdNEqfW3xcZ7N h+vAwHI9GdglTuL4Px4R/NTOGEBtrulNI0q3qeUWPPTngnzjSyHhEcPoFOb/gBNoZhnoOs /iTnaL5cn0SrIeJzFIReblgn7QzmgNTtK2aIj+4jFqxK/CwkcAaeLpMe3RuXxndPgyy7zh 8/uclleZQy5/KcmRhi3KyFho0KIxVd/5ZT7kvK0W4x7h3JAUhWSnTqMWq9erlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IfIeozp+; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 15B6D52033 for ; Thu, 4 Apr 2024 23:56:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsV48-0004D6-G6; Thu, 04 Apr 2024 17:56:13 -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 ) id 1rsV3t-0004AI-36 for bug-guix@gnu.org; Thu, 04 Apr 2024 17:55:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsV3s-0002no-RD for bug-guix@gnu.org; Thu, 04 Apr 2024 17:55:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rsV3x-0006Sp-WE for bug-guix@gnu.org; Thu, 04 Apr 2024 17:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#69401: /etc/guix/machines.scm symlink can be garbage collected Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Apr 2024 21:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69401 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Efraim Flashner Cc: 69401@debbugs.gnu.org Received: via spool by 69401-submit@debbugs.gnu.org id=B69401.171226772724549 (code B ref 69401); Thu, 04 Apr 2024 21:56:01 +0000 Received: (at 69401) by debbugs.gnu.org; 4 Apr 2024 21:55:27 +0000 Received: from localhost ([127.0.0.1]:34875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsV3O-0006Ns-DO for submit@debbugs.gnu.org; Thu, 04 Apr 2024 17:55:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rsV3J-0006MZ-5E for 69401@debbugs.gnu.org; Thu, 04 Apr 2024 17:55:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsV38-0002Cj-7e; Thu, 04 Apr 2024 17:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=umbbwOkoMWdNPqZ9E5g1Re3kCGRV1u/WYkJqJ0upcGg=; b=IfIeozp+WyPBpyl+vm+t ha251slKCnGxLHKPWi521CZJR2udpFPtBSUULOl761zUlStsVQa5G5Q6YvetdD//IZfUApSFIU991 rpBGiK08OrPSOiTxihYI8ynxL7iIGI4W4V5AYaoUOYZ8a4b9df2SsA3AZUC64bphiHWoM1kT+dpmp JFpnZiZySJZUvUSv2ME1EGnAC4oft+Tj11QudAxzLBbbIXHmFMp4L9sQ9tLUgFVufFyk4kaq7y52q ueCZ0LD9v7upeFh7vyHiv1G6Jti6mI2Yub5VFCZnXmQHi55DmKuL6QhivN1QQEK6YYJsfLLmua2jD k0v97hVe+BzG7A==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Efraim Flashner's message of "Mon, 26 Feb 2024 08:53:11 +0200") References: Date: Thu, 04 Apr 2024 23:55:07 +0200 Message-ID: <871q7ku72c.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.06 X-Spam-Score: -7.06 X-Migadu-Queue-Id: 15B6D52033 X-Migadu-Scanner: mx13.migadu.com X-TUID: 1yoLSsb59gv+ Hi, Efraim Flashner skribis: > Some of the build nodes behind the Berlin build farm have a childhurd > which can build packages. Unfortunately, the symlink from > /etc/guix/machines.scm to the generated file in the store to setup > offloading has been garbage collected on several of the machines. Indeed. Here=E2=80=99s an example: --8<---------------cut here---------------start------------->8--- root@hydra-guix-108 ~# guix gc -R $(readlink -f /run/current-system) |grep = machines.scm /gnu/store/xg26iis3ydik6zxqk24cyk7h9zli1d25-machines.scm root@hydra-guix-108 ~# ls -l /etc/guix/machines.scm lrwxrwxrwx 1 root root 56 Mar 7 11:53 /etc/guix/machines.scm -> /gnu/store= /1171q4xhph07ll3mlzlg7igcwg3c98i1-machines.scm root@hydra-guix-108 ~# stat -L /etc/guix/machines.scm stat: cannot statx '/etc/guix/machines.scm': No such file or directory --8<---------------cut here---------------end--------------->8--- Here /etc/guix/machines.scm points to a different =E2=80=98machines.scm=E2= =80=99 than the one that is current. The old one was removed last week: --8<---------------cut here---------------start------------->8--- root@hydra-guix-108 ~# zgrep 1171q4xhph07ll3mlzlg7igcwg3c98i1 /var/log/mcro= n.log.1.gz=20 2024-03-27 03:00:05 23100 guix gc -F 150G: [46%] deleting '/gnu/store/1171q= 4xhph07ll3mlzlg7igcwg3c98i1-machines.scm' --8<---------------cut here---------------end--------------->8--- The /etc/guix/machines.scm link was created on the last deployment though: --8<---------------cut here---------------start------------->8--- root@hydra-guix-108 ~# ls -l /etc/guix/machines.scm lrwxrwxrwx 1 root root 56 Mar 7 11:53 /etc/guix/machines.scm -> /gnu/store= /1171q4xhph07ll3mlzlg7igcwg3c98i1-machines.scm root@hydra-guix-108 ~# guix system describe Generation 109 Mar 07 2024 11:53:30 (current) file name: /var/guix/profiles/system-109-link canonical file name: /gnu/store/5m0sjf3x0pslipcbdxm9ml99h0lbh7c8-system label: GNU with Linux-Libre 6.6.18 bootloader: grub-efi root device: label: "my-root" kernel: /gnu/store/jcr3d8yy531q4i6kgkfmb0r3ghw418mc-linux-libre-6.6.18/bz= Image channels: guix: repository URL: https://git.savannah.gnu.org/git/guix.git commit: 64d269b983b76553466ac93945d58c7865cf190e configuration file: /gnu/store/d4z76lw515padizhl62hydxwygh57p6k-configura= tion.scm --8<---------------cut here---------------end--------------->8--- Could it be that the =E2=80=9Cwrong=E2=80=9D activation snippet was run by = =E2=80=98guix deploy=E2=80=99? Here we see the right one: --8<---------------cut here---------------start------------->8--- root@hydra-guix-108 ~# grep machines.scm $(guix gc -R $(readlink -f /run/cu= rrent-system) |grep activate-service) /gnu/store/pgmb9swcx0pljhbw88mgd3zjagz5axvn-activate-service.scm:(eval-when= (expand load eval) (let ((extensions (quote ())) (prepend (lambda (items l= st) (let loop ((items items) (lst lst)) (if (null? items) lst (loop (cdr it= ems) (cons (car items) (delete (car items) lst)))))))) (set! %load-path (pr= epend (cons "/gnu/store/pj751v3199vmv6i6sf0szp185ryzcfdg-module-import" (ma= p (lambda (extension) (string-append extension "/share/guile/site/" (effect= ive-version))) extensions)) %load-path)) (set! %load-compiled-path (prepend= (cons "/gnu/store/iqbchmbmhmi34bwgv4sm14li9m24dpnl-module-import-compiled"= (map (lambda (extension) (string-append extension "/lib/guile/" (effective= -version) "/site-ccache")) extensions)) %load-compiled-path))))(begin (unle= ss (or #f (file-exists? "/etc/guix/signing-key.pub")) (system* "/gnu/store/= 59y43hrlffs8hg1584vg5074jsbfhwjy-guix-1.4.0-16.aeb4943/bin/guix" "archive" = "--generate-key")) (begin (use-modules (guix build utils)) (define acl-file= "/etc/guix/acl") (if (file-exists? acl-file) (if (and (symbolic-link? acl-= file) (store-file-name? (readlink acl-file))) (delete-file acl-file) (renam= e-file acl-file (string-append acl-file ".bak"))) (mkdir-p (dirname acl-fil= e))) (symlink "/gnu/store/np3babd2h4xh4x4dvm51k6rp3xbsrzyl-acl" acl-file)) = (begin (use-modules (guix build utils)) (define machines-file "/etc/guix/ma= chines.scm") (if (file-exists? machines-file) (if (and (symbolic-link? mach= ines-file) (store-file-name? (readlink machines-file))) (delete-file machin= es-file) (rename-file machines-file (string-append machines-file ".bak"))) = (mkdir-p (dirname machines-file))) (symlink "/gnu/store/xg26iis3ydik6zxqk24= cyk7h9zli1d25-machines.scm" machines-file))) --8<---------------cut here---------------end--------------->8--- To be continued=E2=80=A6 Ludo=E2=80=99.