GNU bug report logs - #57585
guix gc removed home config

Previous Next

Package: guix;

Reported by: Julien Lepiller <julien <at> lepiller.eu>

Date: Sun, 4 Sep 2022 18:35:02 UTC

Severity: normal

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57585 in the body.
You can then email your comments to 57585 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57585; Package guix. (Sun, 04 Sep 2022 18:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julien Lepiller <julien <at> lepiller.eu>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 04 Sep 2022 18:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: bug-guix <at> gnu.org
Subject: guix gc removed home config
Date: Sun, 4 Sep 2022 20:32:58 +0200
Hi Guix!

Today I ran "guix home delete-generations" to remove my old home
generations. It removed generations 0 and 17. I'm on generation 18.

Then I ran "guix gc" and after I noticed I couldn't run a program from
my window manager (its menu is managed from guix home), I tried to look
at what was happening. My config files managed by guix home are now
symlinks that point to non existent store items. Spooky.

Please let me know how I can help diagnose the issue




Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Sun, 04 Sep 2022 19:19:01 GMT) Full text and rfc822 format available.

Notification sent to Julien Lepiller <julien <at> lepiller.eu>:
bug acknowledged by developer. (Sun, 04 Sep 2022 19:19:01 GMT) Full text and rfc822 format available.

Message #10 received at 57585-close <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: 57585-close <at> debbugs.gnu.org
Subject: Re: bug#57585: guix gc removed home config
Date: Sun, 4 Sep 2022 21:17:58 +0200
Actually I figured this out:

Generation 16 used an older guix version where guix home added a . at
the end of file names, so my config looked like this:

(simple-service 'xfce4-terminal home-files-service-type               
  `(("config/xfce4/terminal/terminalrc"
    ,(local-file
      "files/xfce4-terminal/terminalrc"))))

Then, I updated Guix without changing my home configuration, so on
generation 17, guix home created $HOME/config instead of $HOME/.config.
So $HOME/.config/xfce4/terminal/terminalrc (and all other config files)
kept pointing to generation 16's files. After removing the generation
and "guix gc", these files no longer exist, and I'm in trouble :)

So, guix home and guix gc are working as intended, but the change to no
longer adding a "." at the beginning of file names (which makes total
sense) tripped me up.

Le Sun, 4 Sep 2022 20:32:58 +0200,
Julien Lepiller <julien <at> lepiller.eu> a écrit :

> Hi Guix!
> 
> Today I ran "guix home delete-generations" to remove my old home
> generations. It removed generations 0 and 17. I'm on generation 18.
> 
> Then I ran "guix gc" and after I noticed I couldn't run a program from
> my window manager (its menu is managed from guix home), I tried to
> look at what was happening. My config files managed by guix home are
> now symlinks that point to non existent store items. Spooky.
> 
> Please let me know how I can help diagnose the issue
> 
> 
> 





Information forwarded to bug-guix <at> gnu.org:
bug#57585; Package guix. (Mon, 05 Sep 2022 06:03:02 GMT) Full text and rfc822 format available.

Message #13 received at 57585-close <at> debbugs.gnu.org (full text, mbox):

From: Andrew Tropin <andrew <at> trop.in>
To: Julien Lepiller <julien <at> lepiller.eu>, 57585-close <at> debbugs.gnu.org
Subject: Re: bug#57585: guix gc removed home config
Date: Mon, 05 Sep 2022 09:01:58 +0300
[Message part 1 (text/plain, inline)]
On 2022-09-04 21:17, Julien Lepiller wrote:

> Actually I figured this out:
>
> Generation 16 used an older guix version where guix home added a . at
> the end of file names, so my config looked like this:
>
> (simple-service 'xfce4-terminal home-files-service-type               
>   `(("config/xfce4/terminal/terminalrc"
>     ,(local-file
>       "files/xfce4-terminal/terminalrc"))))
>
> Then, I updated Guix without changing my home configuration, so on
> generation 17, guix home created $HOME/config instead of $HOME/.config.
> So $HOME/.config/xfce4/terminal/terminalrc (and all other config files)
> kept pointing to generation 16's files. After removing the generation
> and "guix gc", these files no longer exist, and I'm in trouble :)

BTW, there is xdg-configuration-files-service-type, which hides away
those details and helps to migrate seamlessly.  May be helpful for
future readers:
https://guix.gnu.org/en/manual/devel/en/guix.html#index-home_002dxdg_002dconfiguration_002dfiles_002dservice_002dtype

>
> So, guix home and guix gc are working as intended, but the change to
> no longer adding a "." at the beginning of file names (which makes
> total sense) tripped me up.
>
> Le Sun, 4 Sep 2022 20:32:58 +0200,
> Julien Lepiller <julien <at> lepiller.eu> a écrit :
>
>> Hi Guix!
>> 
>> Today I ran "guix home delete-generations" to remove my old home
>> generations. It removed generations 0 and 17. I'm on generation 18.
>> 
>> Then I ran "guix gc" and after I noticed I couldn't run a program from
>> my window manager (its menu is managed from guix home), I tried to
>> look at what was happening. My config files managed by guix home are
>> now symlinks that point to non existent store items. Spooky.
>> 
>> Please let me know how I can help diagnose the issue
>> 
>> 
>> 
>
>
>
>

-- 
Best regards,
Andrew Tropin
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 03 Oct 2022 11:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 204 days ago.

Previous Next


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