all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* locale warnings
@ 2018-06-25 16:35 Hinko Kocevar
  2018-06-25 23:07 ` Hinko Kocevar
  2018-06-26 11:39 ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Hinko Kocevar @ 2018-06-25 16:35 UTC (permalink / raw)
  To: help-guix@gnu.org

HI,

I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation:

substitute: guile: warning: failed to install locale
substitute: warning: failed to install locale: Invalid argument

Any ideas?

TIA,

Hinko Kocevar

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-25 16:35 locale warnings Hinko Kocevar
@ 2018-06-25 23:07 ` Hinko Kocevar
  2018-06-26 11:39 ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Hinko Kocevar @ 2018-06-25 23:07 UTC (permalink / raw)
  To: help-guix@gnu.org

Seems that if I start the daemon on CLI locale warning appear.. if using systemctl start guix-daemon instead, no warnings.
________________________________________
From: Help-Guix <help-guix-bounces+hinko.kocevar=esss.se@gnu.org> on behalf of Hinko Kocevar <Hinko.Kocevar@esss.se>
Sent: Monday, June 25, 2018 6:35:43 PM
To: help-guix@gnu.org
Subject: locale warnings

HI,

I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation:

substitute: guile: warning: failed to install locale
substitute: warning: failed to install locale: Invalid argument

Any ideas?

TIA,

Hinko Kocevar

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-25 16:35 locale warnings Hinko Kocevar
  2018-06-25 23:07 ` Hinko Kocevar
@ 2018-06-26 11:39 ` Ludovic Courtès
  2018-06-26 12:21   ` Hinko Kocevar
  1 sibling, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2018-06-26 11:39 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: help-guix@gnu.org

Hello,

Hinko Kocevar <Hinko.Kocevar@esss.se> skribis:

> I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation:
>
> substitute: guile: warning: failed to install locale
> substitute: warning: failed to install locale: Invalid argument

These warnings come from the ‘guix substitute’ process, which is spawned
as root by ‘guix-daemon’.

To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s
not already there, like this:

  https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-26 11:39 ` Ludovic Courtès
@ 2018-06-26 12:21   ` Hinko Kocevar
  2018-06-26 16:48     ` Oleg Pykhalov
  0 siblings, 1 reply; 9+ messages in thread
From: Hinko Kocevar @ 2018-06-26 12:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix@gnu.org

Hi Ludovic,

thanks for pointing this out!

/hinko
________________________________________
From: Ludovic Courtès <ludo@gnu.org>
Sent: Tuesday, June 26, 2018 1:39:25 PM
To: Hinko Kocevar
Cc: help-guix@gnu.org
Subject: Re: locale warnings

Hello,

Hinko Kocevar <Hinko.Kocevar@esss.se> skribis:

> I followed the instructions to set up locale for user (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup), but I'm still getting these messages for each guix invocation:
>
> substitute: guile: warning: failed to install locale
> substitute: warning: failed to install locale: Invalid argument

These warnings come from the ‘guix substitute’ process, which is spawned
as root by ‘guix-daemon’.

