Backtrace of guix pull failed

  • Done
  • quality assurance status badge
Details
6 participants
  • Andreas Enge
  • Leo Famulari
  • Ludovic Courtès
  • Ludovic Courtès
  • Ricardo Wurmus
  • Vincent Rouvreau
Owner
unassigned
Submitted by
Vincent Rouvreau
Severity
normal
V
V
Vincent Rouvreau wrote on 19 Feb 2019 10:55
(address . bug-guix@gnu.org)
703275152.7669150.1550570158536.JavaMail.zimbra@inria.fr
Hello,

I wanted to install python, numpy and conda on plafrim as explained here : https://www.plafrim.fr/en/guix/
And guix pull failed :

guix package -i python python-numpy python-conda

eval `guix package --search-paths=prefix`

guix pull

Backtrace:
In ice-9/boot-9.scm:
2887:24 19 (_)
222:29 18 (map1 (((guix i18n)) ((guix gexp)) ((guix sets)) ((?)) ?))
222:29 17 (map1 (((guix gexp)) ((guix sets)) ((guix utils)) (#) ?))
222:29 16 (map1 (((guix sets)) ((guix utils)) ((guix store)) (#) ?))
222:29 15 (map1 (((guix utils)) ((guix store)) ((guix config)) # ?))
222:29 14 (map1 (((guix store)) ((guix config)) ((guix #)) ((?)) ?))
222:29 13 (map1 (((guix config)) ((guix packages)) ((guix #)) # ?))
222:29 12 (map1 (((guix packages)) ((guix profiles)) ((guix #)) ?))
222:17 11 (map1 (((guix profiles)) ((guix derivations)) ((# #)) ?))
2800:17 10 (resolve-interface (guix profiles) #:select _ #:hide _ # ?)
In ice-9/threads.scm:
390:8 9 (_ _)
In ice-9/boot-9.scm:
2726:13 8 (_)
In ice-9/threads.scm:
390:8 7 (_ _)
In ice-9/boot-9.scm:
2994:20 6 (_)
2312:4 5 (save-module-excursion #<procedure 28cc6c0 at ice-9/boo?>)
3014:26 4 (_)
In unknown file:
3 (primitive-load-path "guix/profiles" #<procedure 27e7f8?>)
In ./guix/profiles.scm:
1773:23 2 (_)
In ./guix/utils.scm:
661:47 1 (xdg-directory _ "/.config" #:ensure? _)
In unknown file:
0 (getpw 10837)

ERROR: In procedure getpw:
In procedure getpw: entry not found
guix pull: error: You found a bug: the program '/gnu/store/i49yy9zlv7h1bsds96ld7fhgni9ycvr6-compute-guix-derivation'
failed to compute the derivation for Guix (version: "be92b4b000dbe84a525de7857296fede318048d9"; system: "x86_64-linux";
host version: "a9ba0a3154f3f20097000407a96a390ad3dee100"; pull-version: 1).
Please report it by email to <bug-guix@gnu.org>.



I want to precise it is my first time with guix and I may misunderstood some points...

Regards,

Vincent Rouvreau - Service Expérimentation et Développement
INRIA Saclay
Tel: (+33).1.74.85.42.32
A
A
Andreas Enge wrote on 19 Feb 2019 16:42
(name . Vincent Rouvreau)(address . vincent.rouvreau@inria.fr)(address . 34573@debbugs.gnu.org)
20190219154202.GA5022@jurong
Bonjour Vincent,

On Tue, Feb 19, 2019 at 10:55:58AM +0100, Vincent Rouvreau wrote:
Toggle quote (5 lines)
> And guix pull failed :
>
> guix package -i python python-numpy python-conda
> eval `guix package --search-paths=prefix`

so the first two commands succeeded?

Toggle quote (18 lines)
> guix pull
> Backtrace:
> In ice-9/boot-9.scm:
> 2887:24 19 (_)
> 222:29 18 (map1 (((guix i18n)) ((guix gexp)) ((guix sets)) ((?)) ?))
> 222:29 17 (map1 (((guix gexp)) ((guix sets)) ((guix utils)) (#) ?))
> 222:29 16 (map1 (((guix sets)) ((guix utils)) ((guix store)) (#) ?))
> 222:29 15 (map1 (((guix utils)) ((guix store)) ((guix config)) # ?))
> 222:29 14 (map1 (((guix store)) ((guix config)) ((guix #)) ((?)) ?))
> 222:29 13 (map1 (((guix config)) ((guix packages)) ((guix #)) # ?))
> 222:29 12 (map1 (((guix packages)) ((guix profiles)) ((guix #)) ?))
> 222:17 11 (map1 (((guix profiles)) ((guix derivations)) ((# #)) ?))
> 2800:17 10 (resolve-interface (guix profiles) #:select _ #:hide _ # ?)
> In ice-9/threads.scm:
> 390:8 9 (_ _)
> In ice-9/boot-9.scm:
> 2726:13 8 (_)

Could you post the lines preceding this error message? I just experienced
a similar case, and the real error happened before (a package needed to be
compiled first and failed).

Could you please send the output of
guix --version
and
guix describe
?

Thanks,

Andreas
R
R
Ricardo Wurmus wrote on 19 Feb 2019 17:08
(name . Vincent Rouvreau)(address . vincent.rouvreau@inria.fr)(address . 34573@debbugs.gnu.org)
87ftsjvk1i.fsf@elephly.net
Hi Vincent,

Toggle quote (2 lines)
> I wanted to install python, numpy and conda on plafrim as explained here : https://www.plafrim.fr/en/guix/
> And guix pull failed :
[…]
Toggle quote (10 lines)
> In ./guix/profiles.scm:
> 1773:23 2 (_)
> In ./guix/utils.scm:
> 661:47 1 (xdg-directory _ "/.config" #:ensure? _)
> In unknown file:
> 0 (getpw 10837)
>
> ERROR: In procedure getpw:
> In procedure getpw: entry not found

This looks like nscd is not running.

The manual says this:

2.6.2 Name Service Switch
-------------------------

When using Guix on a foreign distro, we _strongly recommend_ that the
system run the GNU C library’s “name service cache daemon”, ‘nscd’,
which should be listening on the ‘/var/run/nscd/socket’ socket. Failing
to do that, applications installed with Guix may fail to look up host
names or user accounts, or may even crash.

Could you check that NSCD is in fact available and running?

--
Ricardo
V
V
Vincent Rouvreau wrote on 19 Feb 2019 17:48
(address . 34573@debbugs.gnu.org)
1957885728.7840402.1550594881373.JavaMail.zimbra@inria.fr
Hello,

I rolled back all my generations (I hope this is good - with command guix package --roll-back)

$ guix package -i python python-numpy python-conda
Les paquets suivants seront installés :
python 3.7.0 /gnu/store/9z98cvjm7p7z21xdid1ryydxy5vyz6wr-python-3.7.0
python-numpy 1.15.4 /gnu/store/hsdzxq5jvb96yffnxqp8h4lq5z59r29k-python-numpy-1.15.4
python-conda 4.3.16 /gnu/store/gabw5n3216xzbbsjsc5j5vhjpninanyh-python-conda-4.3.16

$ eval `guix package --search-paths=prefix`

It seems there is no issue.

nscd seems to be launched. I am not admin on the server.
$ ps aux | grep nscd
vrou001 25642 0.0 0.0 112688 976 pts/37 S+ 17:46 0:00 grep --color=auto nscd
nscd 135028 0.0 0.0 768500 4020 ? Ssl févr.11 2:17 /usr/sbin/nscd

Maybe this is not a guix bug but a server issue.
Sorry for the noise, I will see with the admin.

Regards,

Vincent Rouvreau

----- Mail original -----
Toggle quote (47 lines)
> De: "Andreas Enge" <andreas@enge.fr>
> À: "vincent rouvreau" <vincent.rouvreau@inria.fr>
> Cc: 34573@debbugs.gnu.org
> Envoyé: Mardi 19 Février 2019 16:42:02
> Objet: Re: bug#34573: Backtrace of guix pull failed

> Bonjour Vincent,
>
> On Tue, Feb 19, 2019 at 10:55:58AM +0100, Vincent Rouvreau wrote:
>> And guix pull failed :
>>
>> guix package -i python python-numpy python-conda
>> eval `guix package --search-paths=prefix`
>
> so the first two commands succeeded?
>
>> guix pull
>> Backtrace:
>> In ice-9/boot-9.scm:
>> 2887:24 19 (_)
>> 222:29 18 (map1 (((guix i18n)) ((guix gexp)) ((guix sets)) ((?)) ?))
>> 222:29 17 (map1 (((guix gexp)) ((guix sets)) ((guix utils)) (#) ?))
>> 222:29 16 (map1 (((guix sets)) ((guix utils)) ((guix store)) (#) ?))
>> 222:29 15 (map1 (((guix utils)) ((guix store)) ((guix config)) # ?))
>> 222:29 14 (map1 (((guix store)) ((guix config)) ((guix #)) ((?)) ?))
>> 222:29 13 (map1 (((guix config)) ((guix packages)) ((guix #)) # ?))
>> 222:29 12 (map1 (((guix packages)) ((guix profiles)) ((guix #)) ?))
>> 222:17 11 (map1 (((guix profiles)) ((guix derivations)) ((# #)) ?))
>> 2800:17 10 (resolve-interface (guix profiles) #:select _ #:hide _ # ?)
>> In ice-9/threads.scm:
>> 390:8 9 (_ _)
>> In ice-9/boot-9.scm:
>> 2726:13 8 (_)
>
> Could you post the lines preceding this error message? I just experienced
> a similar case, and the real error happened before (a package needed to be
> compiled first and failed).
>
> Could you please send the output of
> guix --version
> and
> guix describe
> ?
>
> Thanks,
>
> Andreas
L
L
Leo Famulari wrote on 19 Feb 2019 17:56
(name . Vincent Rouvreau)(address . vincent.rouvreau@inria.fr)
20190219165652.GA7471@jasmine.lan
On Tue, Feb 19, 2019 at 05:48:01PM +0100, Vincent Rouvreau wrote:
Toggle quote (3 lines)
> Maybe this is not a guix bug but a server issue.
> Sorry for the noise, I will see with the admin.

This is likely related to https://bugs.gnu.org/30298.

If so, the solution is to either use nscd, as Ricardo suggested, or to
edit '/etc/nsswitch.conf'.
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlxsNVEACgkQJkb6MLrK
fwj3vQ//WyQnGWZHaN9UVzGbwbT850xf+vi0ReBP0PVK4DKLIKU2i6gNroPjLbRq
VoGB8syIBtgflFdXK3WBKJPgwYH0fAr/hkstPB6FOAePZ1tRjaHAYL9YJsDUy+L9
iW8U95BQ+t9Besf9U8dih+c+hvHneYIxNNvDn0hIYeyisAeFHDM3LvjLtJJ7/KQN
EszBsmEnsgcSfhqBNnYOqcMQY9NuDtKKY3ywQ8riFL8hQ5AnZD9Wx/hKFmdlSDdB
yRGkSGO0GD/ig9h+8IyARYaOKVB+1TVmbjYkQ0qZ3e2ysWyjQehpfkSaMNfBjGxT
LmZQ2zdjobeT+RADjmyLgVQWKxsnb7sEIQLq9Y8z9hTmFgJgquplZHwMjLL/kXNT
f3rpalTlTYr6dWdtg/JBI8TA76J8v3nWqVexKe/dP4N64xwlYwXoKFJwlLlbtGun
YhNr4J3aR4XPLKnVpu9qHmkfmKLxowGvdWttqjU/yr7tpZlJnyk0lQ+2Rp1qY5fU
xP9sEGI9yJhO3ED/A0OsWeQzjMOm2g5lLj6NwweylE+Hu5jKIP2bf0BfeCdAH7Yu
L36KciMv3RE4Z4KLTf8NK8aWVn21KucEMXxJiLee6tzdv78YtMnh0BGUqLPJwiEJ
nf4yS0zE8Golsf+9sHXv5IYhZVmJQKp4CYuxQGkGxHL1DFr3tM8=
=7Fzs
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 4 Mar 2019 23:02
(name . Vincent Rouvreau)(address . vincent.rouvreau@inria.fr)
875zsynvr7.fsf@gnu.org
Hi Vincent,

Ricardo Wurmus <rekado@elephly.net> skribis:

Toggle quote (15 lines)
>> I wanted to install python, numpy and conda on plafrim as explained here : https://www.plafrim.fr/en/guix/
>> And guix pull failed :
> […]
>> In ./guix/profiles.scm:
>> 1773:23 2 (_)
>> In ./guix/utils.scm:
>> 661:47 1 (xdg-directory _ "/.config" #:ensure? _)
>> In unknown file:
>> 0 (getpw 10837)
>>
>> ERROR: In procedure getpw:
>> In procedure getpw: entry not found
>
> This looks like nscd is not running.

Actually nscd *is* running but it’s been misconfigured on these machines
since a couple of weeks or so—the sysadmins are aware of it and will
take a look shortly.

What happens is that nscd returns nothing for “passwd” database lookups
and as a result, the application (in this case Guile) falls back to its
local NSS implementation, which in turns tries to load an incompatible
libnss*.so file, leading to this lookup failure.

Anyway, this really looks like a setup issue on this machine, so I’m
closing this bug and we can discuss it further with the admins if
needed, Vincent.

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 4 Mar 2019 23:03
control message for bug #34573
(address . control@debbugs.gnu.org)
874l8invqh.fsf@gnu.org
tags 34573 notabug
close 34573
?