all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jimmy Thrasibule <jimmy.thrasibule@gmail.com>
To: help-guix@gnu.org
Subject: Re: guix pull: error: symlink: File exists
Date: Sun, 19 Jan 2020 19:54:00 +0100	[thread overview]
Message-ID: <CAMqSRmAQE08uHtAhm=p62YmBBtEGj6KJSvxRx+ou+4szw5jZhQ@mail.gmail.com> (raw)
In-Reply-To: <CAMqSRmAhD7NRtNtO09G6uSRgs02AtQKisDCG6Ojt=WtQK=Oogg@mail.gmail.com>

I tried some actions and here is what happening:


    # ls -l .config/guix/
    total 0
    lrwxrwxrwx    1 root     root            45 Jan 19 18:33 current ->
/var/guix/profiles/per-user/root/current-guix
    # guix pull
    Migrating profile generations to '/var/guix/profiles/default'...
    Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
    [...]


When ``.config/guix/current`` is pointing to
``/var/guix/profiles/per-user/root/current-guix``, the ``guix pull``
command will change the link to `` /var/guix/profiles/default`` or the
other way arround.

Calling ``guix pull`` again will fail:


    # ls -l .config/guix/
    total 0
    lrwxrwxrwx    1 root     root            39 Jan 19 18:37 current ->
/var/guix/profiles/default/current-guix
    # guix pull
    Migrating profile generations to '/var/guix/profiles/per-user/root'...
    guix pull: error: symlink: File exists:
"/var/guix/profiles/per-user/root/current-guix"


The workaround is to link back the profile to ``per-user/root`` and delete
``/var/guix/profiles/default/current-guix*``.

It is not clear why Guix is constantly swapping the profiles this way.

Le sam. 18 janv. 2020 à 22:11, Jimmy Thrasibule <jimmy.thrasibule@gmail.com>
a écrit :

> Hi,
>
> I'm working on an Alpine Docker image with the Guix package manager [1].
> The container is building and can run Guix without the ``--privileged``
> option.
>
> The installation process is based on the documentation and the
> installation script [2]. Everything is working fine however, when I run
> ``guix pull`` in the generated image, I got the following error:
>
>
>     Migrating profile generations to '/var/guix/profiles/per-user/root'...
>     guix pull: error: symlink: File exists: "
> /var/guix/profiles/per-user/root/current-guix"
>
>
> This issue has already been discussed at [3] but the workaround to delete
> all the links in the directory ``/var/guix/profiles/per-user/root`` is
> causing some troubles:
>
> 1. If I want to ship a ready to use image and delete the links upfront,
> ``guix daemon`` will fail to start since ``/root/.config/guix/current`` is
> broken.
> 2. Users of the image can delete the links themselves but this is not
> really friendly.
>
> So what is exactly causing this error and what would be a good option to
> fix it?
>
>
> [1] https://hub.docker.com/repository/docker/x237net/alpine-guix
> [2] https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
> [3] https://lists.gnu.org/archive/html/help-guix/2018-12/msg00098.html
>
>

  reply	other threads:[~2020-01-19 18:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-18 21:11 guix pull: error: symlink: File exists Jimmy Thrasibule
2020-01-19 18:54 ` Jimmy Thrasibule [this message]
2020-01-20  9:29   ` Jimmy Thrasibule
2020-01-20 17:21     ` zimoun
  -- strict thread matches above, loose matches on Subject: below --
2018-10-24  1:48 [outreachy] Further steps Laura Lazzati
2018-10-24  5:16 ` Björn Höfling
2018-10-24  7:00   ` Gábor Boskovits
2018-10-24 22:16     ` Laura Lazzati
2018-10-25  3:08       ` Ricardo Wurmus
2018-10-25 14:16         ` Laura Lazzati
2018-10-25 14:37           ` Gábor Boskovits
2018-10-25 14:55             ` Laura Lazzati
2018-10-25 17:29               ` guix pull: error: symlink: File exists (was: Re: [outreachy] Further steps) Thorsten Wilms
2018-10-25 19:08                 ` Gábor Boskovits
2018-10-30 18:16                   ` Laura Lazzati
2018-10-30 20:02                     ` guix pull: error: symlink: File exists Thorsten Wilms
2018-10-30 22:43                       ` Laura Lazzati
2018-10-31 10:06                         ` Laura Lazzati
2018-10-31 10:27                           ` Gábor Boskovits
2018-10-31 10:31                             ` Laura Lazzati
2018-10-31 11:07                               ` Gábor Boskovits
2018-10-31 11:15                                 ` Laura Lazzati
2018-10-31 11:52                                   ` Gábor Boskovits
2018-10-31 12:29                                     ` Catonano
2018-10-31 16:02                                     ` Laura Lazzati
2018-10-31 16:25                                       ` Gábor Boskovits
2018-10-31 18:09                                         ` Laura Lazzati
2018-10-31 19:03                                           ` Gábor Boskovits
2018-11-01  2:09                                             ` Laura Lazzati
2018-11-01  8:49                                               ` Gábor Boskovits
2018-11-01 11:37                                                 ` Laura Lazzati
2018-11-01 11:48                                                   ` Gábor Boskovits
2018-11-01 17:51                                                     ` Laura Lazzati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMqSRmAQE08uHtAhm=p62YmBBtEGj6KJSvxRx+ou+4szw5jZhQ@mail.gmail.com' \
    --to=jimmy.thrasibule@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jimmy@thrasibule.mx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.