GNU bug report logs - #27096
guix package -i ... fails when the internet is disconnected

Previous Next

Package: guix;

Reported by: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>

Date: Sat, 27 May 2017 09:43:02 UTC

Severity: normal

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27096 in the body.
You can then email your comments to 27096 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#27096; Package guix. (Sat, 27 May 2017 09:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brendan Tildesley <brendan.tildesley <at> openmailbox.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 27 May 2017 09:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
To: bug-guix <at> gnu.org
Subject: guix package -i ... fails when the internet is disconnected
Date: Sat, 27 May 2017 19:42:27 +1000
[Message part 1 (text/plain, inline)]
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.



b <at> ui ~$ guix package -i stellarium calibre icecat  duplicity mpv vlc
audacity transmission 0ad qtox weechat terminology leafpad --fallback
The following packages will be upgraded:
   stellarium    0.15.1 → 0.15.1   
/gnu/store/qyxkrm2pawcl0lhkzhc5cm0zxzbph6xj-stellarium-0.15.1
   calibre    2.85.1 → 2.85.1   
/gnu/store/igjgzg8qcss2wn9m4q7p4jz0w4d4cwp3-calibre-2.85.1
   icecat    52.1.0-gnu1 → 52.1.0-gnu1   
/gnu/store/nb64j11jys7ijzlb4a5swgqmw228gjs9-icecat-52.1.0-gnu1
   duplicity    0.7.12 → 0.7.12   
/gnu/store/sysrzmlsrrdprgv59f3g81lsxhfz70cv-duplicity-0.7.12
   mpv    0.25.0 → 0.25.0   
/gnu/store/0pcmgd24v7p0wmccwsan1xw88dhkz4jl-mpv-0.25.0
   vlc    2.2.6 → 2.2.6   
/gnu/store/hysbc89y541kwdrh5kr63xs2z6xfc3lk-vlc-2.2.6
   audacity    2.1.3 → 2.1.3   
/gnu/store/vlp9fmbfzc6bxvcwkfns4m78wl1ai45i-audacity-2.1.3
   transmission    2.92 → 2.92   
/gnu/store/9rw82dip670864ijy06k62jd1py2bfwb-transmission-2.92
   0ad    0.0.21-alpha → 0.0.21-alpha   
/gnu/store/iikijc3g14k8lscjzqg7g7ca7f2222fn-0ad-0.0.21-alpha
   qtox    1.10.1 → 1.10.1   
/gnu/store/g7qxq694lns87gmcz7jxs7mqs0vngc4v-qtox-1.10.1
   weechat    1.8 → 1.8   
/gnu/store/8p0dkk2l4zh3gq185hjpbn1sf4z1nrbr-weechat-1.8
   terminology    1.0.0 → 1.0.0   
/gnu/store/05s9nwhf6m7zq4gvx4kb9djcfqj401cs-terminology-1.0.0
   leafpad    0.8.18.1 → 0.8.18.1   
/gnu/store/d630r7id7rr2r2wfdm4wc2jxlpv2m9k2-leafpad-0.8.18.1

nothing to be done
b <at> ui ~$ guix package -i stellarium calibre icecat  duplicity mpv vlc
audacity transmission 0ad qtox weechat terminology leafpad --fallback
The following packages will be upgraded:
   stellarium    0.15.1 → 0.15.1   
/gnu/store/qyxkrm2pawcl0lhkzhc5cm0zxzbph6xj-stellarium-0.15.1
   calibre    2.85.1 → 2.85.1   
/gnu/store/igjgzg8qcss2wn9m4q7p4jz0w4d4cwp3-calibre-2.85.1
   icecat    52.1.0-gnu1 → 52.1.0-gnu1   
/gnu/store/nb64j11jys7ijzlb4a5swgqmw228gjs9-icecat-52.1.0-gnu1
   duplicity    0.7.12 → 0.7.12   
/gnu/store/sysrzmlsrrdprgv59f3g81lsxhfz70cv-duplicity-0.7.12
   mpv    0.25.0 → 0.25.0   
/gnu/store/0pcmgd24v7p0wmccwsan1xw88dhkz4jl-mpv-0.25.0
   vlc    2.2.6 → 2.2.6   
/gnu/store/hysbc89y541kwdrh5kr63xs2z6xfc3lk-vlc-2.2.6
   audacity    2.1.3 → 2.1.3   
/gnu/store/vlp9fmbfzc6bxvcwkfns4m78wl1ai45i-audacity-2.1.3
   transmission    2.92 → 2.92   
/gnu/store/9rw82dip670864ijy06k62jd1py2bfwb-transmission-2.92
   0ad    0.0.21-alpha → 0.0.21-alpha   
/gnu/store/iikijc3g14k8lscjzqg7g7ca7f2222fn-0ad-0.0.21-alpha
   qtox    1.10.1 → 1.10.1   
