bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-25 Thread Ludovic Courtès
Ludovic Courtès  skribis:

> Julien, could it be that “something else” removed /root/.config or
> /var/guix/profiles while it was running?  Or… any other idea?

Following our discussion on IRC, it seems likely that “something”
interfered with the installation process.  Closing as “notabug”.

Thanks,
Ludo’.





bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-21 Thread Ludovic Courtès
Here’s the paste, for posterity:

--8<---cut here---start->8---
This script installs GNU Guix on your system

https://www.gnu.org/software/guix/
Press return to continue...
[1618245319.405]: Starting installation (Mon 12 Apr 2021 12:35:19 PM EDT)
[1618245319.409]: [ PASS ] verification of required commands completed
[1618245319.445]: [ INFO ] init system is: systemd
[1618245319.465]: [ WARN ] We recommend installing and/or starting your 
distribution 'nscd' service
[1618245319.467]: [ WARN ] Please read 'info guix "Application Setup"' about 
"Name Service Switch"
[1618245319.468]: [ INFO ] system is x86_64-linux
[1618245319.593]: [ PASS ] Release for your system: 
guix-binary-1.2.0.x86_64-linux
[1618245319.595]: [ INFO ] Downloading Guix release archive
guix-binary-1.2.0.x86_64-linux.tar.xz   
100%[=>]
  76.00M  68.5MB/sin 1.1s
guix-binary-1.2.0.x86_64-linux.tar.xz.sig   
100%[=>]
 833  --.-KB/sin 0s  
[1618245320.829]: [ PASS ] download completed.
[1618245321.262]: [ PASS ] Signature is valid.
[1618245328.424]: [ PASS ] unpacked archive
[1618245328.426]: [ INFO ] Installing /var/guix and /gnu...
[1618245329.506]: [ INFO ] Linking the root user's profile
[1618245329.516]: [ PASS ] activated root profile at /root/.config/guix/current
[1618245330.001]: [ PASS ] group  created
[1618245330.698]: [ PASS ] user added 
[1618245331.389]: [ PASS ] user added 
[1618245332.274]: [ PASS ] user added 
[1618245332.907]: [ PASS ] user added 
[1618245333.583]: [ PASS ] user added 
[1618245334.203]: [ PASS ] user added 
[1618245334.874]: [ PASS ] user added 
[1618245335.520]: [ PASS ] user added 
[1618245336.215]: [ PASS ] user added 
[1618245336.853]: [ PASS ] user added 
Created symlink /etc/systemd/system/guix-daemon.service.wants/gnu-store.mount → 
/etc/systemd/system/gnu-store.mount.
Created symlink /etc/systemd/system/multi-user.target.wants/guix-daemon.service 
→ /etc/systemd/system/guix-daemon.service.
[1618245337.848]: [ PASS ] enabled Guix daemon via systemd
[1618245337.849]: [ INFO ] making the guix command available to other users
Permit downloading pre-built package binaries from the project's build farm? 
(yes/no) yes
/home/roptat/guix-install.sh: line 445: 
/root/.config/guix/current/share/guix/ci.guix.gnu.org.pub: No such file or 
directory
[1618245340.514]: [ PASS ] installed shell completion
[1618245340.516]: [ INFO ] cleaning up /tmp/guix.ySI
[1618245340.528]: [ PASS ] Guix has successfully been installed!
[1618245340.529]: [ INFO ] Run 'info guix' to read the manual.
[1618245340.530]: [ INFO ] Please log out and back in to complete the 
installation.
--8<---cut here---end--->8---

We see these lines:

  [ INFO ] Installing /var/guix and /gnu...
  [ INFO ] Linking the root user's profile
  [ PASS ] activated root profile at /root/.config/guix/current

which is evidence that ~root/.config/guix/current was created and is not
a dangling symlink.  Further more, the binary tarball does contain that
.pub file:

--8<---cut here---start->8---
$ wget -qO - https://ftp.gnu.org/gnu/guix/guix-binary-1.2.0.x86_64-linux.tar.xz 
| xz -d | tar tv | grep '\.pub$'
-r--r--r-- root/root   118 1970-01-01 01:00 
./gnu/store/6rn4l3h0p9x0m615pp1ynlv9v0743kl3-guix-1.2.0/share/guix/berlin.guix.gnu.org.pub
-r--r--r-- root/root   118 1970-01-01 01:00 
./gnu/store/6rn4l3h0p9x0m615pp1ynlv9v0743kl3-guix-1.2.0/share/guix/ci.guix.gnu.org.pub
-r--r--r-- root/root   118 1970-01-01 01:00 
./gnu/store/6rn4l3h0p9x0m615pp1ynlv9v0743kl3-guix-1.2.0/share/guix/ci.guix.info.pub
--8<---cut here---end--->8---

