GNU bug report logs - #78271
Bisected regression: database container cookbook example fails to start

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; Reported by: "Owen T. Heisler" <writer@HIDDEN>; Done: "Owen T. Heisler" <writer@HIDDEN>; Maintainer for guix is bug-guix@HIDDEN.
bug closed, send any further explanations to 78271 <at> debbugs.gnu.org and "Owen T. Heisler" <writer@HIDDEN> Request was from "Owen T. Heisler" <writer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 78271) by debbugs.gnu.org; 13 May 2025 22:41:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 13 18:41:49 2025
Received: from localhost ([127.0.0.1]:36023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uEyJo-00063K-LD
	for submit <at> debbugs.gnu.org; Tue, 13 May 2025 18:41:49 -0400
Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:52498)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <writer@HIDDEN>)
 id 1uEyJm-00061x-K4; Tue, 13 May 2025 18:41:47 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1])
 (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)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Zxs0H1BW5z9tFG;
 Wed, 14 May 2025 00:41:35 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owenh.net; s=MBO0001; 
 t=1747176095;
 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:
 in-reply-to:in-reply-to:references:references;
 bh=tViB1q8jBmCVJPNBLOV5toZizynWbm2BXtQVGWwR4eM=;
 b=f5qOoOpQIqAzkjJoAvcL4xmKnjRfJ63IMkqWZOf3m/62hKUApi/42mYEk2FY32q0mvJxb7
 lUNSfe1fYahc0OJd+z3zgQh7URHb1geTjzGseETbHHdQtC66rWRXkkE937HxlhnfK2buQ0
 GUaJTQSHp0eTGYL+vsFucfUlVFHTR5lk8MWFbxRtzwNIIE7hoEDYQjPFKko+YVzT71UeOb
 /C8MvJZRgfXOH8UYmdNJ+yX9EdzcUPc6cMs4GkK/hHbIlg8sLEmxnG5RTMeJzsBtyr3QXb
 CjcTR1JzXxiK4QgffW8TK6YwaLqB5hrDmc66KxYiseCBbpwbeMsf6zJUGOWOtg==
Message-ID: <3d452c0b-5b1b-4d1b-bcc2-2bae51c9ddf6@HIDDEN>
Date: Tue, 13 May 2025 17:41:31 -0500
MIME-Version: 1.0
From: "Owen T. Heisler" <writer@HIDDEN>
Subject: Close #78271
To: control <at> debbugs.gnu.org, 78271 <at> debbugs.gnu.org
References: <90d62105-8830-40bd-aa2e-6a8a6d4e5af1@HIDDEN>
Content-Language: en-US
In-Reply-To: <90d62105-8830-40bd-aa2e-6a8a6d4e5af1@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78271
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.7 (-)

close 78271
stop


Hi,

This issue was fixed by commit 437bb9ece55f37d4b5a62cafc98c0c3b848a53ce.

Thanks,
Owen




Information forwarded to bug-guix@HIDDEN:
bug#78271; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 5 May 2025 20:52:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 05 16:52:28 2025
Received: from localhost ([127.0.0.1]:43543 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uC2nc-0000lt-1Y
	for submit <at> debbugs.gnu.org; Mon, 05 May 2025 16:52:28 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39164)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <writer@HIDDEN>) id 1uC2na-0000lR-0J
 for submit <at> debbugs.gnu.org; Mon, 05 May 2025 16:52:27 -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 <writer@HIDDEN>) id 1uC2nH-0000Zj-Hi
 for bug-guix@HIDDEN; Mon, 05 May 2025 16:52:13 -0400
Received: from mout-p-202.mailbox.org ([80.241.56.172])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <writer@HIDDEN>) id 1uC2n9-0002if-Jw
 for bug-guix@HIDDEN; Mon, 05 May 2025 16:52:04 -0400
Received: from smtp102.mailbox.org (smtp102.mailbox.org
 [IPv6:2001:67c:2050:b231:465::102])
 (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)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4ZrtxH4lylz9tB8
 for <bug-guix@HIDDEN>; Mon,  5 May 2025 22:51:47 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owenh.net; s=MBO0001; 
 t=1746478307;
 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=CoQXCtpt45G9RCU6qwpxLtP+bZi8m6FAYOBWwhdB+O4=;
 b=FO4vR3f/CvrHs4n0d+/mjSYmlWFGX0yRFB+Dxj4GQIhCod0a8UzAxIdBSuNTYjQxOaUS+T
 dB9DoRRNMMn3rneOL62cbZTDAvagOTdIAb6uk79rwwNB8JPU06TAe+7IYv/ACrQefPFpXI
 cu0YARUDqca1gVdE74JyhAQYSt8Y7bG98l5QOAGDLO3VcdlccI+ipjgvrcQPuwoXGsRt0K
 E95A6IBtWcbTLmeODfnLsdhUD1uHeDg4vfi2Q64EKZmb8zOnh+XZxCD4kMOuE+yl9QSumK
 Br0eNoAj1Ejl81kwJj8C+CaEZ/hZjFj8v94lMjXdRrxXFFKNd0O1mf9M3jraLw==
