From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 13:10:39 2020 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? From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 13:46:51 2020 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 Subject: Re: bug#44825: Error in reporting guix deploy error 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-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, 44825@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: -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 debbugs-submit-bounces@debbugs.gnu.org Thu Nov 26 17:41:42 2020 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. From unknown Mon Jun 16 23:48:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 Dec 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator