GNU bug report logs -
#37662
substitution failure of nss-certs
Previous Next
Reported by: Josh Holland <josh <at> inv.alid.pw>
Date: Tue, 8 Oct 2019 14:19:02 UTC
Severity: normal
Tags: fixed
Merged with 37688
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37662 in the body.
You can then email your comments to 37662 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Tue, 08 Oct 2019 14:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Josh Holland <josh <at> inv.alid.pw>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Tue, 08 Oct 2019 14:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
After the core-updates merge today, I did the following, and it gave an
error message (I tried a couple of times, with the same result):
$ guix pull && guix package -m ~/guix-packages.scm -u .
# ... snip ...
downloading from https://ci.guix.gnu.org/nar/gzip/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45...
nss-certs-3.45 148KiB 937KiB/s 00:00 [# ] 10.8%Backtrace:
gzip: stdout: Broken pipe
3 (apply-smob/1 #<catch-closure 2146640>)
In ice-9/boot-9.scm:
705:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 21c9140>)))
In guix/ui.scm:
1734:12 0 (run-guix-command _ . _)
guix/ui.scm:1734: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)'.
nss-certs-3.45 148KiB 1.3MiB/s 00:00 [##################] 100.0%substitution of /gnu/store/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45 failed
killing process 645584
guix package: error: some substitutes for the outputs of derivation `/gnu/store/gvckkl62hkn74wcyw9x1wd0bkjf7c6y5-nss-certs-3.45.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source
I then did the same, but added the suggested `--fallback` option onto
the end:
$ guix package -m ~/guix-packages.scm -u . --fallback
# snip massive list of "the following derivations will be built"
downloading from https://ci.guix.gnu.org/nar/gzip/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45...
nss-certs-3.45 148KiB 36.0MiB/s 00:00 [# ] 10.8%Backtrace:
gzip: stdout: Broken pipe
3 (apply-smob/1 #<catch-closure 1212640>)
In ice-9/boot-9.scm:
705:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 1295140>)))
nss-certs-3.45 148KiB 12.5MiB/s 00:00 [##################] 100.0%In guix/ui.scm:
1734:12 0 (run-guix-command _ . _)
guix/ui.scm:1734: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/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45 failed
The command did then complete successfully, I assume building nss-certs
locally instead, though I can't see any further references to it in the
output.
I'm currently trying the same thing on my other computer.
--
Josh Holland
Merged 37662 37688.
Request was from
Tobias Geerinckx-Rice <me <at> tobias.gr>
to
control <at> debbugs.gnu.org
.
(Thu, 10 Oct 2019 14:04:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 10 Oct 2019 14:32:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Josh,
Josh Holland <josh <at> inv.alid.pw> skribis:
> After the core-updates merge today, I did the following, and it gave an
> error message (I tried a couple of times, with the same result):
>
> $ guix pull && guix package -m ~/guix-packages.scm -u .
> # ... snip ...
> downloading from https://ci.guix.gnu.org/nar/gzip/532l4zja85y9c69i0l0bwnsxx98gpzdw-nss-certs-3.45...
> nss-certs-3.45 148KiB 937KiB/s 00:00 [# ] 10.8%Backtrace:
>
> gzip: stdout: Broken pipe
> 3 (apply-smob/1 #<catch-closure 2146640>)
> In ice-9/boot-9.scm:
> 705:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
> In ice-9/eval.scm:
> 619:8 1 (_ #(#(#<directory (guile-user) 21c9140>)))
> In guix/ui.scm:
> 1734:12 0 (run-guix-command _ . _)
>
> guix/ui.scm:1734: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)'.
This package contains non-ASCII UTF-8-encoded file names.
I suppose the error here is because you’re daemon is missing its UTF-8
locales.
This could be because you upgraded the daemon but did not upgrade the
‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
HTH,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Tue, 15 Oct 2019 18:21:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo',
Ludovic Courtès <ludo <at> gnu.org> writes:
> I suppose the error here is because you’re daemon is missing its UTF-8
> locales.
>
> This could be because you upgraded the daemon but did not upgrade the
> ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
It's possible - I rarely do anything with the root profile, and wasn't
even aware that I had to keep it up to date. Should I have to `guix
pull` and `guix upgrade` it regularly, as well as my user profile?
--
Josh Holland
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Tue, 15 Oct 2019 19:51:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 37662 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Josh Holland <josh <at> inv.alid.pw> writes:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>> I suppose the error here is because you’re daemon is missing its UTF-8
>> locales.
>>
>> This could be because you upgraded the daemon but did not upgrade the
>> ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
>
> It's possible - I rarely do anything with the root profile, and wasn't
> even aware that I had to keep it up to date. Should I have to `guix
> pull` and `guix upgrade` it regularly, as well as my user profile?
I install glibc-locales as a system-wide package in my operating-system
configuration. Perhaps that's what Ludo meant to say.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Wed, 16 Oct 2019 17:23:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Arun,
Arun Isaac <arunisaac <at> systemreboot.net> writes:
> I install glibc-locales as a system-wide package in my operating-system
> configuration. Perhaps that's what Ludo meant to say.
I probably should have mentioned in my initial report that this is Guix
running on top of a foreign distro (Arch).
--
Josh Holland
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Wed, 16 Oct 2019 20:35:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Josh,
Josh Holland <josh <at> inv.alid.pw> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>> I suppose the error here is because you’re daemon is missing its UTF-8
>> locales.
>>
>> This could be because you upgraded the daemon but did not upgrade the
>> ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
>
> It's possible - I rarely do anything with the root profile, and wasn't
> even aware that I had to keep it up to date.
In practice you rarely need to update it, but sometimes it’s nice to do.
> Should I have to `guix pull` and `guix upgrade` it regularly, as well
> as my user profile?
‘guix pull’ alone updates the daemon and provides it with
‘glibc-utf8-locales’, which may or may not be enough for your purposes.
Could you run:
cat /proc/PID/environ | xargs -0 echo
where PID is the PID of ‘guix-daemon’ as shown by ‘systemctl status’?
TIA,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Wed, 16 Oct 2019 22:27:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Ludovic,
Ludovic Courtès <ludo <at> gnu.org> writes:
>
> cat /proc/PID/environ | xargs -0 echo
>
LANG=en_GB.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/bin INVOCATION_ID=15155558aca749efa1593610e892c3a0 JOURNAL_STREAM=9:19872 GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale GUIX=/gnu/store/f2zvgl9zz13r6rp89y0jjfj9f4jk5h9s-guix-command GUIX_STATE_DIRECTORY=/var/guix GUIX_CONFIGURATION_DIRECTORY=/etc/guix NIX_STORE_DIR=/gnu/store
--
Josh Holland
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 00:32:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 37662 <at> debbugs.gnu.org (full text, mbox):
On +2019-10-16 23:25:55 +0100, Josh Holland wrote:
>
> Hi Ludovic,
>
> Ludovic Courtès <ludo <at> gnu.org> writes:
> >
> > cat /proc/PID/environ | xargs -0 echo
> >
>
> LANG=en_GB.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/bin INVOCATION_ID=15155558aca749efa1593610e892c3a0 JOURNAL_STREAM=9:19872 GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale GUIX=/gnu/store/f2zvgl9zz13r6rp89y0jjfj9f4jk5h9s-guix-command GUIX_STATE_DIRECTORY=/var/guix GUIX_CONFIGURATION_DIRECTORY=/etc/guix NIX_STORE_DIR=/gnu/store
>
> --
> Josh Holland
>
Hi Ludo, Josh,
If you want something that looks like env output, this works for me:
(also easier reading)
cat /proc/PID/environ | sed -E 's:\x00:\n:g'
You knew that, I know, but some onlookers might not :)
BTW, if this is considered ill-mannered besserwisser kibitzing,
or OT-noise-injection, please advise, et je serais sage ;-)
--
Regards,
Bengt Richter
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 05:08:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 37662 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 16/10/19 06:50, Arun Isaac wrote:
>
> Josh Holland <josh <at> inv.alid.pw> writes:
>
>> Ludovic Courtès <ludo <at> gnu.org> writes:
>>> I suppose the error here is because you’re daemon is missing its UTF-8
>>> locales.
>>>
>>> This could be because you upgraded the daemon but did not upgrade the
>>> ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
>>
>> It's possible - I rarely do anything with the root profile, and wasn't
>> even aware that I had to keep it up to date. Should I have to `guix
>> pull` and `guix upgrade` it regularly, as well as my user profile?
>
> I install glibc-locales as a system-wide package in my operating-system
> configuration. Perhaps that's what Ludo meant to say.
Hi Ludo, is it best to install glibc-locales or glibc-utf8-locales in
the operating system configuration as Arun suggests?
I hit the same issue doing a reconfigure on Guix System after not having
these locales either in user, root or system profiles (though I'm unsure
whether root and system are the same thing).
I had been ignoring the recent hints "Consider installing the
`glibc-utf8-locales' or `glibc-locales'..." because it wasn't clear why
this was useful to do.
Should these locales just be installed by default on Guix System? Or
maybe this is one of those issues that I hit because I hadn't upgraded
within a certain window of changes.
(For other non Guix experts like myself, I fixed my system by `guix
pull` as root, followed by `guix package --install glibc-utf8-locales
glibc-locales`, restarted guix daemon with `herd stop guix-daemon`,
checked to see if it was really stopped with `ps aux | grep
guix-daemon`, it wasn't so used `kill [the-process-id]`, started with
`herd start guix-daemon` and then the reconfigure worked.)
Cheers,
Ben
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 09:09:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Josh,
Josh Holland <josh <at> inv.alid.pw> skribis:
> Ludovic Courtès <ludo <at> gnu.org> writes:
>>
>> cat /proc/PID/environ | xargs -0 echo
>>
>
> LANG=en_GB.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
> INVOCATION_ID=15155558aca749efa1593610e892c3a0 JOURNAL_STREAM=9:19872
> GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
[…]
Does
/var/guix/profiles/per-user/root/guix-profile/lib/locale/*/en_GB.UTF-8
exists?
If you installed ‘glibc-utf8-locales’ in root’s profile, it certainly
doesn’t:
--8<---------------cut here---------------start------------->8---
$ ls $(guix build glibc-utf8-locales)/lib/locale/2.29
de_DE.utf8 el_GR.utf8 en_US.utf8 fr_FR.utf8 tr_TR.utf8
de_DE.UTF-8 el_GR.UTF-8 en_US.UTF-8 fr_FR.UTF-8 tr_TR.UTF-8
--8<---------------cut here---------------end--------------->8---
So I think you have to install the ‘glibc-locales’ package in root’s
profile:
guix install glibc-locales
Let me know if it helps!
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 09:14:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi,
Ben Sturmfels <ben <at> stumbles.id.au> skribis:
> On 16/10/19 06:50, Arun Isaac wrote:
>>
>> Josh Holland <josh <at> inv.alid.pw> writes:
>>
>>> Ludovic Courtès <ludo <at> gnu.org> writes:
>>>> I suppose the error here is because you’re daemon is missing its UTF-8
>>>> locales.
>>>>
>>>> This could be because you upgraded the daemon but did not upgrade the
>>>> ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?
>>>
>>> It's possible - I rarely do anything with the root profile, and wasn't
>>> even aware that I had to keep it up to date. Should I have to `guix
>>> pull` and `guix upgrade` it regularly, as well as my user profile?
>>
>> I install glibc-locales as a system-wide package in my operating-system
>> configuration. Perhaps that's what Ludo meant to say.
>
> Hi Ludo, is it best to install glibc-locales or glibc-utf8-locales in
> the operating system configuration as Arun suggests?
It’s best to install none of these. :-)
On Guix System, the mechanism is more fine-grained: the admin declares
precisely the locales they want in the ‘locale’ and ‘locale-definitions’
fields, and only those get installed. See
<https://guix.gnu.org/manual/devel/en/html_node/Locales.html>.
> I hit the same issue doing a reconfigure on Guix System after not having
> these locales either in user, root or system profiles (though I'm unsure
> whether root and system are the same thing).
This is probably due to the switch to glibc 2.29: your system now
provides locales for glibc 2.29 only, but if you have binaries linked
against 2.28, they need 2.28 locale data.
To do that, add ‘glibc-2.28’ to the ‘locale-libcs’ field:
<https://guix.gnu.org/manual/devel/en/html_node/Locales.html#Locale-Data-Compatibility-Considerations>.
(Normally ‘guix pull --news’ mentioned it when you upgraded.)
Perhaps on we should just add the current and previous glibc to
‘locale-libcs’ by default.
HTH!
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 10:30:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Does
> /var/guix/profiles/per-user/root/guix-profile/lib/locale/*/en_GB.UTF-8
> exists?
Seems so (see below).
> guix install glibc-locales
This was already installed too:
--8<------------
[root <at> spica ~]# guix install glibc-locales
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="$HOME/.guix-profile/lib/locale"
See the "Application Setup" section in the manual, for more info.
The following package will be upgraded:
glibc-locales 2.29 -> 2.29 /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29
nothing to be done
[root <at> spica ~]# ls /var/guix/profiles/per-user/root/guix-profile/lib/locale/*/en_GB.UTF-8
LC_ADDRESS LC_CTYPE LC_MEASUREMENT LC_MONETARY LC_NUMERIC LC_TELEPHONE
LC_COLLATE LC_IDENTIFICATION LC_MESSAGES LC_NAME LC_PAPER LC_TIME
--8<------------
--
Josh Holland
Information forwarded
to
bug-guix <at> gnu.org
:
bug#37662
; Package
guix
.
(Thu, 17 Oct 2019 12:06:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 37662 <at> debbugs.gnu.org (full text, mbox):
Hi,
Josh Holland <josh <at> inv.alid.pw> skribis:
> [root <at> spica ~]# guix install glibc-locales
> guile: warning: failed to install locale
> hint: Consider installing the `glibc-utf8-locales' or `glibc-locales' package and defining
Note that this tells you that this ‘guix’ command is probably linked
against 2.28; this is fixed by making sure you’re running the latest
‘guix’ produced by ‘guix pull’, for instance with:
~root/.config/guix/current/bin/guix install glibc-locales
(IOW, it’s not the same problem as substitution problem we were
initially discussing.)
Ludo’.
Added tag(s) fixed.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 21 Oct 2019 12:35:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
37662 <at> debbugs.gnu.org and Josh Holland <josh <at> inv.alid.pw>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 21 Oct 2019 12:35:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 19 Nov 2019 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.