guix package -i ... fails when the internet is disconnected

  • Done
  • quality assurance status badge
Details
3 participants
  • Brendan Tildesley
  • Ludovic Courtès
  • zimoun
Owner
unassigned
Submitted by
Brendan Tildesley
Severity
normal
B
B
Brendan Tildesley wrote on 27 May 2017 11:42
(address . bug-guix@gnu.org)
0bb16f01-3edb-a43b-25b3-7713cd40673a@openmailbox.org
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@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@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
(10KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
(87KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
(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
(209KiB installed)...
guix substitute: error: host name lookup error: Name or service not known
Downloading
(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
(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
ERROR: In procedure getaddrinfo: Name or service not known

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

Starting download of
/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz
From
ERROR: In procedure getaddrinfo: Name or service not known
failed to download
"/gnu/store/h8ggljz6ahc3ikhz3wprz6p9pwpkw9zb-Jinja2-2.8.tar.gz" from
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
Attachment: file
L
L
Ludovic Courtès wrote on 28 May 2017 22:39
(name . Brendan Tildesley)(address . brendan.tildesley@openmailbox.org)(address . 27096@debbugs.gnu.org)
87poesogwr.fsf@gnu.org
Hi Brendan,

Brendan Tildesley <brendan.tildesley@openmailbox.org> skribis:

Toggle quote (12 lines)
> 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. :-)

Toggle quote (38 lines)
> b@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@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?

Toggle quote (9 lines)
> 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’.
B
B
Brendan Tildesley wrote on 29 May 2017 10:30
(address . 27096@debbugs.gnu.org)
87765dd2-0236-a5dc-3518-49b0254c5eae@openmailbox.org
Ludovic Courtès ? 2017-05-29 06:39 ??:
Toggle quote (21 lines)
> Hi Brendan,
>
> Brendan Tildesley <brendan.tildesley@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.
Toggle quote (12 lines)
>> 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’.
Z
Z
zimoun wrote on 11 Feb 2020 01:23
Bug#27096 Hunting: 'guix package -i' fails when internet is disconnected
CAJ3okZ0MUpm3+AmEfkzAFbvFCYB-rivCd--bHifgdwQaTA203Q@mail.gmail.com
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
Z
Z
Z
zimoun wrote on 12 Feb 2020 17:00
(address . 27096-done@debbugs.gnu.org)
CAJ3okZ2qEMEq0mhX8Wa5q-U0BtkbuDYozdS0Pq0Wv7tgg--hFQ@mail.gmail.com
Dear,

Using this version of Guix:

Toggle snippet (6 lines)
guix 403d9fa
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 403d9fae791bd22b4e2da5e90ad273755de26dc5

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
Closed
?