To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s
not already there, like this:

  https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-26 12:21   ` Hinko Kocevar
@ 2018-06-26 16:48     ` Oleg Pykhalov
  2018-06-26 17:29       ` Hinko Kocevar
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Oleg Pykhalov @ 2018-06-26 16:48 UTC (permalink / raw)
  To: Hinko Kocevar; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1696 bytes --]

Hello Hinko,

Hinko Kocevar <Hinko.Kocevar@esss.se> writes:

[…]

>> I followed the instructions to set up locale for user
>> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup),
>> but I'm still getting these messages for each guix invocation:
>>
>> substitute: guile: warning: failed to install locale
>> substitute: warning: failed to install locale: Invalid argument
>
> These warnings come from the ‘guix substitute’ process, which is spawned
> as root by ‘guix-daemon’.
>
> To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s
> not already there, like this:
>
>   https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10

Did adding a GUIX_LOCPATH environment variable to the
guix-daemon.service help?  I have the same issue on GNU/Linux Mint
workstation, but this tip didn't help me.

--8<---------------cut here---------------start------------->8---
$ PAGER= systemctl show guix-daemon.service  | grep locale
Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
$ sudo guix package -I 
…
guix    0.14.0  out     /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0
glibc-utf8-locales      2.25    out     /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25
glibc-locales   2.27    out     /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
glibc   2.27    out     /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27
--8<---------------cut here---------------end--------------->8---

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-26 16:48     ` Oleg Pykhalov
@ 2018-06-26 17:29       ` Hinko Kocevar
  2018-06-26 23:58       ` Matthew Brooks
  2018-06-27 11:38       ` Ludovic Courtès
  2 siblings, 0 replies; 9+ messages in thread
From: Hinko Kocevar @ 2018-06-26 17:29 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix@gnu.org

Hi Oleg,

I just tried this in a root terminal (not using sudo):

obzen ~ # export GUIX_LOCPATH=/root/.guix-profile/lib/locale
obzen ~ # ~root/.guix-profile/bin/guix-daemon --build-users-group=guixbuild


and it does not print warnings, as advertised, when using guix tool.

Thanks,
hinko
________________________________________
From: Oleg Pykhalov <go.wigust@gmail.com>
Sent: Tuesday, June 26, 2018 6:48:53 PM
To: Hinko Kocevar
Cc: Ludovic Courtès; help-guix@gnu.org
Subject: Re: locale warnings

Hello Hinko,

Hinko Kocevar <Hinko.Kocevar@esss.se> writes:

[…]

>> I followed the instructions to set up locale for user
>> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup),
>> but I'm still getting these messages for each guix invocation:
>>
>> substitute: guile: warning: failed to install locale
>> substitute: warning: failed to install locale: Invalid argument
>
> These warnings come from the ‘guix substitute’ process, which is spawned
> as root by ‘guix-daemon’.
>
> To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s
> not already there, like this:
>
>   https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10

Did adding a GUIX_LOCPATH environment variable to the
guix-daemon.service help?  I have the same issue on GNU/Linux Mint
workstation, but this tip didn't help me.

--8<---------------cut here---------------start------------->8---
$ PAGER= systemctl show guix-daemon.service  | grep locale
Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
$ sudo guix package -I
…
guix    0.14.0  out     /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0
glibc-utf8-locales      2.25    out     /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25
glibc-locales   2.27    out     /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
glibc   2.27    out     /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27
--8<---------------cut here---------------end--------------->8---

Thanks,
Oleg.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-26 16:48     ` Oleg Pykhalov
  2018-06-26 17:29       ` Hinko Kocevar
@ 2018-06-26 23:58       ` Matthew Brooks
  2018-06-27 11:38       ` Ludovic Courtès
  2 siblings, 0 replies; 9+ messages in thread
From: Matthew Brooks @ 2018-06-26 23:58 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 2162 bytes --]

Have you tried setting GUIX_LOCPATH for the user (instead of just root) and also installing glibc-locales for the user (instead of only root)?

I had the same problem with locales not being found, but installing the locales and setting the environment variable for the user fixed it for me.

On Tue, 26 Jun 2018 19:48:53 +0300
Oleg Pykhalov <go.wigust@gmail.com> wrote:

> Hello Hinko,
> 
> Hinko Kocevar <Hinko.Kocevar@esss.se> writes:
> 
> […]
> 
> >> I followed the instructions to set up locale for user
> >> (https://www.gnu.org/software/guix/manual/guix.html#Application-Setup),
> >> but I'm still getting these messages for each guix invocation:
> >>
> >> substitute: guile: warning: failed to install locale
> >> substitute: warning: failed to install locale: Invalid argument  
> >
> > These warnings come from the ‘guix substitute’ process, which is spawned
> > as root by ‘guix-daemon’.
> >
> > To fix it, you need to add GUIX_LOCPATH to ‘guix-daemon.service’ if it’s
> > not already there, like this:
> >
> >   https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-daemon.service.in#n10  
> 
> Did adding a GUIX_LOCPATH environment variable to the
> guix-daemon.service help?  I have the same issue on GNU/Linux Mint
> workstation, but this tip didn't help me.
> 
> --8<---------------cut here---------------start------------->8---
> $ PAGER= systemctl show guix-daemon.service  | grep locale
> Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
> --8<---------------cut here---------------end--------------->8---
> 
> --8<---------------cut here---------------start------------->8---
> $ sudo guix package -I 
> …
> guix    0.14.0  out     /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0
> glibc-utf8-locales      2.25    out     /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25
> glibc-locales   2.27    out     /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> glibc   2.27    out     /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27
> --8<---------------cut here---------------end--------------->8---
> 
> Thanks,
> Oleg.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: locale warnings
  2018-06-26 16:48     ` Oleg Pykhalov
  2018-06-26 17:29       ` Hinko Kocevar
  2018-06-26 23:58       ` Matthew Brooks
