From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id p+/0Oj+P0GHSjAAAgWs5BA (envelope-from ) for ; Sat, 01 Jan 2022 18:28:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6LygNz+P0GHzWAAA9RJhRA (envelope-from ) for ; Sat, 01 Jan 2022 18:28:31 +0100 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 137E437548 for ; Sat, 1 Jan 2022 18:28:31 +0100 (CET) Received: from localhost ([::1]:39308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3iBB-0006cg-Ci for larch@yhetil.org; Sat, 01 Jan 2022 12:28:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3iAf-0006bi-Oa for help-guix@gnu.org; Sat, 01 Jan 2022 12:27:59 -0500 Received: from sender3-op-o11.zoho.com ([136.143.184.11]:17139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3iAc-0000WE-Sa for help-guix@gnu.org; Sat, 01 Jan 2022 12:27:57 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1641058067; cv=none; d=zohomail.com; s=zohoarc; b=WnNHHiL6AlltcgNEjbo5Q6yQhl26rgakNDXe11SWUgCnyXRb+rDd5kHm7PNXuiSoSQOHSTfQCOEEr3VnXa7b2b1KSrkXRcmAWQxHybd/YyoyBJPToZSf30ClGR9BO+q5akSNKL7dakxhbuMP+U82QUx27dQSEbpJSrBIeFKaYAk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641058067; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=ODkVNJ7CjgbENOxuOABxm/0p1EjQu31xyEWRjLB1HH4=; b=MZ8XAJ7A1reNqnupC5Eo5H80CjQDA/053r7zrMgBtnEzcbDe5TH5C30pql5dqMDI6rw4RMe8s2V7plcMile8DaCrQCBbbDCX1Ft1iL4cMy7oYbDO5Gu8g3dsK65DXCKwGA746Ov/Xx/CIHvqeMMB3Y7svxBehlmbgcb7CPHVBDs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641058067; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=ODkVNJ7CjgbENOxuOABxm/0p1EjQu31xyEWRjLB1HH4=; b=YBJzagjN2L+f2I1OmjhPun8A37FKUQ/ZGv134pqmty6EF8CnJ1yEbpStR/c5gWqa e8tua+kf34V6VboBFawiz94FxJYpmfmrUyZaNcazD79YFfpI8dN8YQ8QA2/5dbbQzDf uK7Mr0KCFbvaK0XcVhfqcw8PUAbKrizPUNVMPoSw= Received: from schwarzy (lfbn-idf3-1-439-245.w83-114.abo.wanadoo.fr [83.114.32.245]) by mx.zohomail.com with SMTPS id 164105806475286.06731120263828; Sat, 1 Jan 2022 09:27:44 -0800 (PST) User-agent: mu4e 1.6.10; emacs 27.2 From: edk@beaver-labs.com To: help-guix@gnu.org Subject: Unknown getter "operating-system-user-services" Date: Sat, 01 Jan 2022 18:11:36 +0100 Message-ID: <874k6n74gd.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.11; envelope-from=edk@beaver-labs.com; helo=sender3-op-o11.zoho.com X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641058111; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ODkVNJ7CjgbENOxuOABxm/0p1EjQu31xyEWRjLB1HH4=; b=igJSH6sALixuNiZHOrJ//KkpgIENdjia6+89SvJFD30QZ5LOq/Apdcrp5EWPQ1/ms0B7v9 xFCGRqTynpQ8F34WRNL/fWtl00IFQyet+pOMMB4uCmfREQXX1bkANwqezSVLTXpPEWG5Ok OFS6T06o3Bhj4MZJoKAm8oLo0nYCsrCj+B1rU8FrX5NZdyx3cVzEiSRUj7LX2skTVba6zF zw12sHKW47F72UnHFtAlR41YVJQYVJ/3K1RuiD+pytR2iPSi80WLK/wujXdAJXyhEa1scl rZhPjXm+n65TXWdU7M1O4YNAs2zHeixgKHRAKbU/2+wMuN8DVPZg1LaIZSuwfg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1641058111; a=rsa-sha256; cv=pass; b=qzPWsjn+M+u08K8Jqhz8SEI18zyen/AwX2+tdYENwbSpKLyw8w6ED1p6MUx3j6AIn6FBSf gw49++LR/4J02wZxDtP0bXVt7chcgfjhlU6E09qd9sUoNM0ZCICm+Pg0EylNex4ipCI+RH PSwbl8xLgQXzOOZfMjCglK2rSCu+cAcKnqD3+2Jr/frDFv0DGUFa9mfg3ScWqd8qrjfZvj X6EaJs0k09f22ZG6UIbL+ZySYm5OT295kIGy//Fihk3KCt0nqw1g9L9mBWdSC1HJScz3jW dErmeK3I0iYDIVdho2+4t648ryDge/Bv830VIkdcll4i5CwVdx2c1EJgP9Rmpg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=beaver-labs.com header.s=zoho header.b=YBJzagjN; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.88 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=beaver-labs.com header.s=zoho header.b=YBJzagjN; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 137E437548 X-Spam-Score: -5.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: TcPA4AVbIXXp Dear all, In order to programmatically define operating-systems, I use a functional approach, where I edit the fields of the operating-system structure using set-fields, like so: https://gitlab.com/edouardklein/guix/-/blob/beaverlabs/beaver/system.scm#L1= 06 #+begin_src scheme (define* (add-something-to os) "Return a copy of OS (an operating-system) edited in such a way that some= functionality is added to it." (set-fields os ((operating-system-user-services) (cons (simple-service "toto" some-service-type (list (some-s= ervice-conf))) (operating-system-user-services os))))) #+end_src This allows for very nice OS declarations, for example my VPS is declared like this, and it is immediately clear which services it provides: #+begin_src scheme (-> minimal-ovh (packages (list git)) (denatting-webapp #:port 8000) (https-reverse-proxy #:from-host "denatting.beaver-labs.com" #:fullchain-path "/srv/ssl/certs/*.beaver-labs.com/fullchain.cer" #:privkey-path "/srv/ssl/certs/*.beaver-labs.com/private.key" #:to-port 8000 #:raw-content '("client_max_body_size 1024M;")) (requisomatic-webapp #:port 8001) (https-reverse-proxy #:from-host "requisomatic.beaver-labs.com" #:fullchain-path "/srv/ssl/certs/*.beaver-labs.com/fullchain.cer" #:privkey-path "/srv/ssl/certs/*.beaver-labs.com/private.key" #:to-port 8001) (https-static-content #:from-host "dump.rdklein.fr" #:fullchain-path "/srv/ssl/certs/*.rdklein.fr/fullchain.cer" #:privkey-path "/srv/ssl/certs/*.rdklein.fr/private.key" #:to-dir "/srv/dump.rdklein.fr" #:allow-dir-listing #t) (https-static-content #:from-host "rdklein.fr" #:fullchain-path "/srv/ssl/certs/rdklein.fr/fullchain.cer" #:privkey-path "/srv/ssl/certs/rdklein.fr/private.key" #:to-dir "/srv/rdklein.fr" #:allow-dir-listing #f)) #+end_src When I tried a guix pull today (after 18 days of not pulling), I got the following error (with the above git repo being in my channels): #+begin_src (repl-version 0 1 1) (exception syntax-error (value operating-system-user-services) (value "Wron= g number of arguments") (value ((filename . "/gnu/store/xdvrkpldalcqjl9f10x= 9mlynkc8hb1bv-guix-45357d6/beaver/packages/python-xyz.scm") (line . 306) (c= olumn . 2))) (value (operating-system-user-services (%%on-error (unknown-ge= tter (set-fields os ((operating-system-user-services) (cons (service requis= omatic-service-type (requisomatic-configuration (user user) (group group) (= db-file db-file) (log-file log-file) (pid-file pid-file) (bind-to (format #= f "~a:~a" ip port)))) (operating-system-user-services os)))) operating-syst= em-user-services)) %%type (((c-list)) ((c-same-type-check (quote (set-field= s os ((operating-system-user-services) (cons (service requisomatic-service-= type (requisomatic-configuration (user user) (group group) (db-file db-file= ) (log-file log-file) (pid-file pid-file) (bind-to (format #f "~a:~a" ip po= rt)))) (operating-system-user-services os))))) (quote ()) (quote (operating= -system-user-services))) (quote (let ((s os)) ((ck () ((@@ (srfi srfi-9) ge= tter-copier) (quote operating-system-user-services) (quote (unknown-getter = (set-fields os ((operating-system-user-services) (cons (service requisomati= c-service-type (requisomatic-configuration (user user) (group group) (db-fi= le db-file) (log-file log-file) (pid-file pid-file) (bind-to (format #f "~a= :~a" ip port)))) (operating-system-user-services os)))) operating-system-us= er-services)))) #t s (operating-system-user-services (%set-fields #t (set-f= ields os ((operating-system-user-services) (cons (service requisomatic-serv= ice-type (requisomatic-configuration (user user) (group group) (db-file db-= file) (log-file log-file) (pid-file pid-file) (bind-to (format #f "~a:~a" i= p port)))) (operating-system-user-services os)))) (operating-system-user-se= rvices) (struct-ref s (ck () ((@@ (srfi srfi-9) getter-index) (quote operat= ing-system-user-services) (quote (unknown-getter (set-fields os ((operating= -system-user-services) (cons (service requisomatic-service-type (requisomat= ic-configuration (user user) (group group) (db-file db-file) (log-file log-= file) (pid-file pid-file) (bind-to (format #f "~a:~a" ip port)))) (operatin= g-system-user-services os)))) operating-system-user-services))))) (() (cons= (service requisomatic-service-type (requisomatic-configuration (user user)= (group group) (db-file db-file) (log-file log-file) (pid-file pid-file) (b= ind-to (format #f "~a:~a" ip port)))) (operating-system-user-services os)))= ))))))))) (value #f)) #+end_src If you want to try, here is my channels.scm file: #+begin_src (cons* (channel (name 'beaverlabs) (url "https://gitlab.com/edouardklein/guix") (branch "beaverlabs")) (channel (name 'guix-gaming-games) (url "https://gitlab.com/guix-gaming-channels/games.git") ;; Enable signature verification: (introduction (make-channel-introduction "c23d64f1b8cc086659f8781b27ab6c7314c5cca5" (openpgp-fingerprint "50F3 3E2E 5B0C 3D90 0424 ABE8 9BDC F497 A4BB CC7F")))) %default-channels) #+end_src I'll dive into it sometimes later this week or the week after, but if somebody know right of the bat what might cause this problem, I'd be happy to know. Thanks in advance, Cheers, Edouard.