* Guix doesnt use guix publish as a substitute
@ 2020-09-02 7:08 edk
2020-09-02 8:30 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: edk @ 2020-09-02 7:08 UTC (permalink / raw)
To: help-guix
Dear Guixers,
On one machine I have the following:
$guix describe
guile: warning: failed to install locale
Génération 2 01 sept. 2020 17:10:25 (actuelle)
beaverlabs d878892
URL du dépôt : https://gitlab.com/edouardklein/guix
branche: beaverlabs
commit : d8788927c7e8b29702adb971bf1ffbc3235fba22
guix 6bf5f20
URL du dépôt : https://git.savannah.gnu.org/git/guix.git
branche: master
commit : 6bf5f207f171e87a53e6578a61b4334683a861c8
On another I have:
$guix describe
Generation 4 Sep 01 2020 17:32:39 (current)
beaverlabs d878892
repository URL: https://gitlab.com/edouardklein/guix
branch: master
commit: d8788927c7e8b29702adb971bf1ffbc3235fba22
guix 6bf5f20
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 6bf5f207f171e87a53e6578a61b4334683a861c8
I then run guix build gerbil on the first machine, then guix publish, and make it available to
the second using a ssh tunnel and run
guix build --substitute-urls=http://localhost:8080 --dry-run gerbil
on the second machine, and I get:
substitute: /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
The following derivation would be built:
/gnu/store/0nl1kmsqnbba4z47p28y0n023kbnvl8w-gerbil-0.16.drv
My question is: why isn't the second machine fetching a binary package
of gerbil from the first ? Why does it try to build it (it can't, not
enough RAM) ?
I have no idea how to debug this.
I tried curling http://localhost:8080 on the second machine, which gives
me the nice "Guix publish speaking" message.
I noticed that on the second machine, it believes that commit d878892 is
on branch master, which it isn't, it's on branch beaverlabs, but I don't
think this matters, does it ?
Any help would be appreciated.
Thanks,
Edouard.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Guix doesnt use guix publish as a substitute
2020-09-02 7:08 Guix doesnt use guix publish as a substitute edk
@ 2020-09-02 8:30 ` Pierre Neidhardt
2020-09-02 8:56 ` edk
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2020-09-02 8:30 UTC (permalink / raw)
To: edk, help-guix
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
Hi!
Did you authorize the substitute server on the client?
From the manual (Invoking `guix publish'):
> The signing key pair must be generated before ‘guix publish’ is
> launched, using ‘guix archive --generate-key’ (*note Invoking guix
> archive::).
> ...
> Once a publishing server has been authorized (*note Invoking guix
> archive::), the daemon may download substitutes from it:
Hope that helps!
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Guix doesnt use guix publish as a substitute
2020-09-02 8:30 ` Pierre Neidhardt
@ 2020-09-02 8:56 ` edk
0 siblings, 0 replies; 3+ messages in thread
From: edk @ 2020-09-02 8:56 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix
Hi Pierre !
That was it, thanks a lot ! Sorry I should have read the docs more carefully.
The command to run on the first machine was
ssh root@SECONDMACHINE guix archive --authorize < /etc/guix/signing-key.pub
It now says "downloading from
http://localhost:8081/nar/gzip/yyrr1zj2ax53pylzp0mq92sgpldk2603-gerbil-0.16"
Cheers,
Edouard.
Pierre Neidhardt writes:
> Hi!
>
> Did you authorize the substitute server on the client?
>
> From the manual (Invoking `guix publish'):
>
>> The signing key pair must be generated before ‘guix publish’ is
>> launched, using ‘guix archive --generate-key’ (*note Invoking guix
>> archive::).
>> ...
>> Once a publishing server has been authorized (*note Invoking guix
>> archive::), the daemon may download substitutes from it:
>
> Hope that helps!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-02 8:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-02 7:08 Guix doesnt use guix publish as a substitute edk
2020-09-02 8:30 ` Pierre Neidhardt
2020-09-02 8:56 ` edk
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.