@ 2018-06-27 11:38       ` Ludovic Courtès
  2018-06-30 17:10         ` [SOLVED] " Oleg Pykhalov
  2 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2018-06-27 11:38 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix@gnu.org

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> $ PAGER= systemctl show guix-daemon.service  | grep locale
> Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
>
> $ sudo guix package -I 
> …
> guix    0.14.0  out     /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0
> glibc-utf8-locales      2.25    out     /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25
> glibc-locales   2.27    out     /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
> glibc   2.27    out     /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27

The problem you may have is that guix@0.14.0 is linked against glibc
2.26, so it cannot use the 2.27 locales.  You should upgrade ‘guix’.

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [SOLVED] Re: locale warnings
  2018-06-27 11:38       ` Ludovic Courtès
@ 2018-06-30 17:10         ` Oleg Pykhalov
  0 siblings, 0 replies; 9+ messages in thread
From: Oleg Pykhalov @ 2018-06-30 17:10 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

Hello Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
>> $ PAGER= systemctl show guix-daemon.service  | grep locale
>> Environment=GUIX_LOCPATH=/root/.guix-profile/lib/locale
>>
>> $ sudo guix package -I 
>> …
>> guix    0.14.0  out     /gnu/store/pii5cimi72lj5l7793h54g5sg0sr2apl-guix-0.14.0
>> glibc-utf8-locales 2.25 out
>> /gnu/store/xa391b23r5lbwxb9q26sq5rq1fkd1xi3-glibc-utf8-locales-2.25
>> glibc-locales 2.27 out
>> /gnu/store/s28fmfrq8r0c688x59cj0fcyh2pv87nj-glibc-locales-2.27
>> glibc   2.27    out     /gnu/store/y7siq9fr3dyccyaig94rpkqfimbiw35f-glibc-2.27
>
> The problem you may have is that guix@0.14.0 is linked against glibc
> 2.26, so it cannot use the 2.27 locales.  You should upgrade ‘guix’.

It seems I did a wrong thing before.

‘sudo guix pull’ doesn't produce ‘/root/.config/guix’ directory and
files inside this directory.

I tried another ‘guix pull’ after invoking ‘sudo -i’.  Then I got
‘/root/.config/guix’.  After I ran ‘guix package -u’ and ‘systemctl
restart guix-daemon’.  No warnings now.

Also I probably need to say that ‘glibc-locales’ package replaced (with
shell command ‘guix package -r glibc-utf8-locales -i glibc-locales’)
‘glibc-utf8-locales’ package for my non-root user, because only
‘glibc-utf8-locales’ package installed produced mentioned warnings.

Thanks,
Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-06-30 17:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25 16:35 locale warnings Hinko Kocevar
2018-06-25 23:07 ` Hinko Kocevar
2018-06-26 11:39 ` Ludovic Courtès
2018-06-26 12:21   ` Hinko Kocevar
2018-06-26 16:48     ` Oleg Pykhalov
2018-06-26 17:29       ` Hinko Kocevar
2018-06-26 23:58       ` Matthew Brooks
2018-06-27 11:38       ` Ludovic Courtès
2018-06-30 17:10         ` [SOLVED] " Oleg Pykhalov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.