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

OpenSubmitted by Mikko Räsänen.
Details
3 participants
  • Ludovic Courtès
  • Maxime Devos
  • Mikko Räsänen
Owner
unassigned
Severity
normal
M
M
Mikko Räsänen wrote on 13 Apr 22:15 +0200
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: 1guix 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 22:38 +0200
(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’ wasrunning. Could it be what happened?
The daemon currently assumes that this file exists. We could removethat assumption since I think glibc is happy when it doesn’t exist, butthat still looks weird.
Thanks,Ludo’.
M
M
Mikko Räsänen wrote on 19 Apr 03:20 +0200
(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 16:16 +0200
(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 distrolike Debian, Fedora, ...?
Greetings,Maxime.
-----BEGIN PGP SIGNATURE-----
iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYH2QzxccbWF4aW1lZGV2b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7k1bAP9hZiiZj7gzFzps6R1oJblKCuOA2nAnUUHJj5cU4KyxSwEAn+bKOArXGMmH17dC5MLd17bwKq2gzxyQ1tpho+2LmQU==6mDK-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 23 Apr 14:18 +0200
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 missingquit
?