Daemon fails to create build environment when /etc/nsswitch.conf is missing

  • Open
  • quality assurance status badge
Details
4 participants
  • Ludovic Courtès
  • Maxime Devos
  • Mikko Räsänen
  • András Vörösk?i
Owner
unassigned
Submitted by
Mikko Räsänen
Severity
normal
M
M
Mikko Räsänen wrote on 13 Apr 2021 22:15
guix pull: error: You found a bug
(address . bug-guix@gnu.org)
dd9f0c0b-eaab-d979-ba54-5cd64edd9688@a22.dk
applying 3 grafts for
/gnu/store/cdnrvbr03nhg8ly1msi65lz4m8k5l3cl-curl-7.76.0.drv ...
building /gnu/store/lam6h0qnr7bj7mr5hlix4glnf5f2wymk-zip-3.0.drv...
Backtrace:
          13 (primitive-load
"/gnu/store/cb3nbg7bw5g483i71qs62jv1vy0gg00z-compute-guix-derivation")
In ice-9/eval.scm:
    155:9 12 (_ _)
    159:9 11 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?>
?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
    152:2 10 (with-fluid* _ _ _)
    152:2  9 (with-fluid* _ _ _)
In ./guix/store.scm:
  2066:24  8 (run-with-store #<store-connection 256.99 7f8c78b4ebe0> _
#:guile-for-build _ #:system _ #:target _)
   1900:8  7 (_ _)
In ./guix/gexp.scm:
   256:18  6 (_ _)
   1137:2  5 (_ _)
   1003:2  4 (_ _)
    849:4  3 (_ _)
In ./guix/store.scm:
  1948:12  2 (_ #<store-connection 256.99 7f8c78b4ebe0>)
   1362:5  1 (map/accumulate-builds #<store-connection 256.99
7f8c78b4ebe0> _ _)
  1373:15  0 (_ #<store-connection 256.99 7f8c78b4ebe0> _ _)

./guix/store.scm:1373:15: ERROR:
  1. &store-protocol-error:
      message: "while setting up the build environment: getting
attributes of path `/etc/nsswitch.conf': No such file or directory"
      status: 1
guix pull: error: You found a bug: the program
'/gnu/store/cb3nbg7bw5g483i71qs62jv1vy0gg00z-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"82543e9649da2da9a5285ede4ec4f718fd740fcb"; system: "x86_64-linux";
host version: "1.2.0"; pull-version: 1).
Please report it by email to <bug-guix@gnu.org>
L
L
Ludovic Courtès wrote on 16 Apr 2021 22:38
(name . Mikko Räsänen)(address . mikko@a22.dk)(address . 47760@debbugs.gnu.org)
87o8ee2cen.fsf@gnu.org
Hi,

Mikko Räsänen <mikko@a22.dk> skribis:

Toggle quote (5 lines)
> applying 3 grafts for
> /gnu/store/cdnrvbr03nhg8ly1msi65lz4m8k5l3cl-curl-7.76.0.drv ...
> building /gnu/store/lam6h0qnr7bj7mr5hlix4glnf5f2wymk-zip-3.0.drv...
> Backtrace:

[...]

Toggle quote (7 lines)
> ./guix/store.scm:1373:15: ERROR:
>   1. &store-protocol-error:
>       message: "while setting up the build environment: getting
> attributes of path `/etc/nsswitch.conf': No such file or directory"
>       status: 1
> guix pull: error: You found a bug: the program

It looks as though /etc/nsswitch.conf disappeared while ‘guix pull’ was
running. Could it be what happened?

The daemon currently assumes that this file exists. We could remove
that assumption since I think glibc is happy when it doesn’t exist, but
that still looks weird.

Thanks,
Ludo’.
M
M
Mikko Räsänen wrote on 19 Apr 2021 03:20
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 47760@debbugs.gnu.org)
dd43697d-be49-cb7c-a974-c8ed6b5f8cd5@a22.dk
I have no idea what happened. Only that I was encouraged to send the bug
report - so I did.

On 2021-04-16 22:38, Ludovic Courtès wrote:
Toggle quote (25 lines)
> Hi,
>
> Mikko Räsänen <mikko@a22.dk> skribis:
>
>> applying 3 grafts for
>> /gnu/store/cdnrvbr03nhg8ly1msi65lz4m8k5l3cl-curl-7.76.0.drv ...
>> building /gnu/store/lam6h0qnr7bj7mr5hlix4glnf5f2wymk-zip-3.0.drv...
>> Backtrace:
> [...]
>
>> ./guix/store.scm:1373:15: ERROR:
>>   1. &store-protocol-error:
>>       message: "while setting up the build environment: getting
>> attributes of path `/etc/nsswitch.conf': No such file or directory"
>>       status: 1
>> guix pull: error: You found a bug: the program
> It looks as though /etc/nsswitch.conf disappeared while ‘guix pull’ was
> running. Could it be what happened?
>
> The daemon currently assumes that this file exists. We could remove
> that assumption since I think glibc is happy when it doesn’t exist, but
> that still looks weird.
>
> Thanks,
> Ludo’.
M
M
Maxime Devos wrote on 19 Apr 2021 16:16
(address . 47760@debbugs.gnu.org)
caf6296bfe67d121eb2f98ba78ef36ff89898ae4.camel@telenet.be
Toggle quote (5 lines)
> On 2021-04-16 22:38, Ludovic Courtès wrote:
> > [...]
> > It looks as though /etc/nsswitch.conf disappeared while ‘guix pull’ was
> > running. Could it be what happened?

Mikko Räsänen via Bug reports for GNU Guix schreef op ma 19-04-2021 om 03:20 [+0200]:
Toggle quote (3 lines)
> I have no idea what happened. Only that I was encouraged to send the bug
> report - so I did.

Does the file /etc/nsswitch.conf exist on your system?
Also, what distribution are you using? Guix System, or a foreign distro
like Debian, Fedora, ...?

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYH2QzxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7k1bAP9hZiiZj7gzFzps6R1oJblKCuOA
2nAnUUHJj5cU4KyxSwEAn+bKOArXGMmH17dC5MLd17bwKq2gzxyQ1tpho+2LmQU=
=6mDK
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 23 Apr 2021 14:18
control message for bug #47760
(address . control@debbugs.gnu.org)
87tunxqjmp.fsf@gnu.org
retitle 47760 Daemon fails to create build environment when /etc/nsswitch.conf is missing
quit
A
A
András Vörösk?i wrote on 5 Sep 2021 17:54
Daemon fails to create build environment when /etc/nsswitch.conf is missing
(address . 47760@debbugs.gnu.org)
CALxLQm__5Mx7aTOE_=RPns1ryO_ygHaQ6+AXkgA5k4bBRuUmPA@mail.gmail.com
Hi,

I can confirm this issue on a foreign install with alpine base. Alpine
do not provide /etc/nsswitch.conf file by default, I have found plenty
docker/go issues about it. I think alpine should provide this file,
OTOH guix-daemon should not fail just because this one is missing.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 47760@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 47760
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch