all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Client fails to find package (mame) with guix publish
@ 2020-02-18 11:31 Pierre Neidhardt
  2020-02-18 11:40 ` Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2020-02-18 11:31 UTC (permalink / raw)
  To: help-guix

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

Hi!

The 'mame' package is not available on ci.guix.gnu.org for some reason,
so I did build it locally on my desktop.

Now I'd like to transfer this build artifact to my laptop.

On my desktop I ran

--8<---------------cut here---------------start------------->8---
sudo guix archive --generate-key
sudo guix publish 
--8<---------------cut here---------------end--------------->8---

Then on my laptop I ran

--8<---------------cut here---------------start------------->8---
guix time-machine --commit=a74e231 -- build mame --substitute-urls="http://192.168.1.27:8080 https://ci.guix.gnu.org"
--8<---------------cut here---------------end--------------->8---

The desktop then displays a bunch of

--8<---------------cut here---------------start------------->8---
GET /ddjh5vxa692nllffzz92mvyclqv79bkn.narinfo
GET /j8hk0nv8fn5k5i55z85jhs41x2hvcy5n.narinfo
...
--8<---------------cut here---------------end--------------->8---

so I guess this means publishing works.
However my laptop does not fetch the mame substitute and starts building
mame again, which takes hours.

Any idea what's wrong?

-- 
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: Client fails to find package (mame) with guix publish
  2020-02-18 11:31 Client fails to find package (mame) with guix publish Pierre Neidhardt
@ 2020-02-18 11:40 ` Efraim Flashner
  2020-02-18 11:57   ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Efraim Flashner @ 2020-02-18 11:40 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

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

On Tue, Feb 18, 2020 at 12:31:39PM +0100, Pierre Neidhardt wrote:
> Hi!
> 
> The 'mame' package is not available on ci.guix.gnu.org for some reason,
> so I did build it locally on my desktop.
> 
> Now I'd like to transfer this build artifact to my laptop.
> 
> On my desktop I ran
> 
> --8<---------------cut here---------------start------------->8---
> sudo guix archive --generate-key
> sudo guix publish 
> --8<---------------cut here---------------end--------------->8---

did you transfer the public key to your other machine and run 'sudo guix
archive --import < /path/to/public/key'?

> 
> Then on my laptop I ran
> 
> --8<---------------cut here---------------start------------->8---
> guix time-machine --commit=a74e231 -- build mame --substitute-urls="http://192.168.1.27:8080 https://ci.guix.gnu.org"
> --8<---------------cut here---------------end--------------->8---
> 
> The desktop then displays a bunch of
> 
> --8<---------------cut here---------------start------------->8---
> GET /ddjh5vxa692nllffzz92mvyclqv79bkn.narinfo
> GET /j8hk0nv8fn5k5i55z85jhs41x2hvcy5n.narinfo
> ...
> --8<---------------cut here---------------end--------------->8---
> 

I wasn't sure about needing to specify more flags with 'sudo guix
publish' but it looks like it was correct.

> so I guess this means publishing works.
> However my laptop does not fetch the mame substitute and starts building
> mame again, which takes hours.

Try giving it a few minutes to "bake" the substitute and then serve it.
It needs to re-compress it to make transfers (at a large scale) more
economical.

> 
> Any idea what's wrong?
> 

Doesn't address the substitute/publish problem, but have you tried using
guix copy to copy it over?


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

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

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

* Re: Client fails to find package (mame) with guix publish
  2020-02-18 11:40 ` Efraim Flashner
@ 2020-02-18 11:57   ` Pierre Neidhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2020-02-18 11:57 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: help-guix

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

Efraim Flashner <efraim@flashner.co.il> writes:

> On Tue, Feb 18, 2020 at 12:31:39PM +0100, Pierre Neidhardt wrote:
>> Hi!
>> 
>> The 'mame' package is not available on ci.guix.gnu.org for some reason,
>> so I did build it locally on my desktop.
>> 
>> Now I'd like to transfer this build artifact to my laptop.
>> 
>> On my desktop I ran
>> 
>> --8<---------------cut here---------------start------------->8---
>> sudo guix archive --generate-key
>> sudo guix publish 
>> --8<---------------cut here---------------end--------------->8---
>
> did you transfer the public key to your other machine and run 'sudo guix
> archive --import < /path/to/public/key'?

That was it, I had forgotten to import the public key!

By the way, it's

--8<---------------cut here---------------start------------->8---
sudo guix archive --authorize < /path/to/public/key
--8<---------------cut here---------------end--------------->8---

not `--import` :)

> Try giving it a few minutes to "bake" the substitute and then serve it.
> It needs to re-compress it to make transfers (at a large scale) more
> economical.

I didn't enable caching so the compression should happen on the fly.

> Doesn't address the substitute/publish problem, but have you tried using
> guix copy to copy it over?

I haven't but I want to use `guix publish` since it provides a more
automated, smoother experience.

Problem solved, thanks!
-- 
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

end of thread, other threads:[~2020-02-18 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 11:31 Client fails to find package (mame) with guix publish Pierre Neidhardt
2020-02-18 11:40 ` Efraim Flashner
2020-02-18 11:57   ` Pierre Neidhardt

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.