From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cL5qAgGmemNGEQAAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 23:11:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qMWQAQGmemOfcAEAG6o9tA (envelope-from ) for ; Sun, 20 Nov 2022 23:11:13 +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 8DE6017B5F for ; Sun, 20 Nov 2022 23:11:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owsWm-0003XQ-Lo; Sun, 20 Nov 2022 17:11:04 -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 1owsWk-0003XA-Ls for bug-guix@gnu.org; Sun, 20 Nov 2022 17:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owsWk-0003ME-DG for bug-guix@gnu.org; Sun, 20 Nov 2022 17:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owsWj-0003bE-Rv for bug-guix@gnu.org; Sun, 20 Nov 2022 17:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59423: Invalid 'location' field generated in dovecot configuration Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 20 Nov 2022 22:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59423 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59423@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166898221713775 (code B ref -1); Sun, 20 Nov 2022 22:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2022 22:10:17 +0000 Received: from localhost ([127.0.0.1]:44821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsVy-0003a2-M1 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 17:10:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:57418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsVt-0003Zo-M5 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 17:10:13 -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 1owsVt-0002j4-F2 for bug-guix@gnu.org; Sun, 20 Nov 2022 17:10:09 -0500 Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owsVr-00035X-Lb for bug-guix@gnu.org; Sun, 20 Nov 2022 17:10:09 -0500 Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MZTmY-1oSgCT2q74-00WXIL for ; Sun, 20 Nov 2022 23:10:03 +0100 User-agent: mu4e 1.8.11; emacs 28.2 From: Pierre Langlois Date: Sun, 20 Nov 2022 21:53:01 +0000 Message-ID: <87y1s5wa4p.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:nd7pv8mQa6ejOAlyHq4v01+BQmKaw5sqFwjHslEtllZcZFEQjSt V5gND+EzPaYbBkkFpTkUww4Lqm0IMYukLAg4/Tq6I920m67rOVkIxflddIOv8kzFnOvpMgN ZEv8/bKcTiL5JYIzpZ4gxQXqCLWoumccSi0sfNCUfkFm3U237UEe0d08/5dE4hejem+32Yr xohGQLC6Wz1xo4Vhpe8ag== UI-OutboundReport: notjunk:1;M01:P0:3Du/jBdJXbk=;AdIQVO51jpbmDuth/xzJ/8ccOiH iDffdZYFjKRyr7r9NCycPv1CFErtIVX0mkn3QH4ISeR770QSzg1BMLdSg5/67axhOrNiI8xxC ld69BtUH7IVA4GePny0/pXXALwX3werv9aduP3q6kbd/towsOVv96jX0wHugpjaSliaNA4/8b ySAzzIM4ZAqMNSpfb8Y/gjGHwh9phlXH5In3Vro3tYLeGXFJzTRqgrpiBmQWkTep1GLWkGmEo tTlnrzhuMQe+rD3CkymZSoHHrLbF5P1LYy6YrbFZ7N4yn4n9RjUyfoSWqTNVLFKMp4cf1AIvc 8AC+VtW+LHk5IMmhwpE2J/po+ZPAmoIMLPFioVUvQFyWZWT8M8ezpeEfBu1v09sRa9hFsYKbr s/HLkAUiZih9N4v5CWCLPufFQLf+Xv+ffyQswXvuDqYO3gl/kX980eKj8+zS20JsGio8dClLa 0v3mMKUWHBrjlpOEJDFqTgLbHWsM9Le2wNlCI8arzMn3qr9jOZyLNpR/Duab3macRVNNkTwN6 WcjuC/pwtXuUBW8/NFf1XvZhNeQvrC7fs0vPr4ed0EfgFNnghOYv3Y2X/c6xlpkpIl6tgRKSf V/AxmILIzxpQjFPg1bfNqdnJkrGXWdR+7hhSs8WVkXleNXoXGVEVWy5v7ckRlRUpADDx/KMlZ UYTAJ2KOviamIAxrPGdiSQX+HS235VcPwovxOWy1ieD5MuOrnG6VIk7AvubLYx6cugutpREmx R7r67WVo0RJKB5r45Un9gNefGFpYNvJNcTi9D6TD42V6MAVG9t4EkjBpxSmt7dMDKAe+Yorum JhERkPsZQMhsErXdKgTOaHeb9sz8BDalvgC/jZOy35cRUFsa87Lj2uujQ00a8gVQq3gRjIZ0x DyDTOal+5U3wqj2sIC+BLLEoxtCX8EB1Yrv4FSvaMXyWBmh3Q6NEZ+v0Lbq7vCL1ABDz0ysO7 W3zswqx8T1M2QlZsdH2sTB6rdXY= Received-SPF: pass client-ip=212.227.17.20; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668982272; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=IDWHpXSb4PaP25RhAuc5ZpO/DXNFUEXEjt9vHSNdbGM=; b=jgqO1/bgntqYFWCBgJ/s4NZmfxJv3dSNIooFx1lH9zVoeoiqYULIqbOpcLDV/jJ66+TKjx xAyT9ft1IMeZFf2NwDUaCQhi5/sHKUgbeaRXNCYZ42XXQPEqXy9pO2nNKnD2ctcbGaqLTf eh/FX9fbJgHYEGfEECQDuAmBMdzhPfXbFju3J40C9Pl42cIxaQjYG05g4IFH8b8Qqj5UlM 2qINbXWSBig8M9hWTu4JNBPV1Vcr4ZtUvy0MwDl/gud+IRSg/YnKnuzxk1soNWN9kBC8BO KcUvpO2Qo6ZX6dsUYpPz7/PEoVsoYI4ue4yS59zE65hdg4gpFFS0ZXTzMKVQkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668982272; a=rsa-sha256; cv=none; b=sYAaAHaUOfLwFgkqKv04pXAhNFat6i4vNuTReXf54VQixsgrrJRXq/mCg8CJ55X9iAGH/j pCbGR62E4gkqZJ5p5rAPClHEVs5bz5+FIMW+vcQs5TF/jsJD0XXBVOfMY5RV0JmCEvkeZ5 tNlllNV9mWJL5Bz11rIjxVzPcHwA1cVqtPuycEcQ7k8WSX8jaImMomNYjQIjpiydSz6jJX qynR1OTlIktxeK4amrh1DZMqFOVlM+8PK+c5ii9t4YqleTqgSIz8zLslnfmcM6eV9kuPbR BXe5P4YELhUORCRiIrLN36VzeV21aVak5LWF3mYpiTregO0sGitPOcLWsnqZ6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.com (policy=none); 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" X-Migadu-Spam-Score: 0.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.com (policy=none); 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" X-Migadu-Queue-Id: 8DE6017B5F X-Spam-Score: 0.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: RB7fek/JzBw6 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Guix! After updating the system, the dovecot service got confused and started moving around all mailboxes. I looked up the configuration and noticed strange invalid syntax for the location field: =2D-8<---------------cut here---------------start------------->8--- location=3D#< file: "path/to/config.scm" line: 297 column: 20> =2D-8<---------------cut here---------------end--------------->8--- Because the # character is interpreted as a comment, dovecot doesn't crash and instead moves mailboxes around in weird ways I don't quite understand :-/. This can actually be reproduced locally with the dovecot system test if one dumps the following expression to check the configuration: =2D-8<---------------cut here---------------start------------->8--- (format #t "~a\n" (wait-for-file "/etc/dovecot/dovecot.conf" marionette #:read 'get-string-all)) =2D-8<---------------cut here---------------end--------------->8--- Giving us the snippets like this in the config: =2D-8<---------------cut here---------------start------------->8--- $ make check-system TESTS=3D"dovecot" VERBOSE=3D1 ... namespace inbox { type=3Dprivate separator=3D prefix=3D location=3D#< file: "gnu/tests/mail.scm" line: 297 column: 20> inbox=3Dyes hidden=3Dno list=3Dyes subscriptions=3Dyes mailbox "Drafts" { auto=3Dno special_use=3D\Drafts } mailbox "Junk" { auto=3Dno special_use=3D\Junk } mailbox "Trash" { auto=3Dno special_use=3D\Trash } mailbox "Sent" { auto=3Dno special_use=3D\Sent } mailbox "Sent Messages" { auto=3Dno special_use=3D\Sent } mailbox "Drafts" { auto=3Dno special_use=3D\Drafts } } ... =2D-8<---------------cut here---------------end--------------->8--- I did a `git bisect` with `guix time-machine` (this tool is invaluable) and found the issue started with this commit: =2D-8<---------------cut here---------------start------------->8--- commit 543d971ed2a1d9eb934af1f51930741d7cc4e7ef Author: Maxim Cournoyer Date: Fri Oct 28 17:06:16 2022 -0400 services: configuration: Re-order generated record fields. =20=20=20=20 This is so that the first field of the generated record matches the fir= st one declared, which makes 'define-configuration' record API compatible with define-record-type* ones. =20=20=20=20 * gnu/services/configuration.scm (define-configuration-helper): Move the %location field below the ones declared by the user. * gnu/services/monitoring.scm (zabbix-front-end-config): Adjust match p= attern accordingly. =2D-8<---------------cut here---------------end--------------->8--- Sooo, I'm guessing this is something to do with the configuration field being named "location", and /maybe/ we're patching it with the origin location of the configuration, something like that? I don't understand how this works well enough to be able to thing of any fixes. Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmN6pbcYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UELMIAIk8qZ/lNX/RHsHkjdW1H6uH ZZJ2BqN1XyqqXuILp5csv0MEKE9PlpSezY5/gTn+o09kzLD/fPkKhzGDgVCTmSXV hndYGwP6bXoyUcbxOdoE7HDB1RW+euQUt+oVUQBlgnlLlWp9wR4KjF+P4+QD6ygH VbVyxD93xArLhZe7eq6cLM9hi4wYW9UkV8eGe0SnTkwn9EAZzJpLg+lg/SudnFH+ fwdSUF7lA7HCw8t2+ObFhXuaX1mQOqACy3wQWhKg/00zo0dslu8uwJptltVbuhpX +hKbfxAUOyng+Xu6Ho8JHK2waIl76KoxCuJpLKj/8u4u4dVUSiKp8rKTPchcwfM= =1HH9 -----END PGP SIGNATURE----- --=-=-=--