So I don’t see what happened.

Julien, could it be that “something else” removed /root/.config or
/var/guix/profiles while it was running?  Or… any other idea?

Thanks,
Ludo’.





bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-21 Thread Julien Lepiller
I can't copy-paste easily to my email client right now, so here's a paste. I'll 
send the content later.

https://paste.debian.net/1194563/

Le 21 avril 2021 08:45:01 GMT-04:00, "Ludovic Courtès"  a écrit :
>Hi Julien,
>
>Julien Lepiller  skribis:
>
>> When installing Guix on a new machine (foreign distro), substitute
>were not properly set up:
>>
>> …
>> Permit downloading pre-built package binaries from the project's
>build farm? (yes/no) yes
>> /home/roptat/guix-install.sh: line 445:
>/root/.config/guix/current/share/guix/ci.guix.gnu.org.pub: No such file
>or directory
>>
>> That was the latest version of the script downloaded from savannah.
>It downloaded and installed the 1.2.0 tarball.
>>
>> I was able to fix that later manually, but let's make sure the script
>doesn't fail like that with the release :)
>
>I don’t see how this can happen: ‘sys_create_store’ creates
>~root/.config/guix/current, before ‘sys_authorize_build_farms’ runs.
>
>Can you reproduce it, Julien?
>
>Alternatively, could you paste the complete output of the
>guix-install.sh script when it failed?
>
>Thanks,
>Ludo’.


bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-21 Thread Ludovic Courtès
Hi Julien,

Julien Lepiller  skribis:

> When installing Guix on a new machine (foreign distro), substitute were not 
> properly set up:
>
> …
> Permit downloading pre-built package binaries from the project's build farm? 
> (yes/no) yes
> /home/roptat/guix-install.sh: line 445: 
> /root/.config/guix/current/share/guix/ci.guix.gnu.org.pub: No such file or 
> directory
>
> That was the latest version of the script downloaded from savannah. It 
> downloaded and installed the 1.2.0 tarball.
>
> I was able to fix that later manually, but let's make sure the script doesn't 
> fail like that with the release :)

I don’t see how this can happen: ‘sys_create_store’ creates
~root/.config/guix/current, before ‘sys_authorize_build_farms’ runs.

Can you reproduce it, Julien?

Alternatively, could you paste the complete output of the
guix-install.sh script when it failed?

Thanks,
Ludo’.





bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-19 Thread Leo Famulari
On Wed, Apr 14, 2021 at 03:52:56PM -0400, Leo Famulari wrote:
> Can anybody reproduce this bug?

Ping?





bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-14 Thread Leo Famulari
On Mon, Apr 12, 2021 at 03:48:10PM -0400, Julien Lepiller wrote:
> Hi Guix!
> 
> When installing Guix on a new machine (foreign distro), substitute were not 
> properly set up:
> 
> …
> Permit downloading pre-built package binaries from the project's build farm? 
> (yes/no) yes
> /home/roptat/guix-install.sh: line 445: 
> /root/.config/guix/current/share/guix/ci.guix.gnu.org.pub: No such file or 
> directory
> 
> That was the latest version of the script downloaded from savannah. It 
> downloaded and installed the 1.2.0 tarball.
> 
> I was able to fix that later manually, but let's make sure the script doesn't 
> fail like that with the release :)

I ran the script, following the instructions in the manual, on a fresh
Debian system. I had no problems.

I also ran the script, not following the instructions exactly, but
instead doing `sudo ./guix-install.sh`, and it still worked fine. I
thought that maybe there were some 'sudo' vs 'sudo --login' shenanigans,
but nothing went wrong.

Can anybody reproduce this bug?





bug#47734: Guix install script on foreign distro fails to add berlin public key

2021-04-12 Thread Julien Lepiller
Hi Guix!

When installing Guix on a new machine (foreign distro), substitute were not 
properly set up:

…
Permit downloading pre-built package binaries from the project's build farm? 
(yes/no) yes
/home/roptat/guix-install.sh: line 445: 
/root/.config/guix/current/share/guix/ci.guix.gnu.org.pub: No such file or 
directory

That was the latest version of the script downloaded from savannah. It 
downloaded and installed the 1.2.0 tarball.

I was able to fix that later manually, but let's make sure the script doesn't 
fail like that with the release :)