GNU bug report logs - #36785
'sudo guix pull' failure in the profile migration code

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Julien Lepiller <julien@HIDDEN>; dated Wed, 24 Jul 2019 14:41:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to ''sudo guix pull' failure in the profile migration code' from 'Impossible to pull on foreign distro' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 36785 <at> debbugs.gnu.org:


Received: (at 36785) by debbugs.gnu.org; 26 Jul 2019 08:09:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 04:09:16 2019
Received: from localhost ([127.0.0.1]:40778 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hqvHw-0000lN-4m
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2019 04:09:16 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51858)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hqvHu-0000l8-7N
 for 36785 <at> debbugs.gnu.org; Fri, 26 Jul 2019 04:09:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59682)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hqvHm-0002qO-3S; Fri, 26 Jul 2019 04:09:06 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=57130 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hqvHk-0002PK-Ir; Fri, 26 Jul 2019 04:09:04 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: bug#36785: Impossible to pull on foreign distro
References: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@HIDDEN>
 <874l39ra37.fsf@HIDDEN>
 <3DC355B8-FE36-4C4E-BBC9-EEC5F580AF0D@HIDDEN>
Date: Fri, 26 Jul 2019 10:09:02 +0200
In-Reply-To: <3DC355B8-FE36-4C4E-BBC9-EEC5F580AF0D@HIDDEN> (Julien
 Lepiller's message of "Fri, 26 Jul 2019 08:22:01 +0200")
Message-ID: <87tvb9qktd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36785
Cc: 36785 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Julien,

Julien Lepiller <julien@HIDDEN> skribis:

> Le 26 juillet 2019 01:03:08 GMT+02:00, "Ludovic Court=C3=A8s" <ludo@HIDDEN=
rg> a =C3=A9crit :

[...]

>>;; In 0.15.0+ we'd create ~/.config/guix/current-[0-9]*-link symlinks.=20
>>Move
>>  ;; them to %PROFILE-DIRECTORY.
>>  (unless (string=3D? %profile-directory
>>              (dirname (canonicalize-profile %user-profile-directory)))
>>    (migrate-generations %user-profile-directory %profile-directory))

[...]

> Could there be some veird interaction between sudo and these %profile-dir=
ectory and %user-profile-directory variables?

Indeed.  I added =E2=80=98pk=E2=80=99 calls to print =E2=80=98%profile-dire=
ctory=E2=80=99 and
(canonicalize-profile %user-profile-directory), and here=E2=80=99s what I s=
ee
with =E2=80=98sudo=E2=80=99:

--8<---------------cut here---------------start------------->8---
$ sudo -E ./pre-inst-env guix pull

;;; (pd "/var/guix/profiles/per-user/root")

;;; (upd "/home/ludo/.config/guix/current")
Migrating profile generations to '/var/guix/profiles/per-user/root'...
guix pull: error: symlink: Dosiero jam ekzistas: "/var/guix/profiles/per-us=
er/root/current-guix"
--8<---------------cut here---------------end--------------->8---

=E2=80=98%user-profile-directory=E2=80=99 is computed as a function of $HOM=
E, which is
unchanged when using =E2=80=98sudo=E2=80=99, whereas =E2=80=98%profile-dire=
ctory=E2=80=99 is computed as
a function of $USER.

I think $HOME should always prevail over the home directory defined in
/etc/passwd, so think we should not change the way
=E2=80=98%user-profile-directory=E2=80=99 is computed.

We could do this:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline

--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1721,7 +1721,8 @@ because the NUMBER is zero.)"
 
 (define %profile-directory
   (string-append %state-directory "/profiles/"
-                 (or (and=> (or (getenv "USER")
+                 (or (and=> (or (getenv "SUDO_USER")
+                                (getenv "USER")
                                 (getenv "LOGNAME"))
                             (cut string-append "per-user/" <>))
                      "default")))

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


=E2=80=A6 but then =E2=80=98sudo guix pull=E2=80=99 won=E2=80=99t update ro=
ot=E2=80=99s guix at all.

Otherwise I=E2=80=99m thinking of this gross hack:


--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 54bbaddf30..8d8a8aa889 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -293,8 +293,9 @@ true, display what would be built without actually buil=
ding it."
=20
   ;; In 0.15.0+ we'd create ~/.config/guix/current-[0-9]*-link symlinks.  =
Move
   ;; them to %PROFILE-DIRECTORY.
-  (unless (string=3D? %profile-directory
-                    (dirname (canonicalize-profile %user-profile-directory=
)))
+  (unless (or (getenv "SUDO_USER")
+              (string=3D? (pk 'pd %profile-directory)
+                        (dirname (pk 'upd (canonicalize-profile %user-prof=
ile-directory)))))
     (migrate-generations %user-profile-directory %profile-directory))
=20
   ;; Make sure ~/.config/guix/current points to /var/guix/profiles/=E2=80=
=A6.

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


I think it=E2=80=99s acceptable because that=E2=80=99s =E2=80=9Cthrow away=
=E2=80=9D code anyway, and
it=E2=80=99s not supposed to be triggered these days.

Thoughts?

Ludo=E2=80=99.

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#36785; Package guix. Full text available.

Message received at 36785 <at> debbugs.gnu.org:


Received: (at 36785) by debbugs.gnu.org; 26 Jul 2019 06:22:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 02:22:05 2019
Received: from localhost ([127.0.0.1]:40726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hqtcC-0004S3-N3
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2019 02:22:04 -0400
Received: from lepiller.eu ([89.234.186.109]:35554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <julien@HIDDEN>) id 1hqtcA-0004Rd-KF
 for 36785 <at> debbugs.gnu.org; Fri, 26 Jul 2019 02:22:03 -0400
Received: from lepiller.eu (localhost [127.0.0.1])
 by lepiller.eu (OpenSMTPD) with ESMTP id 9e98a86d;
 Fri, 26 Jul 2019 06:22:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lepiller.eu; h=date
 :in-reply-to:references:mime-version:content-type
 :content-transfer-encoding:subject:to:cc:from:message-id; s=
 dkim; bh=BA7HlOTERs0zlhGGACG1DCgs9bo=; b=AXoiKT2pA58oH32gmnEa123
 rK5gBuAZYDRpHqKk+deKoiILvZkePTPIMM2RSDSHi9US4syknjWjEr89PMTMzrso
 kNbywP0TAUG3r1sCWEsc7X973yuzDpX7ayBvP9Ew+L0iqWKeuykMzx6b+HWo/5lq
 YHxm8qVecoB2t9EPpXiTtSn+o1P89tmU8ssZ2a0wSe11VvyxOiduL1TFOVhbuUIT
 rqXbA5s/4cPqasF0zVxO8Szp9codAJyhtjucnRFKFg0EGfYgYUwACJ+yzQEWzQZN
 OU6nwB/WqBjPt3B6XdR8z/qnTnYuNv2QNbnoEXn/jh7vmawtOJvujZRnNi5NFFQ=
 =
DomainKey-Signature: a=rsa-sha1; c=nofws; d=lepiller.eu; h=date
 :in-reply-to:references:mime-version:content-type
 :content-transfer-encoding:subject:to:cc:from:message-id; q=dns;
 s=dkim; b=Ff2Me78XsMX1Z9TQfLX8CirM8rjIhplgsprVMJzX/ursoxGKWPHpQ
 yjghJV+5Xi02yw1XMr3jEJP1GnscUM0jWfRwA0X38qplaEQ0NOqyMEzxsUjIstzs
 i1ept4SkLOH5gtPrSHT8qt0hF3ON425Rlg3Qqjp36zMzge1WVCIlSAYzBKC3zTkJ
 4ba/TjGH0tFBtCp+qsB4XqZ73rx/ajJ98QnzRyBZzXU+mxWRlYL0eXDuXm3X/YZ6
 gE82qDppMCJiN2am2w1QC6Er1hR8VlnlrUQO24WXDbbo4ADPA7P8YWNfzZ7LIwKG
 pn3mhAunA1SKIuHSaYQjek3zQxRVUqflQ==
Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f47cf94f
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Fri, 26 Jul 2019 06:21:59 +0000 (UTC)
Date: Fri, 26 Jul 2019 08:22:01 +0200
User-Agent: K-9 Mail for Android
In-Reply-To: <874l39ra37.fsf@HIDDEN>
References: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@HIDDEN>
 <874l39ra37.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: bug#36785: Impossible to pull on foreign distro
To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= <ludo@HIDDEN>
From: Julien Lepiller <julien@HIDDEN>
Message-ID: <3DC355B8-FE36-4C4E-BBC9-EEC5F580AF0D@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36785
Cc: 36785 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Le 26 juillet 2019 01:03:08 GMT+02:00, "Ludovic Court=C3=A8s" <ludo@gnu=2Eo=
rg> a =C3=A9crit :
>Hi Julien,
>
>Julien Lepiller <julien@lepiller=2Eeu> skribis:
>
>> I gave a small tutorial to someone today, where we installed guix on
>top of a foreign distro=2E We used the script and everything went
>smoothly, and after finding out that we were going to build php (we
>were trying to define a VM that would serve one of their services), we
>tried to run guix pull:
>>
>> sudo guix pull =E2=80=94commit=3D=E2=80=A6
>>
>> However the command failed immediately with:
>>
>> Migrating profile generations to
>'/var/guix/profiles/per-user/root'=2E=2E=2E
>> Guix pull: error: symlink: File exists:
>"/var/guix/profiles/per-user/root/current-guix"
>>
>> Indeed, the file exists and everything looks good=2E Why does guix try
>to migrate a profile that's already good?
>>
>> I was able to work around that situation, but it's not great for our
>users=2E
>
>I=E2=80=99m guessing the machine had remnants of a previous Guix installa=
tion,
>no?  See:
>
>;; In 0=2E15=2E0+ we'd create ~/=2Econfig/guix/current-[0-9]*-link symlin=
ks=2E=20
>Move
>  ;; them to %PROFILE-DIRECTORY=2E
>  (unless (string=3D? %profile-directory
>              (dirname (canonicalize-profile %user-profile-directory)))
>    (migrate-generations %user-profile-directory %profile-directory))
>
>Ludo=E2=80=99=2E

Not at all, this was the first install on that machine=2E The OS was even =
installed recently, so there can't be any remnant of the 0=2E15 era :)=2E I=
nstallation went smoothly and /root/=2Econfig/guix/current was already a sy=
mlink to /var/guix/profiles/per-user/root=2E We ran guix pull as user just =
before and it worked perfectly well (with the message about migrating, alth=
ough ~/=2Econfig/guix/current didn't exist)=2E

Could there be some veird interaction between sudo and these %profile-dire=
ctory and %user-profile-directory variables?




Information forwarded to bug-guix@HIDDEN:
bug#36785; Package guix. Full text available.

Message received at 36785 <at> debbugs.gnu.org:


Received: (at 36785) by debbugs.gnu.org; 25 Jul 2019 23:03:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 19:03:20 2019
Received: from localhost ([127.0.0.1]:40592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hqmlb-0006au-LA
	for submit <at> debbugs.gnu.org; Thu, 25 Jul 2019 19:03:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51409)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hqmlY-0006ag-1A
 for 36785 <at> debbugs.gnu.org; Thu, 25 Jul 2019 19:03:16 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52719)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hqmlS-0000q5-Rq; Thu, 25 Jul 2019 19:03:10 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49996 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hqmlR-0002U9-NG; Thu, 25 Jul 2019 19:03:10 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: bug#36785: Impossible to pull on foreign distro
References: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 8 Thermidor an 227 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 26 Jul 2019 01:03:08 +0200
In-Reply-To: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@HIDDEN> (Julien
 Lepiller's message of "Wed, 24 Jul 2019 16:40:42 +0200")
Message-ID: <874l39ra37.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36785
Cc: 36785 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Julien,

Julien Lepiller <julien@HIDDEN> skribis:

> I gave a small tutorial to someone today, where we installed guix on top =
of a foreign distro. We used the script and everything went smoothly, and a=
fter finding out that we were going to build php (we were trying to define =
a VM that would serve one of their services), we tried to run guix pull:
>
> sudo guix pull =E2=80=94commit=3D=E2=80=A6
>
> However the command failed immediately with:
>
> Migrating profile generations to '/var/guix/profiles/per-user/root'...
> Guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/root=
/current-guix"
>
> Indeed, the file exists and everything looks good. Why does guix try to m=
igrate a profile that's already good?
>
> I was able to work around that situation, but it's not great for our user=
s.

I=E2=80=99m guessing the machine had remnants of a previous Guix installati=
on,
no?  See:

  ;; In 0.15.0+ we'd create ~/.config/guix/current-[0-9]*-link symlinks.  M=
ove
  ;; them to %PROFILE-DIRECTORY.
  (unless (string=3D? %profile-directory
                    (dirname (canonicalize-profile %user-profile-directory)=
))
    (migrate-generations %user-profile-directory %profile-directory))

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#36785; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jul 2019 14:40:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 10:40:51 2019
Received: from localhost ([127.0.0.1]:37842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hqIRj-0007Tg-I1
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2019 10:40:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:32808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <julien@HIDDEN>) id 1hqIRi-0007TZ-0h
 for submit <at> debbugs.gnu.org; Wed, 24 Jul 2019 10:40:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33617)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <julien@HIDDEN>) id 1hqIRh-0006E5-0R
 for bug-guix@HIDDEN; Wed, 24 Jul 2019 10:40:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_40,RCVD_IN_SBL_CSS
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <julien@HIDDEN>) id 1hqIRf-0003NK-3i
 for bug-guix@HIDDEN; Wed, 24 Jul 2019 10:40:44 -0400
Received: from lepiller.eu ([2a00:5884:8208::1]:54100)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <julien@HIDDEN>) id 1hqIRe-0003LX-Rg
 for bug-guix@HIDDEN; Wed, 24 Jul 2019 10:40:43 -0400
Received: from [131.254.252.98] (205.emeraldonion.org [23.129.64.205])
 by lepiller.eu (OpenSMTPD) with ESMTPSA id 920a0358
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>;
 Wed, 24 Jul 2019 14:40:38 +0000 (UTC)
Date: Wed, 24 Jul 2019 16:40:42 +0200
User-Agent: K-9 Mail for Android
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: Impossible to pull on foreign distro
To: bug-guix@HIDDEN
From: Julien Lepiller <julien@HIDDEN>
Message-ID: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:5884:8208::1
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi guix, I gave a small tutorial to someone today, where we
 installed guix on top of a foreign distro. We used the script and everything
 went smoothly, and after finding out that we were going to build php (we
 [...] Content analysis details:   (1.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [23.129.64.205 listed in zen.spamhaus.org]
 0.0 SPF_NONE               SPF: sender does not publish an SPF Record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Hi guix,

I gave a small tutorial to someone today, where we installed guix on top o=
f a foreign distro=2E We used the script and everything went smoothly, and =
after finding out that we were going to build php (we were trying to define=
 a VM that would serve one of their services), we tried to run guix pull:

sudo guix pull =E2=80=94commit=3D=E2=80=A6

However the command failed immediately with:

Migrating profile generations to '/var/guix/profiles/per-user/root'=2E=2E=
=2E
Guix pull: error: symlink: File exists: "/var/guix/profiles/per-user/root/=
current-guix"

Indeed, the file exists and everything looks good=2E Why does guix try to =
migrate a profile that's already good?

I was able to work around that situation, but it's not great for our users=
=2E




Acknowledgement sent to Julien Lepiller <julien@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#36785; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Jul 2019 09:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.