From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: Invalid nar signature Date: Wed, 14 Jan 2015 21:38:01 -0500 Message-ID: <87mw5kkbue.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> References: <87zjapejo3.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87ppbkompf.fsf@gnu.org> <87ppbkfw4w.fsf@gnu.org> <87ppbkedf2.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <871tnz8qwx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBaJw-0000wv-61 for guix-devel@gnu.org; Wed, 14 Jan 2015 21:38:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBaJu-0008K0-Vv for guix-devel@gnu.org; Wed, 14 Jan 2015 21:38:04 -0500 In-Reply-To: <871tnz8qwx.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Back at this again after awhile. Ludovic Court=C3=A8s writes: > Hmm, some ideas of things to try: > > 1. Add (force-output port) after (write-file ...). No effect. > 2. Display the value of =E2=80=98x=E2=80=99 in =E2=80=98restore-file=E2= =80=99 at the point where the > exception is raised. Haven't tried this yet. > 2. strace the substituter and/or =E2=80=98guix publish=E2=80=99 to see = exactly what > happens on the wire. Is the end-of-file marker string sent? Is it > received? etc. Here's a snippet of the strace output: http://192.168.1.157/.../iw3jn6a1avv78pp5v2cv42vyh0d8zi0g-guile-toxcore-0= .1-6a9fbe0 94.1% of 127.5 KiB) =3D 104 read(10, "vector tox-max-status-message-le"..., 7728) =3D 117 read(10, " "..., 7611) =3D 1448 read(10, "t-last-online (unwrap-tox tox) f"..., 6163) =3D 1448 read(10, "tox tox) nospam))\n\n(define/unwra"..., 4715) =3D 1448 read(10, " friend-number group-number)))\n\n"..., 3267) =3D 1448 read(10, ")))\n (if (negative? result)\n "..., 1819) =3D 1819 http://192.168.1.157/.../iw3jn6a1avv78pp5v2cv42vyh0d8zi0g-guile-toxcore-0= .1-6a9fbe0 100.0% of 127.5 KiB) =3D 104 http://192.168.1.157/.../iw3jn6a1avv78pp5v2cv42vyh0d8zi0g-guile-toxcore-0= .1-6a9fbe0 100.0% of 127.5 KiB) =3D 104 brk(0x41875000) =3D 0x41875000 mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0= ) =3D 0x7f3d2aaaf000 mremap(0x7f3d2aaaf000, 135168, 266240, MREMAP_MAYMOVE) =3D 0x7f3d2aa6e000 mremap(0x7f3d2aa6e000, 266240, 528384, MREMAP_MAYMOVE) =3D 0x7f3d2a9ed000 mremap(0x7f3d2a9ed000, 528384, 430080, MREMAP_MAYMOVE) =3D 0x7f3d2a9ed000 munmap(0x7f3d2a9ed000, 430080) =3D 0 http://192.168.1.157/.../iw3jn6a1avv78pp5v2cv42vyh0d8zi0g-guile-toxcore-0= .1-6a9fbe0 100.0% of 127.5 KiB) =3D 104 open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en_US.UTF-8/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such f= ile or directory) open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en_US.utf8/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such fi= le or directory) open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en_US/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such file or= directory) open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en.UTF-8/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such file= or directory) open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en.utf8/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such file = or directory) open("/gnu/store/72qm7kc9phvsiw6j7xgn1ii0f6s9mx8i-guix-0.8.3b09332/share/= locale/en/LC_MESSAGES/guix.mo", O_RDONLY) =3D -1 ENOENT (No such file or di= rectory) write(2, "guix substitute-binary: error: i"..., 62guix substitute-binary:= error: invalid nar end-of-file marker ) =3D 62 exit_group(1) =3D ? +++ exited with 1 +++ I'm not sure what's going on here. I thought that maybe the substituter was getting tripped up by the Scheme code in the uncompressed nar, but I don't have any reason to believe that's true. Despite that, I tried to compress the nar with bzip2 just for fun, but I ran into another problem: warning: call to primitive-fork while multiple threads are running; further behavior unspecified. See "Processes" in the manual, for more information. I'm running a REPL server in addition to the web server, but I imagine the web server also spawns additional threads to handle requests, so either way 'filtered-output-port' won't work here. The return value of 'waitpid' for the bzip2 pid is: ((18764 . 256)) Thoughts on what to try next? I feel like I'm so close, but I keep running into walls that prevent me from making much progress. --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate