From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0A2lDoutcGCaHQAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 21:39:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qPOICIutcGBbVgAAB5/wlQ (envelope-from ) for ; Fri, 09 Apr 2021 19:39:55 +0000 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 7202B15BBA for ; Fri, 9 Apr 2021 21:39:54 +0200 (CEST) Received: from localhost ([::1]:59626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUwyv-0005rx-Gc for larch@yhetil.org; Fri, 09 Apr 2021 15:39:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUwwO-0003rs-RK for help-guix@gnu.org; Fri, 09 Apr 2021 15:37:17 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:38208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUwwL-0003Zr-Ps for help-guix@gnu.org; Fri, 09 Apr 2021 15:37:16 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 2d2d9d60; Fri, 9 Apr 2021 19:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=hq/sU04muYrxQjqPs1x5wWvHSCuzrn2TO2AjjOt5fm4=; b=MaaJyaa7ENpW jszhg6QCDFKs4c/4izKnAS6DTvftK5OhOAY1ew9TskIsR7JzD4Jk9z38619Y8sl2 PzmjoOt+eJFrcFe4u1g9IQJ9jFJjfXlvxqwxWNT8mNTLadAbwhDtSNJGspkERn/C +7FeHSlqpNhO9/5pRn2QavUPYu0wj44YYqR7gqwG99Eyz/hV/JuYjpuXUfDvQIeA 6cuHoX4BAgMKYE0lOYNrYyiN4l2H8hP9hZXM49CoBytPSAtb3X6nHif30g5HkJRI srt2vZi/jCYFPtq0N2h8eTPEc45oqMPZHrCusQxtcSp76mTw8xNFt5RrxXogUZn4 a4dIiRkaRA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 82024605 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 9 Apr 2021 19:37:08 +0000 (UTC) Date: Fri, 09 Apr 2021 15:36:59 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: How to debug failed boot after successful reconfigure? To: help-guix@gnu.org,Vladilen Kozin From: Julien Lepiller Message-ID: <423006D4-2E90-4FAA-BB4C-F834BAE33A96@lepiller.eu> Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617997194; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=C03N3Vhl5gkXWmD7rIc3njrOJzyQfPlviQlbB0wY5k4=; b=Rmn6rmUvTQZ3gixCX35ZgFKMlBibgv5xuuOExSsmkWr9TH3zUNxxtcUa+34OCM+geBdcAn qtcU77f0MprnUyGSdclX0ld59ZznzHhU/q/Kz1GgpZM2MlQXDGVXKbFOnqnYi3otWW0B2C iZU1h/iYuOeiYGgEcvuRYpVj8vEQexmAnFUbRkOSYO9WBmQtvcxUk/v9yOTN5j3dKhfAVc +tLzKaFkyKWIWQAvmHtkwpT6jqGbKRqb+Cg/uIt/jrie6zK0k/lN4zZvN+wDmJjKKNwCxK ymnkDhd1dhWbBXhL8YxFyI5RskGuvpSdLx7GUT5+fvqsbc72dlBRY78OGXPSnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617997194; a=rsa-sha256; cv=none; b=HxX11mW/HqsE3RO0KfmJ1848csNbFN0NcNjpmNgLIVnURsjQ/TUliFsEDdJEuP9uGVaXZu b2i5RJpVujbuTZMk2G3U5XIJ/C2HgEsoQ/Y0M6REuMs9hWcNocFIlGZXyQ54Ncp/fyh6sl sdPWA8YnIS0VWNQoh3CASAihTO2MS440boFVpkpt/BcrDYEnP6NE7TAvO5Ian426yYO+2V WFnzxH8VxrYBnk8GhAJCEHgrIZe+ZYhU4Y1PZN6hrP0nHg//nZqhq713ebs3fVB7wMSqG7 RhqAk/WOYn2ktDLGJgjLMGJFIsU2khjyRebkIeCthO7CXTzdbKgUyY9bvb9jBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=MaaJyaa7; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=MaaJyaa7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 7202B15BBA X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: SWuTbuCLKjtx Hi, help-guix is the right mailing, but we're not always very responsive, p= lus there is a delay for your first mail to pass spam filter=2E In /var/guix/profiles/system--link (where n corresponds to the generati= on you wart to inspect), you will hind an etc directory=2E dmesg accumulates in /var/log/messages, I don't think there's a way to fin= d it for a given generation, but you should find the relevant lines by look= ing at the time they were registered=2E HTH! Le 9 avril 2021 07:53:16 GMT-04:00, Vladilen Kozin a =C3=A9crit : >Hm, bit puzzled=2E Noone ever encountered boot failures with Guix? >Should I've sent it to guix-devel? > >I'm going to try my luck in a separate thread with a much narrower >question=2E > >FWIW for the issue at hand I ended up leveraging the fact that I'm >running on a server with out-of-band ethernet and IPMI on board=2E >Essentially, I ended up configuring that server to communicate Serial >over Lan, then reconfigured Guix with Grub and Kernel both doing IO to >serial console, then connected over SSH while running inside a Tmux >session =2E=2E=2E so now I can scroll up if boot fails and see exactly wh= at >happened=2E This would probably only work on an actual enterprise hw >that lets you do IPMI SOL=2E For anyone interested here're relevant >parts of my config=2Escm: > >;; make sure kernel IO to serial both com1 and com2 >(kernel-arguments '("console=3Dtty1 console=3DttyS0,115200n8 >console=3DttyS1,115200n8")) > >;; make sure grub IO goes over serial both com1 and com2 >(bootloader > (bootloader-configuration > (bootloader grub-bootloader) > ;; TODO well that's nuts given that plugging in USB drive changes > ;; order of block devices > (target "/dev/sda") > (keyboard-layout keyboard-layout) > (terminal-inputs '(console serial_0 serial_1)) > (terminal-outputs '(console serial_0 serial_1)))) > >Seriously, noone knows where to find dmesg and contents of /etc that >pertain to the last attempt to boot specific generation? >Pretty please? > >On Thu, 8 Apr 2021 at 16:58, Vladilen Kozin >wrote: >> >> Hi list=2E >> >> I'm trying to wrap my head around running guix=2E While question in >subj >> is general it was prompted by a real failure, so really I am >> interested both in "general approach" as well as solving the actual >> problem I ran into=2E >> >> having updated with `guix pull` I run `sudo guix system reconfigure >> config=2Escm` which succeeds=2E I reboot and the boot fails attempting = to >> mount the new file-systems I've introduced in that config=2E This being >> guix I reboot into older generation=2E However, now I am unsure how to >> debug what'd happened=2E E=2Eg=2E I would like to: >> - look at failed dmesg or equivalent log, >> - look at files that reconfigure produced in /etc, e=2Eg=2E /etc/fstab >> >> IIUC when I boot even from an older generation, the failed one will >be >> marked as "current" (that is the newest reconfigured) but everything >> in /etc appears to belong to the older generation - hardly >surprising=2E >> Following link shown by `guix system describe` in my case >> /var/guix/profiles/system-2-link I don't see e=2Eg=2E /etc/fstab I'm >> interested in=2E Where are those files? >> >> So, the questions above (maybe others I should've asked?) amount to >my >> asking, how to debug the failure=2E >> >> My specific case was adding these files-systems to my os declaration: >> (file-system >> (mount-point "/mnt/tempb") >> (device (file-system-label "tempb")) >> (type "ext4") >> #;(flags '(no-atime)) >> (options "defaults,noatime,discard,user") >> (create-mount-point? #t)) >> >> At boot time I got multiple errors from mount unable to figure the >> options supplied=2E This in itself is puzzling seeing how I did check >> /etc/fstab after reconfigure and was able to manually mount as per >> that generated /etc/fstab without issue=2E One note is that I think the >> (create-mount-point? #t) had not been honored, but I did create those >> mount points manually=2E Dunno, might be a bug in guix proper=2E But >> that's minor=2E >> >> Thanks >> >> -- >> Best regards >> Vlad Kozin > > > >--=20 >Best regards >Vlad Kozin