unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Local caching behavior affected by network state
@ 2017-06-29 16:30 Leo Famulari
  2017-06-30 19:07 ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2017-06-29 16:30 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]

I've noticed confusing behavior regarding the memoized cache, which
depends on the state of the network connection.

I have a built package in my store and I am connected to the internet:

$ ./pre-inst-env guix build gss
substitute: updating list of substitutes from 'https://example.com'... 100.0%
/gnu/store/ywh8cz5j63s8iwr2w2lzj3vyhqwqlhcz-gss-1.0.3

Then, I disable my network interface and run the command again:

$ ./pre-inst-env guix build gss
@ substituter-started /gnu/store/y9akh452n3p4w2v631nj0injx7y0d68x-mpc-1.0.3.tar.gz /gnu/store/6z7d9fpaph1yl1csfnnkrdv6jzr4simn-guix-0.13.0-2.de9d8f0/libexec/guix/substitute
Downloading https://mirror.hydra.gnu.org/guix/nar/y9akh452n3p4w2v631nj0injx7y0d68x-mpc-1.0.3.tar.gz...
guix substitute: error: host name lookup error: Temporary failure in name resolution
@ substituter-failed /gnu/store/y9akh452n3p4w2v631nj0injx7y0d68x-mpc-1.0.3.tar.gz 256 fetching path `/gnu/store/y9akh452n3p4w2v631nj0injx7y0d68x-mpc-1.0.3.tar.gz' failed with exit code 1
@ build-started /gnu/store/y4r20fnm9ba129r2ry6s2k1ss975dknd-gcc-5.4.0.tar.xz.drv - x86_64-linux /var/log/guix/drvs/y4//r20fnm9ba129r2ry6s2k1ss975dknd-gcc-5.4.0.tar.xz.drv.bz2
guix build: error: build failed: some substitutes for the outputs of derivation `/gnu/store/ikdvc8qn0bi57hn3ci72l5xlqyss96ys-mpc-1.0.3.tar.gz.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source
$ ./pre-inst-env guix build gss --fallback
/gnu/store/ywh8cz5j63s8iwr2w2lzj3vyhqwqlhcz-gss-1.0.3

So, when I am offline, I have to use --fallback for the local cache to
work.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-01 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-29 16:30 Local caching behavior affected by network state Leo Famulari
2017-06-30 19:07 ` Ricardo Wurmus
2017-06-30 19:20   ` Leo Famulari
2017-07-01 23:01   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).