/gnu/store/g7qxq694lns87gmcz7jxs7mqs0vngc4v-qtox-1.10.1
   weechat    1.8 → 1.8   
/gnu/store/8p0dkk2l4zh3gq185hjpbn1sf4z1nrbr-weechat-1.8
   terminology    1.0.0 → 1.0.0   
/gnu/store/05s9nwhf6m7zq4gvx4kb9djcfqj401cs-terminology-1.0.0
   leafpad    0.8.18.1 → 0.8.18.1   
/gnu/store/d630r7id7rr2r2wfdm4wc2jxlpv2m9k2-leafpad-0.8.18.1

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
Downloading
https://mirror.hydra.gnu.org/guix/nar/6jr66c4dj5sgqi3qzqnqndz25vg1lpkd-alabaster-0.7.9.tar.gz
(10KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
https://mirror.hydra.gnu.org/guix/nar/gzip/529jffxlnzni6gnknxwj5aq5dqnnl5yr-python2-markupsafe-0.23
(87KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
https://mirror.hydra.gnu.org/guix/nar/gzip/mindszikwbq6q8kk43wlyhifw97lyzn7-python2-requests-2.13.0
(2.9MiB installed)...
guix substitute: error: host name lookup error: Name or service not known
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
Downloading
https://mirror.hydra.gnu.org/guix/nar/gzip/nhs83fqs3z54876rw4vakifk0czlrp95-pcre-8.40-bin
(209KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
https://mirror.hydra.gnu.org/guix/nar/gzip/fckvya7k7i2wlh3wfdf26g52k63jqrgh-python2-webencodings-0.5
(68KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
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
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
Downloading
https://mirror.hydra.gnu.org/guix/nar/6kazs3hk2ldzbyf5fkz2sywxyvlxwr7x-pcre-8.40.tar.bz2
(1.5MiB installed)...
guix substitute: error: host name lookup error: Name or service not known

Starting download of
/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz
From https://pypi.io/packages/source/J/Jinja2/Jinja2-2.8.tar.gz...
ERROR: In procedure getaddrinfo: Name or service not known

Starting download of
/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz
From
http://mirror.hydra.gnu.org/file/Jinja2-2.8.tar.gz/sha256/1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw...
ERROR: In procedure getaddrinfo: Name or service not known

Starting download of
/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz
From
http://tarballs.nixos.org/sha256/1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw...
ERROR: In procedure getaddrinfo: Name or service not known
failed to download
"/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz" from
"https://pypi.io/packages/source/J/Jinja2/Jinja2-2.8.tar.gz"
builder for
`/gnu/store/4w00r5104mgnj0wj3rbj0nlbfvl2j1ww-Jinja2-2.8.tar.gz.drv'
failed to produce output path
`/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz'
cannot build derivation
`/gnu/store/7gsxva81vfxlcchmz6hhbrph87p5f7b4-python2-jinja2-2.8.drv': 1
dependencies couldn't be built
cannot build derivation
`/gnu/store/zi3bsjfnnb7sp2d3p4afkypmf9yhgqfj-python2-cffi-1.4.2.drv': 1
dependencies couldn't be built
guix package: error: build failed: build of
`/gnu/store/zi3bsjfnnb7sp2d3p4afkypmf9yhgqfj-python2-cffi-1.4.2.drv' failed

[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#27096; Package guix. (Sun, 28 May 2017 20:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 27096 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
Cc: 27096 <at> debbugs.gnu.org
Subject: Re: bug#27096: guix package -i ... fails when the internet is
 disconnected
Date: Sun, 28 May 2017 22:39:00 +0200
Hi Brendan,

Brendan Tildesley <brendan.tildesley <at> openmailbox.org> 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.  :-)

> b <at> ui ~$ guix package -i stellarium calibre icecat  duplicity mpv vlc
> audacity transmission 0ad qtox weechat terminology leafpad --fallback
> The following packages will be upgraded:
>    stellarium    0.15.1 → 0.15.1   
> /gnu/store/qyxkrm2pawcl0lhkzhc5cm0zxzbph6xj-stellarium-0.15.1
>    calibre    2.85.1 → 2.85.1   
> /gnu/store/igjgzg8qcss2wn9m4q7p4jz0w4d4cwp3-calibre-2.85.1
>    icecat    52.1.0-gnu1 → 52.1.0-gnu1   
> /gnu/store/nb64j11jys7ijzlb4a5swgqmw228gjs9-icecat-52.1.0-gnu1
>    duplicity    0.7.12 → 0.7.12   
> /gnu/store/sysrzmlsrrdprgv59f3g81lsxhfz70cv-duplicity-0.7.12
>    mpv    0.25.0 → 0.25.0   
> /gnu/store/0pcmgd24v7p0wmccwsan1xw88dhkz4jl-mpv-0.25.0
>    vlc    2.2.6 → 2.2.6   
> /gnu/store/hysbc89y541kwdrh5kr63xs2z6xfc3lk-vlc-2.2.6
>    audacity    2.1.3 → 2.1.3   
> /gnu/store/vlp9fmbfzc6bxvcwkfns4m78wl1ai45i-audacity-2.1.3
>    transmission    2.92 → 2.92   
> /gnu/store/9rw82dip670864ijy06k62jd1py2bfwb-transmission-2.92
>    0ad    0.0.21-alpha → 0.0.21-alpha   
> /gnu/store/iikijc3g14k8lscjzqg7g7ca7f2222fn-0ad-0.0.21-alpha
>    qtox    1.10.1 → 1.10.1   
> /gnu/store/g7qxq694lns87gmcz7jxs7mqs0vngc4v-qtox-1.10.1
>    weechat    1.8 → 1.8   
> /gnu/store/8p0dkk2l4zh3gq185hjpbn1sf4z1nrbr-weechat-1.8
>    terminology    1.0.0 → 1.0.0   
> /gnu/store/05s9nwhf6m7zq4gvx4kb9djcfqj401cs-terminology-1.0.0
>    leafpad    0.8.18.1 → 0.8.18.1   
> /gnu/store/d630r7id7rr2r2wfdm4wc2jxlpv2m9k2-leafpad-0.8.18.1
>
> nothing to be done
> b <at> ui ~$ guix package -i stellarium calibre icecat  duplicity mpv vlc
> audacity transmission 0ad qtox weechat terminology leafpad --fallback
> The following packages will be upgraded:
>    stellarium    0.15.1 → 0.15.1   
> /gnu/store/qyxkrm2pawcl0lhkzhc5cm0zxzbph6xj-stellarium-0.15.1
>    calibre    2.85.1 → 2.85.1   

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?

> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#27096; Package guix. (Mon, 29 May 2017 08:31:01 GMT) Full text and rfc822 format available.

Message #11 received at 27096 <at> debbugs.gnu.org (full text, mbox):

From: Brendan Tildesley <brendan.tildesley <at> openmailbox.org>
Cc: 27096 <at> debbugs.gnu.org
Subject: Re: bug#27096: guix package -i ... fails when the internet is
 disconnected
Date: Mon, 29 May 2017 18:30:18 +1000
Ludovic Courtès 於 2017-05-29 06:39 寫道:
> Hi Brendan,
>
> Brendan Tildesley <brendan.tildesley <at> openmailbox.org> 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’.






Information forwarded to bug-guix <at> gnu.org:
bug#27096; Package guix. (Tue, 11 Feb 2020 00:25:02 GMT) Full text and rfc822 format available.

Message #14 received at 27096 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: 27096 <at> debbugs.gnu.org, brendan.tildesley <at> openmailbox.org, 
 Ludovic Courtès <ludo <at> gnu.org>
Subject: Bug#27096 Hunting: 'guix package -i' fails when internet is
 disconnected
Date: Tue, 11 Feb 2020 01:23:50 +0100
Dear,

Do you have still issue when installing several times and one last
without any Internet connection?
Could you confirm the same issue with a recent 'guix' version?

Thank you in advance for any comments.


All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#27096; Package guix. (Tue, 11 Feb 2020 00:28:02 GMT) Full text and rfc822 format available.

Message #17 received at 27096 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: 27096 <at> debbugs.gnu.org, brendan.tildesley <at> openmailbox.org, 
 Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#27096: Hunting: 'guix package -i' fails when internet is
 disconnected
Date: Tue, 11 Feb 2020 01:26:46 +0100
Sorry, I forget to point a link with the bug to ease what I am talking
about. :-)

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27096




Reply sent to zimoun <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Wed, 12 Feb 2020 16:02:01 GMT) Full text and rfc822 format available.

Notification sent to Brendan Tildesley <brendan.tildesley <at> openmailbox.org>:
bug acknowledged by developer. (Wed, 12 Feb 2020 16:02:01 GMT) Full text and rfc822 format available.

Message #22 received at 27096-done <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: 27096-done <at> debbugs.gnu.org
Subject: Re: bug#27096: Hunting: 'guix package -i' fails when internet is
 disconnected
Date: Wed, 12 Feb 2020 17:00:53 +0100
Dear,

Using this version of Guix:

--8<---------------cut here---------------start------------->8---
  guix 403d9fa
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 403d9fae791bd22b4e2da5e90ad273755de26dc5
--8<---------------cut here---------------end--------------->8---

then running "guix package -i emacs" downloads all it needs.
The network wire is then unplugged and running again "guix package -i
emacs" works as expected, i.e., shows the message saying "nothing to
be done".


Considering it is an old bug, the initial reporter is not reachable
and the bug is not reproducible, I am closing it.

Please feel free to reopen it if you hit again this bug.


All the best,
simon




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Mar 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.