From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uDUhI40PSV9EKwAA0tVLHw (envelope-from ) for ; Fri, 28 Aug 2020 14:07:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sPu3Ho0PSV9pQAAAbx9fmQ (envelope-from ) for ; Fri, 28 Aug 2020 14:07:09 +0000 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 DCBDD94093C for ; Fri, 28 Aug 2020 14:07:08 +0000 (UTC) Received: from localhost ([::1]:60486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBf23-0000sY-Ov for larch@yhetil.org; Fri, 28 Aug 2020 10:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBf10-0008MV-54 for bug-guix@gnu.org; Fri, 28 Aug 2020 10:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBf0z-0003B5-Qb for bug-guix@gnu.org; Fri, 28 Aug 2020 10:06:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBf0z-0000Vy-J9 for bug-guix@gnu.org; Fri, 28 Aug 2020 10:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43039: Vanilla GUIX 1.1.0 reconfigure fails on nss-certs Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Aug 2020 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43039 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Adam Griffiths Received: via spool by 43039-submit@debbugs.gnu.org id=B43039.15986235561961 (code B ref 43039); Fri, 28 Aug 2020 14:06:01 +0000 Received: (at 43039) by debbugs.gnu.org; 28 Aug 2020 14:05:56 +0000 Received: from localhost ([127.0.0.1]:47012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBf0u-0000VX-AL for submit@debbugs.gnu.org; Fri, 28 Aug 2020 10:05:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBf0s-0000VE-2n for 43039@debbugs.gnu.org; Fri, 28 Aug 2020 10:05:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBf0m-00036Z-SU; Fri, 28 Aug 2020 10:05:48 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=49268 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kBf0l-0004qv-LL; Fri, 28 Aug 2020 10:05:48 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 Fructidor an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 28 Aug 2020 16:05:45 +0200 In-Reply-To: (Adam Griffiths's message of "Tue, 25 Aug 2020 20:43:29 +1000") Message-ID: <877dtiq30m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43039@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: JsRLds7TkvJv Hi Adam, Thanks for taking the time to report the bug here! It=E2=80=99s more likel= y to be seen and addressed than on external fora=E2=80=94much appreciated. Adam Griffiths skribis: > After installing GuixSD 1.1.0 into a VirtualBox VM and following the After > System Installation steps ( > https://guix.gnu.org/manual/en/html_node/After-System-Installation.html#A= fter-System-Installation), > the update fails when trying to update nss-certs. > > Possibly related to #37662 > > Error: > > $ guix pull > Migrating profile generations to '/var/guix/profiles/per-user/adam'... > Updating channel 'guix' from Git repository at ' > https://git.savannah.gnu.org/git/guix.git'... > I got rid of the =E2=80=9CMigrating profile=E2=80=9D messages, which was co= nfusing: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D0c9d22c13fef90564= 13338293747c0d32f0cd5a4 > $ sudo guix system reconfigure /etc/config.scm > > guile: warning: failed to install locale > hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' > package and defining > `GUIX_LOCPATH', along these lines: > > guix package -i glibc-utf8-locales > export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" > > See the "Application Setup" section in the manual, for more info. > > guix system: warning: cannot determine provenance for current system > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% That, I don=E2=80=99t understand. I tried to reproduce it by downloading (which is essentially the result of installing Guix System from 1.1.0). I ran =E2=80=98guix pull=E2=80=99 (which took a lot of time=E2=80=A6) and t= hen =E2=80=98guix system reconfigure=E2=80=99. =E2=80=98guix system reconfigure=E2=80=99 would only= emit the one-liner: warning: failed to install locale and not the hint about GUIX_LOCPATH, and then it just went ahead. What locale does your system use? You can type =E2=80=9Cenv | grep LC_=E2= =80=9D to see. (The =E2=80=98guix=E2=80=99 command provided by =E2=80=98guix pull=E2=80=99= comes with =E2=80=98glibc-utf8-locales=E2=80=99 since commit ba48895899a117d6ace2209c3f54411a4a989133, but the locale you=E2=80=99re usi= ng could be missing from that.) > downloading from > https://ci.guix.gnu.org/nar/lzip/0llx3y194278l5ksr4xh9kc64mh8nn8d-nss-cer= ts-3.52.1 > ... > nss-certs-3.52.1 133KiB 186KiB/s 00:= 00 > [######## ] 48.3% > Backtrace: > 3 (apply-smob/1 #) > In ice-9/boot-9.scm: > 705:2 2 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 1 (_ #(#(#))) > In guix/ui.scm: > 1936:12 0 (run-guix-command _ . _) > > guix/ui.scm:1936:12: In procedure run-guix-command: > Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert > wide string to output locale" 84 #f #f)'. > substitution of > /gnu/store/0llx3y194278l5ksr4xh9kc64mh8nn8d-nss-certs-3.52.1 failed This is really puzzling: guix-daemon is always running in a valid UTF-8 locale, as can be seen like this: --8<---------------cut here---------------start------------->8--- $ sudo herd status guix-daemon Status of guix-daemon: It is started. Running value is 29814. It is enabled. Provides (guix-daemon). Requires (user-processes). Conflicts with (). Will be respawned. $ sudo cat /proc/29814/environ |tr '\0' '\n'=20 GUIX_LOCPATH=3D/gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-local= es-2.31/lib/locale LC_ALL=3Den_US.utf8 --8<---------------cut here---------------end--------------->8--- However, I just realized that =E2=80=98guix substitute=E2=80=99 switches to= the client=E2=80=99s locale: --8<---------------cut here---------------start------------->8--- ;; Attempt to install the client's locale, mostly so that messages are ;; suitably translated. (match (or (find-daemon-option "untrusted-locale") (find-daemon-option "locale")) (#f #f) (locale (false-if-exception (setlocale LC_ALL locale)))) --8<---------------cut here---------------end--------------->8--- Thus, if the client is running in a non-UTF-8 locale, we can end up with the error you report. Thanks, Ludo=E2=80=99.