From unknown Sat Aug 16 11:39:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44825: Error in reporting guix deploy error Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 23 Nov 2020 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44825 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44825@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16061550396924 (code B ref -1); Mon, 23 Nov 2020 18:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Nov 2020 18:10:39 +0000 Received: from localhost ([127.0.0.1]:51079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGIR-0001nb-3y for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:10:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:39988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGIQ-0001nV-Cy for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:10:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGIQ-0002KC-88 for bug-guix@gnu.org; Mon, 23 Nov 2020 13:10:38 -0500 Received: from dustycloud.org ([50.116.34.160]:36266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGIO-0007mM-MH for bug-guix@gnu.org; Mon, 23 Nov 2020 13:10:37 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 949BA266EC for ; Mon, 23 Nov 2020 13:10:11 -0500 (EST) User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber Date: Mon, 23 Nov 2020 13:09:42 -0500 Message-ID: <8736102bdl.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Seems strange... the message I get: guix deploy: error: failed to deploy tulsi: ~A: ~S Errors upon errors! Formatting this time, apparently. :) Looking at the relevant code: (define (deploy-machine* store machine) "Deploy MACHINE, taking care of error handling." (info (G_ "deploying to ~a...~%") (machine-display-name machine)) (guard (c ((message-condition? c) (report-error (G_ "failed to deploy ~a: ~a~%") (machine-display-name machine) (condition-message c))) ((deploy-error? c) (when (deploy-error-should-roll-back c) (info (G_ "rolling back ~a...~%") (machine-display-name machine)) (run-with-store store (roll-back-machine machine))) (apply throw (deploy-error-captured-args c)))) (run-with-store store (deploy-machine machine)) (info (G_ "successfully deployed ~a~%") (machine-display-name machine)))) I looked at other examples of report-error, they seemed similar.. can't see why this one wouldn't be formatting correctly. Any idea? From unknown Sat Aug 16 11:39:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44825: Error in reporting guix deploy error Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 23 Nov 2020 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44825 X-GNU-PR-Package: guix X-GNU-PR-Keywords: Cc: 44825@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 44825@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160615721110531 (code B ref -1); Mon, 23 Nov 2020 18:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Nov 2020 18:46:51 +0000 Received: from localhost ([127.0.0.1]:51149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGrS-0002jm-Qt for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:46:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:52718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGrR-0002jf-2t for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:46:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGrQ-0004UU-RF for bug-guix@gnu.org; Mon, 23 Nov 2020 13:46:48 -0500 Received: from dustycloud.org ([50.116.34.160]:36314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGrO-0003Oz-33 for bug-guix@gnu.org; Mon, 23 Nov 2020 13:46:47 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id C5EEA266EC; Mon, 23 Nov 2020 13:46:20 -0500 (EST) References: <8736102bdl.fsf@dustycloud.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber In-reply-to: <8736102bdl.fsf@dustycloud.org> Date: Mon, 23 Nov 2020 13:45:52 -0500 Message-ID: <87wnyb29pb.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, MISSING_HEADERS=1.021, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) By the way, I did pinpoint out what caused the failure in *deploying*, but not what caused the error message to not format correctly. The mistake was: (modify-services %desktop-services (guix-service-type config => (guix-configuration (inherit config) (authorized-keys - (append (list (local-file "twig-guix-signing-key.pub")) + (append (list (local-file "../keys/twig-guix-signing-key.pub")) %default-authorized-guix-keys))))) So basically I referenced a file that doesn't exist with local-file. But why would that cause the string formatting to fail? Dunno... Christopher Lemmer Webber writes: > Seems strange... the message I get: > > guix deploy: error: failed to deploy tulsi: ~A: ~S > > Errors upon errors! Formatting this time, apparently. :) > > Looking at the relevant code: > > (define (deploy-machine* store machine) > "Deploy MACHINE, taking care of error handling." > (info (G_ "deploying to ~a...~%") > (machine-display-name machine)) > > (guard (c ((message-condition? c) > (report-error (G_ "failed to deploy ~a: ~a~%") > (machine-display-name machine) > (condition-message c))) > ((deploy-error? c) > (when (deploy-error-should-roll-back c) > (info (G_ "rolling back ~a...~%") > (machine-display-name machine)) > (run-with-store store (roll-back-machine machine))) > (apply throw (deploy-error-captured-args c)))) > (run-with-store store (deploy-machine machine)) > > (info (G_ "successfully deployed ~a~%") > (machine-display-name machine)))) > > I looked at other examples of report-error, they seemed similar.. can't > see why this one wouldn't be formatting correctly. Any idea? From unknown Sat Aug 16 11:39:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christopher Lemmer Webber Subject: bug#44825: closed (Re: bug#44825: Error in reporting guix deploy error) Message-ID: References: <87eekfzqp0.fsf@gnu.org> <8736102bdl.fsf@dustycloud.org> X-Gnu-PR-Message: they-closed 44825 X-Gnu-PR-Package: guix Reply-To: 44825@debbugs.gnu.org Date: Thu, 26 Nov 2020 22:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1606430522-678-1" This is a multi-part message in MIME format... ------------=_1606430522-678-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44825: Error in reporting guix deploy error which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44825@debbugs.gnu.org. --=20 44825: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44825 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1606430522-678-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44825-done) by debbugs.gnu.org; 26 Nov 2020 22:41:42 +0000 Received: from localhost ([127.0.0.1]:43134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiPxN-0000AK-Tj for submit@debbugs.gnu.org; Thu, 26 Nov 2020 17:41:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiPxL-0000A6-5B for 44825-done@debbugs.gnu.org; Thu, 26 Nov 2020 17:41:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52255) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiPxF-0006M3-Pe; Thu, 26 Nov 2020 17:41:33 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45538 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiPxF-0004iR-3I; Thu, 26 Nov 2020 17:41:33 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Lemmer Webber Subject: Re: bug#44825: Error in reporting guix deploy error References: <8736102bdl.fsf@dustycloud.org> Date: Thu, 26 Nov 2020 23:41:31 +0100 In-Reply-To: <8736102bdl.fsf@dustycloud.org> (Christopher Lemmer Webber's message of "Mon, 23 Nov 2020 13:09:42 -0500") Message-ID: <87eekfzqp0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44825-done Cc: 44825-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Chris, Christopher Lemmer Webber skribis: > Seems strange... the message I get: > > guix deploy: error: failed to deploy tulsi: ~A: ~S > > Errors upon errors! Formatting this time, apparently. :) > > Looking at the relevant code: > > (define (deploy-machine* store machine) > "Deploy MACHINE, taking care of error handling." > (info (G_ "deploying to ~a...~%") > (machine-display-name machine)) > > (guard (c ((message-condition? c) > (report-error (G_ "failed to deploy ~a: ~a~%") > (machine-display-name machine) > (condition-message c))) [...] I believe this is fixed by 5842239a66683b2f5e36e95da8225e2ab7f7dac3. Thanks! Ludo=E2=80=99. ------------=_1606430522-678-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Nov 2020 18:10:39 +0000 Received: from localhost ([127.0.0.1]:51079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGIR-0001nb-3y for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:10:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:39988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khGIQ-0001nV-Cy for submit@debbugs.gnu.org; Mon, 23 Nov 2020 13:10:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGIQ-0002KC-88 for bug-guix@gnu.org; Mon, 23 Nov 2020 13:10:38 -0500 Received: from dustycloud.org ([50.116.34.160]:36266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khGIO-0007mM-MH for bug-guix@gnu.org; Mon, 23 Nov 2020 13:10:37 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 949BA266EC for ; Mon, 23 Nov 2020 13:10:11 -0500 (EST) User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber To: bug-guix@gnu.org Subject: Error in reporting guix deploy error Date: Mon, 23 Nov 2020 13:09:42 -0500 Message-ID: <8736102bdl.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Seems strange... the message I get: guix deploy: error: failed to deploy tulsi: ~A: ~S Errors upon errors! Formatting this time, apparently. :) Looking at the relevant code: (define (deploy-machine* store machine) "Deploy MACHINE, taking care of error handling." (info (G_ "deploying to ~a...~%") (machine-display-name machine)) (guard (c ((message-condition? c) (report-error (G_ "failed to deploy ~a: ~a~%") (machine-display-name machine) (condition-message c))) ((deploy-error? c) (when (deploy-error-should-roll-back c) (info (G_ "rolling back ~a...~%") (machine-display-name machine)) (run-with-store store (roll-back-machine machine))) (apply throw (deploy-error-captured-args c)))) (run-with-store store (deploy-machine machine)) (info (G_ "successfully deployed ~a~%") (machine-display-name machine)))) I looked at other examples of report-error, they seemed similar.. can't see why this one wouldn't be formatting correctly. Any idea? ------------=_1606430522-678-1--