From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kDQ+OTVntGUIOAAAe85BDQ:P1 (envelope-from ) for ; Sat, 27 Jan 2024 03:15:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kDQ+OTVntGUIOAAAe85BDQ (envelope-from ) for ; Sat, 27 Jan 2024 03:15:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FzkLgFY1; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706321717; 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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c5SUns1FKKLpU3uBnuzXmsvODaSbvzBy6moT5DGPVY4=; b=if+udpmCEQPPV+hjpBykEuYwtQ7iHBsu9RUidOT4u7hXtWuiXove9agJEg6I3InlAAsmOA 5ix7lsX+H8XRTA1NbkrqwGFX5nuLATBI0XTwsrMxumc8D9431FxOGdDFEMJeSxxjiPGj0W x7iU17KjLZP2CAcW5QxlzYh4NJs2upJX7o/iiKSD0X8Jx/DiYvPoflTqXiYW7Cao3TnOTU D6Dk5QDsKdgl6pYwUBHvUpnn4+AmY2uTvvI7YnvOeS7xRUL2tAFLl4mShOnQRRnxnI+Mhj A3+o1ZRnKXoZ+oi/w36ZLEaAZ1neqeMuP7UA5vWzKrkAnxa1NTRVTYwsDAARSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FzkLgFY1; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706321717; a=rsa-sha256; cv=none; b=teJDS1c58qmIetYxXwBbZwjlRW3QdajVdNlPMiXeXIvHfJ50syz5yTHKuGQYmCctnAnksB Vuz09FGflHJ4XWsP5EQ/lSVWzN3IMFJwEK9pGHEwghyI9yBD+Ulkkf+gkGlNqnq2LCBfEY D4PZB3E87akidm/v9NvuTbMTh4HYAVf20jezHuZJ1slTuz1IqPVCNZg9Q1ywYIyS8lEDZ9 zC0LxaokTH0QraLaQlEo+9YfRUWNp0WjPeTY+RFk+5H6zH93GLAHvDR4Wbt0fvLZD7ufMd MU041l2MeMZqAPlCFC89VVMZXUA8PrFm2O82j2FlsJ9jHk6tU6lW2Pll7iikTA== 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 7566D3D892 for ; Sat, 27 Jan 2024 03:15:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTYDj-0003ay-0t; Fri, 26 Jan 2024 21:14:59 -0500 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 1rTYDg-0003ap-GN for bug-guix@gnu.org; Fri, 26 Jan 2024 21:14:56 -0500 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 1rTYDg-0003BW-7o for bug-guix@gnu.org; Fri, 26 Jan 2024 21:14:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTYDn-0002aw-0X for bug-guix@gnu.org; Fri, 26 Jan 2024 21:15:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68747: Extending postgresql-role-service-type as shown in manual leads to crash Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 27 Jan 2024 02:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68747 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68747@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.17063217009947 (code B ref -1); Sat, 27 Jan 2024 02:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2024 02:15:00 +0000 Received: from localhost ([127.0.0.1]:53147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTYDk-0002aM-F9 for submit@debbugs.gnu.org; Fri, 26 Jan 2024 21:15:00 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTYDi-0002a6-Ai for submit@debbugs.gnu.org; Fri, 26 Jan 2024 21:14:58 -0500 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 1rTYDV-0003aQ-EL for bug-guix@gnu.org; Fri, 26 Jan 2024 21:14:46 -0500 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTYDT-00037Y-RJ for bug-guix@gnu.org; Fri, 26 Jan 2024 21:14:45 -0500 Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-68196a09e2eso6141376d6.3 for ; Fri, 26 Jan 2024 18:14:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706321682; x=1706926482; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=c5SUns1FKKLpU3uBnuzXmsvODaSbvzBy6moT5DGPVY4=; b=FzkLgFY19lGgFiylRgTKupBAxyPMDH8+1+t+Mg/FK3y3ge+rI7sVynh4Tl0S0KmI44 +Gk81/F26QqlRVb4+ErjzVISgcfWud/mMqjGIsTtXyeijWRXXG7muHlEGtH8qGNwmiuY jRO9ArICtY0LiB0RXqY4SmlMtQK8bqDPHS07hwBfkeKNZdRHpDBhwA/3qH7p0RCY1ect GxAHfFTp22Bk7oxPGRPIW1UmYbn01E2QhYWUi9jT50MuaLcMIATeF3I6j+X6WNoN5MPN QeTKenvgFDQU8OkkZ68oj7G8oLEaUYQrb7ZGZi19l9sPyInpEIp/sHzla7F1SAqO4Sgb bWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706321682; x=1706926482; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c5SUns1FKKLpU3uBnuzXmsvODaSbvzBy6moT5DGPVY4=; b=fNjL1/E8RbnMpr6+c8IdS8+CIR9U/UwEuuj+aJbPeJ7Gho2zm+tLDlkGkwiLRzrEBI SlUt2GfQLX7ty2TbclO31yA26s6zmTpT+kOAxATtUrqWbLY13Ln4fgOPqXrWKuEHJ3Sx VQZIFzX3wyiL2plfW/w6Xi2oHQIaXKZ1W5PJuAzws6aK/tPhhUkBm16uMFgEXSUdZMJS Z9Obz8MZFIEX/qCI26oCilOnV9WJUP8+YtWc5lFcNCc/prJmViHvEOeFWAuYJmsZyZAr Jj3k4cTZv2XfDyki5fIsEfmYzA4/bUbWzF6WOmDxzViiF/3l1LB92mU4XXa1mDtRUIr+ cI8A== X-Gm-Message-State: AOJu0YxbY1l6FYtbi7GWbelt8lxa6ZJKBL/BwZ0Rp+m2Omerijat2Dxr wOgy2jMCZ/AWqeIxS5wRrU49/QtpF7hodz2fZ5tiPA73EIeOE1BbzGCXl2dN X-Google-Smtp-Source: AGHT+IG32d71GR9D3+z4sjA1OuO7d7CTEXlHCgrlsaAzlXTWN1b9VZbqShKrd1uz3F4EtuiaNjKkdQ== X-Received: by 2002:a05:6214:f06:b0:684:836f:9abe with SMTP id gw6-20020a0562140f0600b00684836f9abemr1071678qvb.30.1706321682073; Fri, 26 Jan 2024 18:14:42 -0800 (PST) Received: from hurd (dsl-153-164.b2b2c.ca. [66.158.153.164]) by smtp.gmail.com with ESMTPSA id on6-20020a056214448600b006819a4354basm1040002qvb.37.2024.01.26.18.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 18:14:41 -0800 (PST) From: Maxim Cournoyer Date: Fri, 26 Jan 2024 21:14:39 -0500 Message-ID: <87a5or1q0g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf31.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.35 X-Migadu-Queue-Id: 7566D3D892 X-Spam-Score: 2.35 X-Migadu-Scanner: mx11.migadu.com X-TUID: aDYjgRKan1ye Hi, We have this example in the manual, in (info "(guix) Database Services"): --8<---------------cut here---------------start------------->8--- (service-extension postgresql-role-service-type (const (postgresql-role (name "alice") (create-database? #t)))) --8<---------------cut here---------------end--------------->8--- Unfortunately, it doesn't seem to work as intended. Adding the following to my configuration: --8<---------------cut here---------------start------------->8--- (service postgresql-service-type) (service postgresql-role-service-type (postgresql-role-configuration (roles (list (postgresql-role (name "maxim") (create-database? #t)))))) (service-extension postgresql-role-service-type (const (postgresql-role (name "cuirass") (create-database? #t)))) --8<---------------cut here---------------end--------------->8--- I get the following error upon reconfiguration: --8<---------------cut here---------------start------------->8--- Backtrace: 18 (primitive-load "/home/maxim/.config/guix/current/bin/g=E2=80= =A6") In guix/ui.scm: 2324:7 17 (run-guix . _) 2287:10 16 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) In guix/status.scm: 859:3 14 (_) 839:4 13 (call-with-status-report _ _) In guix/scripts/system.scm: 1305:4 12 (_) In ice-9/boot-9.scm: 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 661:37 10 (thunk) 1300:8 9 (call-with-build-handler # =E2=80=A6) 2180:25 8 (run-with-store # =E2=80= =A6) In guix/scripts/system.scm: 847:2 7 (_ _) 721:8 6 (_ #) In gnu/system.scm: 1295:19 5 (operating-system-derivation _) In gnu/services.scm: 1166:6 4 (instantiate-missing-services _) In srfi/srfi-1.scm: 460:18 3 (fold # =E2=80=A6) In gnu/services.scm: 1167:27 2 (_ #< target: # =E2=80=A6) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure service-kind: Wrong type argument: #< targe= t: # compute: #> --8<---------------cut here---------------end--------------->8--- --=20 Thanks, Maxim