Subject: bug#60547: guix pull: Error in procedure 'get-bytevector-n*'

From: "Artyom V. Poptsov" <[email-masked]>
Date: Wed, 04 Jan 2023 15:12:52 +0300

Hello,

I've got the following output from 'guix pull':

--8<---------------cut here---------------start------------->8---
$ guix pull --fallback
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to d62c65d (5 new commits)...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git   d62c65d
substitute: updating substitutes from 'http://ci.guix.ygg.trop.in'...   0.0%guix substitute: warning: ci.guix.ygg.trop.in: connection failed: Connection timed out
substitute: 
building /gnu/store/8w6r5szfxkdfh9wmagqwjxnh065lswvg-compute-guix-derivation.drv...
Computing Guix derivation for 'x86_64-linux'... \Backtrace:
          17 (primitive-load "/gnu/store/w1286dmwlhha7gp09s50w8fpx9rs1qi4-compute-guix-derivation")
In ice-9/eval.scm:
    155:9 16 (_ _)
    159:9 15 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
    152:2 14 (with-fluid* _ _ _)
    152:2 13 (with-fluid* _ _ _)
In ./guix/store.scm:
  2170:24 12 (run-with-store #<store-connection 256.99 7f9725515410> #<procedure 7f970e069820 at ./guix/self.scm:13?> ?)
   1998:8 11 (_ #<store-connection 256.99 7f9725515410>)
In ./guix/gexp.scm:
   299:22 10 (_ #<store-connection 256.99 7f9725515410>)
   1180:2  9 (_ #<store-connection 256.99 7f970b5266e0>)
   1046:2  8 (_ #<store-connection 256.99 7f970b5266e0>)
    892:4  7 (_ #<store-connection 256.99 7f970b5266e0>)
In ./guix/store.scm:
  2055:12  6 (_ #<store-connection 256.99 7f970b5266e0>)
   1403:5  5 (map/accumulate-builds #<store-connection 256.99 7f970b5266e0> #<procedure 7f971c89ef40 at ./guix/stor?> ?)
  1419:15  4 (_ #<store-connection 256.99 7f970b5266e0> ("/gnu/store/3myqr8bwj43jcam1zkcdjlkp6haglciq-subversion?" ?) ?)
  1419:15  3 (loop #f)
   713:11  2 (process-stderr #<store-connection 256.99 7f970b5266e0> _)
In ./guix/serialization.scm:
   102:11  1 (read-int #<input-output: file 10>)
     80:6  0 (get-bytevector-n* #<input-output: file 10> 8)

./guix/serialization.scm:80:6: In procedure get-bytevector-n*:
ERROR:
  1. &nar-error:
      file: #f
      port: #<input-output: file 10>
guix pull: error: You found a bug: the program '/gnu/store/w1286dmwlhha7gp09s50w8fpx9rs1qi4-compute-guix-derivation'
failed to compute the derivation for Guix (version: "d62c65d5ad49d3bf7ae24b31743d96241170faca"; system: "x86_64-linux";
host version: "9cb42f725a2a652bb41e38988d03d7020ccf2aa1"; pull-version: 1).
Please report the COMPLETE output above by email to <[email-masked]>.
--8<---------------cut here---------------end--------------->8---

I'm using http://ci.guix.ygg.trop.in as the substitute server through
Yggdrasil[1] network; probably the "Connection timed out" error was the
root cause of the following error.

Thanks,
avp

References:
1. https://yggdrasil-network.github.io/

-- 
Artyom "avp" Poptsov <[email-masked]>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F