Message-ID: <16996c48-631e-496a-8157-aef7a75467c8@HIDDEN>
Date: Mon, 5 May 2025 15:51:43 -0500
MIME-Version: 1.0
Content-Language: en-US
To: bug-guix@HIDDEN
From: "Owen T. Heisler" <writer@HIDDEN>
Subject: Bisected regression: database container cookbook example fails to
 start
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4ZrtxH4lylz9tB8
Received-SPF: pass client-ip=80.241.56.172; envelope-from=writer@HIDDEN;
 helo=mout-p-202.mailbox.org
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_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
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.0 (/)

Hello,

Since commit a57ed987ffd1452ba5a4d70feb54893e99b8e076 ("linux-container:
Lock mounts by default."), the container resulting from `guix system
container` fails to start.

```console
$ guix time-machine --commit=a57ed987ffd1452ba5a4d70feb54893e99b8e076 --
system container db.scm
...
/gnu/store/63af016iyah8k94vv2k42c7hn9a545dp-run-container
$ sudo /gnu/store/63af016iyah8k94vv2k42c7hn9a545dp-run-container
guile: warning: failed to install locale
Backtrace:
           7 (primitive-load "/gnu/store/63af016iyah8k94vv2k42c7hn9a?")
In gnu/build/linux-container.scm:
    368:8  6 (call-with-temporary-directory #<procedure 7fcf0add9af0?>)
   476:16  5 (_ "/tmp/guix-directory.tNBEMR")
     62:6  4 (call-with-clean-exit #<procedure 7fcf0b542b80 at gnu/b?>)
   323:22  3 (_)
    215:2  2 (initialize-user-namespace 1 65536 #:host-uid _ # _ # _ ?)
In ice-9/ports.scm:
    435:6  1 (call-with-output-file _ _ #:binary _ #:encoding _)
In unknown file:
           0 (close-port #<output: /proc/1/uid_map 6>)

ERROR: In procedure close-port:
In procedure fport_write: Operation not permitted
system container is running as PID #f
Run 'sudo guix container exec #f /run/current-system/profile/bin/bash
--login'
or run 'sudo nsenter -a -t #f' to get a shell into it.

Backtrace:
           3 (primitive-load "/gnu/store/63af016iyah8k94vv2k42c7hn9a?")
In gnu/build/linux-container.scm:
    368:8  2 (call-with-temporary-directory #<procedure 7fcf0add9af0?>)
    485:7  1 (_ "/tmp/guix-directory.tNBEMR")
In unknown file:
           0 (waitpid #f #<undefined>)

ERROR: In procedure waitpid:
Wrong type (expecting exact integer): #f
```

Using the following `db.scm` from
<https://guix.gnu.org/cookbook/en/html_node/A-Database-Container.html>
example with no changes:

```scm
(use-modules (gnu))
(use-package-modules databases)
(use-service-modules databases)

(operating-system
  (host-name "container")
  (timezone "Europe/Berlin")
  (file-systems (cons (file-system
                        (device (file-system-label "does-not-matter"))
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))
  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (targets '("/dev/sdX"))))
  (services
   (cons* (service postgresql-service-type
                   (postgresql-configuration
                    (postgresql postgresql-14)
                    (config-file
                     (postgresql-config-file
                      (log-destination "stderr")
                      (hba-file
                       (plain-file "pg_hba.conf"
                                   "\
local	all	all			trust
host	all	all	10.0.0.1/32 	trust"))
                      (extra-config
                       '(("listen_addresses" "*")
                         ("log_directory"    "/var/log/postgresql")))))))
          (service postgresql-role-service-type
                   (postgresql-role-configuration
                    (roles
                     (list (postgresql-role
                            (name "test")
                            (create-database? #t))))))
          %base-services)))
```

Thanks,
Owen




Acknowledgement sent to "Owen T. Heisler" <writer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#78271; 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, 13 May 2025 22:45:01 UTC

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