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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#57585: closed (guix gc removed home config)
Date: Sun, 04 Sep 2022 19:19:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 4 Sep 2022 21:17:58 +0200
with message-id <20220904211758.313e13c0 <at> sybil.lepiller.eu>
and subject line Re: bug#57585: guix gc removed home config
has caused the debbugs.gnu.org bug report #57585,
regarding guix gc removed home config
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
57585: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57585
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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
> 
> 
> 



This bug report was last modified 2 years and 264 days ago.

Previous Next


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