From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yOPSIZ8C/15hVgAA0tVLHw (envelope-from ) for ; Fri, 03 Jul 2020 10:04:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2I7VHZ8C/142SAAAB5/wlQ (envelope-from ) for ; Fri, 03 Jul 2020 10:04:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9553894013C for ; Fri, 3 Jul 2020 10:04:14 +0000 (UTC) Received: from localhost ([::1]:33104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrIYG-0001Me-Os for larch@yhetil.org; Fri, 03 Jul 2020 06:04:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrIY6-0001MV-BA for bug-guix@gnu.org; Fri, 03 Jul 2020 06:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrIY6-0004Oe-1W for bug-guix@gnu.org; Fri, 03 Jul 2020 06:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jrIY5-0006xf-T1 for bug-guix@gnu.org; Fri, 03 Jul 2020 06:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42151: [PATCH 0/3] offload to Childhurd fails: setting synchronous mode: locking protocol Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 03 Jul 2020 10:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42151 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 42151-submit@debbugs.gnu.org id=B42151.159377062026712 (code B ref 42151); Fri, 03 Jul 2020 10:04:01 +0000 Received: (at 42151) by debbugs.gnu.org; 3 Jul 2020 10:03:40 +0000 Received: from localhost ([127.0.0.1]:56487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrIXk-0006wm-0Y for submit@debbugs.gnu.org; Fri, 03 Jul 2020 06:03:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrIXg-0006wN-KN for 42151@debbugs.gnu.org; Fri, 03 Jul 2020 06:03:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55156) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrIXa-0004Ar-4A; Fri, 03 Jul 2020 06:03:30 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=37754 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jrIXZ-0004OK-Dz; Fri, 03 Jul 2020 06:03:29 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl References: <20200701142929.26919-1-janneke@gnu.org> <87imf6rsir.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Fri, 03 Jul 2020 12:03:26 +0200 In-Reply-To: <87imf6rsir.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 02 Jul 2020 14:49:32 +0200") Message-ID: <873668zzip.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42151@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: GUCmJBMMxut7 Ludovic Court=C3=A8s writes: Hi! > "Jan (janneke) Nieuwenhuizen" skribis: > >> $ guix offload test >> guix offload: testing 1 build machines defined in '/etc/guix/machines.sc= m'... >> guix offload: Guix is usable on 'childhurd' (test returned "/gnu/store/8= 83yjkl46dxw9mzykykmbs0yzwyxm17z-test") >> guix offload: 'childhurd' is running GNU Guile 3.0.4 >> guix offload: error: exception occurred on remote host 'localhost': >> (%exception #> "setting synchronous mode: locking protocol" status: 1>>) > Does it help if you set =E2=80=98settings.fsyncMetadata =3D false=E2=80= =99 in the daemon? > As a stop-gap, we could add a command-line option if that helps. Tried that, thanks. No, it does not help. (But that's good news, see belo= w!) > The =E2=80=9Csynchronous =3D normal=E2=80=9D mode translates to =E2=80=98= fsync=E2=80=99 calls, right? If > you rpctrace sqlite3, do you see =E2=80=98file_sync=E2=80=99 calls failin= g? Tried that before, rpctrace hangs before I see something useful. > Does sqlite pass its tests on GNU/Hurd? That's the (or at least a) right question: YES! > My 2=C2=A2! Thanks -- it seems that buys us a pretty cheap fix after all, $-wise ;) It turns out that Debian's patch (and thus this patch series) is probably OK: It fixes the locking problem on the Hurd, while exposing another bug, apparently: "unable to open database file". It seems there is a compatibility bug/problem/thing with the db.sqlite that we produce on GNU/Linux. While an unpatched sqlite3 on the Hurd can read it, and work with it, the unpatched sqlite has locking problems. I found a workaround, though: dumping and loading the database file. Look... --8<---------------cut here---------------start------------->8--- $ scp childhurd2:/var/guix/db/db.sqlite db.sqlite-orig db.sqlite = 100% 144KB 5.8MB/s 00:00=20=20=20=20 11:30:37 janneke@dundal:~/tmp [env] $ sqlite3 db.sqlite-orig .dump > db.dump 11:30:45 janneke@dundal:~/tmp [env] $ sqlite3 -init db.dump db.sqlite-init .quit -- Loading resources from db.dump 11:30:49 janneke@dundal:~/tmp [env] $ cmp db.sqlite-orig db.sqlite-init=20 db.sqlite-orig db.sqlite-init differ: byte 19, line 1 [1]11:31:11 janneke@dundal:~/tmp [env] $ scp db.sqlite-init childhurd2:/var/guix/db/db.sqlite db.sqlite-init = 100% 144KB 7.3MB/s 00:00=20=20=20=20 11:31:21 janneke@dundal:~/tmp [env] $ guix offload test guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'.= .. guix offload: Guix is usable on 'localhost' (test returned "/gnu/store/883y= jkl46dxw9mzykykmbs0yzwyxm17z-test") guix offload: 'localhost' is running GNU Guile 3.0.4 sending 1 store item (0 MiB) to 'localhost'... exporting path `/gnu/store/y6b7bjqsazmm6jsyj5y80dqqajysw64p-export-test' guix offload: 'localhost' successfully imported '/gnu/store/y6b7bjqsazmm6js= yj5y80dqqajysw64p-export-test' retrieving 1 store item from 'localhost'... guix offload: successfully imported '/gnu/store/gxz6hzyc1cy3m1w9l7f2dk6rcsp= vymxf-import-test' from 'localhost' 11:31:29 janneke@dundal:~/tmp [env] --8<---------------cut here---------------end--------------->8--- So...about the compatibility problem. I tried to diff the db.sqlite-orig db.sqlite-init binary files: they look completely different. Not sure how to handle this workaround, maybe we can insert a two system* calls somewhere when building the disk image? Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com