From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Tildesley Subject: bug#27096: guix package -i ... fails when the internet is disconnected Date: Mon, 29 May 2017 18:30:18 +1000 Message-ID: <87765dd2-0236-a5dc-3518-49b0254c5eae@openmailbox.org> References: <0bb16f01-3edb-a43b-25b3-7713cd40673a@openmailbox.org> <87poesogwr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFG4w-0005MV-7G for bug-guix@gnu.org; Mon, 29 May 2017 04:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFG4s-0004KU-Pu for bug-guix@gnu.org; Mon, 29 May 2017 04:31:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFG4s-0004KP-G8 for bug-guix@gnu.org; Mon, 29 May 2017 04:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFG4s-0006F8-1Z for bug-guix@gnu.org; Mon, 29 May 2017 04:31:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87poesogwr.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" Cc: 27096@debbugs.gnu.org Ludovic Courtès 於 2017-05-29 06:39 寫道: > Hi Brendan, > > Brendan Tildesley skribis: > >> On GuixSD, I ran the following install command 3 times. The second time, >> it showed "nothing to be done" as expected. However after that, I >> disconnected my internet and ran it again with different results >> including a guile type error. Just because there was no internet >> connection, guix tries to download a variety of packages even though it >> theoretically shouldn't need anything, and fails to handle the case >> where there is no internet connection and a #f is returned somewhere in >> the code. I think guix development has taken for granted that one always >> has an internet connection. Some hackers may wish to try out hacking on >> Guix for a few hours without an internet connection and see what doesn't >> work. > I even do that on the train from time to time. :-) > >> [...] > So you run the exact same command twice in a row and the second one > starts downloading things, right? Did you run ‘guix gc’ in the meantime > or something? No, I just noticed it when my connection failed, so I reproduced it by running it with my internet on, pulling the cable out and running it again immediately, and this is what happened. >> Backtrace: >> 1 (primitive-load "/gnu/store/fza7573wpfm3alzdnnfw4g6f1ww…") >> In guix/ui.scm: >> 1264:8 0 (run-guix-command _ . _) >> >> guix/ui.scm:1264:8: In procedure run-guix-command: >> guix/ui.scm:1264:8: In procedure struct_vtable: Wrong type argument in >> position 1 (expecting struct): #f > That may come from (guix scripts substitute), but not sure where. > > Thanks, > Ludo’.