* downgrade issue on guix system
@ 2021-11-25 11:38 Alexander Asteroth
2021-11-25 11:53 ` Julien Lepiller
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Asteroth @ 2021-11-25 11:38 UTC (permalink / raw)
To: help-guix
Dear all,
I just wanted to install cups service on my guix system. I recofigured
the system without an error one hour ago (introduced seperate home
filesystem) and now, when I try to add the cups service (I did a guix
pull in between as well) I get:
> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
> hint: Use `--allow-downgrades' to force this downgrade.
I have no clue what caused that error therefor I also don't know if it's
a good idea to allow downgrades. ... or what es to do to resolve the
issue.
Cheers,
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: downgrade issue on guix system
2021-11-25 11:38 downgrade issue on guix system Alexander Asteroth
@ 2021-11-25 11:53 ` Julien Lepiller
2021-11-25 12:06 ` Alexander Asteroth
0 siblings, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2021-11-25 11:53 UTC (permalink / raw)
To: help-guix, Alexander Asteroth
Hi Alexander,
Since you did a guix pull, you should have a newer version of guix than you had before, unless you played with branches. So the downgrade is worrying and you were right to stop there.
Note that running guix pull will update guix in a separate profile. Make sure it's loaded: that you have ~/.config/guix/current/bin in your path and that "type guix" is this path. If not, fix your $PATH and run "hash guix" (no output) and check again.
Note that, if you're running reconfigure as root (instead as with sudo) you'll need to pull and do the above as root, since each user has a different guix current profile.
HTH!
Le 25 novembre 2021 06:38:29 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>Dear all,
>
>I just wanted to install cups service on my guix system. I recofigured
>the system without an error one hour ago (introduced seperate home
>filesystem) and now, when I try to add the cups service (I did a guix
>pull in between as well) I get:
>
>> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
>> hint: Use `--allow-downgrades' to force this downgrade.
>
>I have no clue what caused that error therefor I also don't know if it's
>a good idea to allow downgrades. ... or what es to do to resolve the
>issue.
>
>Cheers,
>
>Alex
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: downgrade issue on guix system
2021-11-25 11:53 ` Julien Lepiller
@ 2021-11-25 12:06 ` Alexander Asteroth
2021-11-25 12:17 ` Alexander Asteroth
2021-11-25 12:23 ` Julien Lepiller
0 siblings, 2 replies; 6+ messages in thread
From: Alexander Asteroth @ 2021-11-25 12:06 UTC (permalink / raw)
To: Julien Lepiller; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 2119 bytes --]
No I did not play around with branches. What I did was
- changed my config
- reconfigured
- rebooted
- failed
- booted second last config
- fixed config
- reconfigured
- rebooted
- OK
- pulled
- added cups
- reconfigured
---->>> ERROR
I just tried again. Did a
GUIX_PROFILE="~/.guix-profile" && . "$GUIX_PROFILE/etc/profile"
hash guix
guix system reconfigure .../config.scm
Same error.
Is there a way to find out what goes wrong? And why I have something
installed that is newer than what I get over the guix channel?
-- Alex
On Thu, Nov 25 2021, 06:53:59, Julien Lepiller <julien@lepiller.eu> wrote:
> Hi Alexander,
>
> Since you did a guix pull, you should have a newer version of guix than you had before, unless you played with branches. So the downgrade is worrying and you were right to stop there.
>
> Note that running guix pull will update guix in a separate profile. Make sure it's loaded: that you have ~/.config/guix/current/bin in your path and that "type guix" is this path. If not, fix
> your $PATH and run "hash guix" (no output) and check again.
>
> Note that, if you're running reconfigure as root (instead as with sudo) you'll need to pull and do the above as root, since each user has a different guix current profile.
>
> HTH!
>
> Le 25 novembre 2021 06:38:29 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>
> Dear all,
>
> I just wanted to install cups service on my guix system. I recofigured
> the system without an error one hour ago (introduced seperate home
> filesystem) and now, when I try to add the cups service (I did a guix
> pull in between as well) I get:
>
> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of
> 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
> hint: Use `--allow-downgrades' to force this downgrade.
>
> I have no clue what caused that error therefor I also don't know if it's
> a good idea to allow downgrades. ... or what es to do to resolve the
> issue.
>
> Cheers,
>
> Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: downgrade issue on guix system
2021-11-25 12:06 ` Alexander Asteroth
@ 2021-11-25 12:17 ` Alexander Asteroth
2021-11-25 12:23 ` Julien Lepiller
1 sibling, 0 replies; 6+ messages in thread
From: Alexander Asteroth @ 2021-11-25 12:17 UTC (permalink / raw)
To: Julien Lepiller; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 2935 bytes --]
Found the cause.
To reconfigure I "sudo -s" first. But if I run
> GUIX_PROFILE="~/.guix-profile" && . "$GUIX_PROFILE/etc/profile"
guix profile is sourced but PATH is still the original users path und
guix is found there (causing the error).
If I do
> GUIX_PROFILE="/root/.guix-profile" && echo "$GUIX_PROFILE/etc/profile"
the result is as expected:
> /root/.guix-profile/etc/profile
but PATH is not updated afterwards (=> error).
If do do a regular login as root then everything is fine!
Cheers,
Alex
On Thu, Nov 25 2021, 13:06:19, Alexander Asteroth <alexander.asteroth@h-brs.de> wrote:
> [[PGP Signed Part:Undecided]]
> No I did not play around with branches. What I did was
> - changed my config
> - reconfigured
> - rebooted
> - failed
> - booted second last config
> - fixed config
> - reconfigured
> - rebooted
> - OK
> - pulled
> - added cups
> - reconfigured
> ---->>> ERROR
>
> I just tried again. Did a
>
> GUIX_PROFILE="~/.guix-profile" && . "$GUIX_PROFILE/etc/profile"
> hash guix
> guix system reconfigure .../config.scm
>
> Same error.
>
> Is there a way to find out what goes wrong? And why I have something
> installed that is newer than what I get over the guix channel?
>
> -- Alex
>
> On Thu, Nov 25 2021, 06:53:59, Julien Lepiller <julien@lepiller.eu> wrote:
>
>> Hi Alexander,
>>
>> Since you did a guix pull, you should have a newer version of guix
>> than you had before, unless you played with branches. So the
>> downgrade is worrying and you were right to stop there.
>>
>> Note that running guix pull will update guix in a separate
>> profile. Make sure it's loaded: that you have
>> ~/.config/guix/current/bin in your path and that "type guix" is this
>> path. If not, fix
>> your $PATH and run "hash guix" (no output) and check again.
>>
>> Note that, if you're running reconfigure as root (instead as with
>> sudo) you'll need to pull and do the above as root, since each user
>> has a different guix current profile.
>>
>> HTH!
>>
>> Le 25 novembre 2021 06:38:29 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>>
>> Dear all,
>>
>> I just wanted to install cups service on my guix system. I recofigured
>> the system without an error one hour ago (introduced seperate home
>> filesystem) and now, when I try to add the cups service (I did a guix
>> pull in between as well) I get:
>>
>> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of
>> 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
>> hint: Use `--allow-downgrades' to force this downgrade.
>>
>> I have no clue what caused that error therefor I also don't know if it's
>> a good idea to allow downgrades. ... or what es to do to resolve the
>> issue.
>>
>> Cheers,
>>
>> Alex
>
> [[End of PGP Signed Part]]
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: downgrade issue on guix system
2021-11-25 12:06 ` Alexander Asteroth
2021-11-25 12:17 ` Alexander Asteroth
@ 2021-11-25 12:23 ` Julien Lepiller
2021-11-27 10:36 ` Alexander Asteroth
1 sibling, 1 reply; 6+ messages in thread
From: Julien Lepiller @ 2021-11-25 12:23 UTC (permalink / raw)
To: Alexander Asteroth; +Cc: help-guix
Le 25 novembre 2021 07:06:19 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>No I did not play around with branches. What I did was
>- changed my config
>- reconfigured
>- rebooted
>- failed
>- booted second last config
>- fixed config
>- reconfigured
>- rebooted
>- OK
>- pulled
>- added cups
>- reconfigured
>---->>> ERROR
>
>I just tried again. Did a
>
>GUIX_PROFILE="~/.guix-profile" && . "$GUIX_PROFILE/etc/profile"
>hash guix
>guix system reconfigure .../config.scm
This is not enough: you need to also load the "current" profile. Check the output of "type guix" too.
>
>Same error.
>
>Is there a way to find out what goes wrong? And why I have something
>installed that is newer than what I get over the guix channel?
I think this is because you're not actually running guix from the latest you pulled. Make sure it's running from ~/.config/guix/current, not ~/.guix-profile nor /var/guix.
This should already be taken care of by default, but if this is your first guix pull you might need a reboot (or at least log out, and in again).
>
>-- Alex
>
>On Thu, Nov 25 2021, 06:53:59, Julien Lepiller <julien@lepiller.eu> wrote:
>
>> Hi Alexander,
>>
>> Since you did a guix pull, you should have a newer version of guix than you had before, unless you played with branches. So the downgrade is worrying and you were right to stop there.
>>
>> Note that running guix pull will update guix in a separate profile. Make sure it's loaded: that you have ~/.config/guix/current/bin in your path and that "type guix" is this path. If not, fix
>> your $PATH and run "hash guix" (no output) and check again.
>>
>> Note that, if you're running reconfigure as root (instead as with sudo) you'll need to pull and do the above as root, since each user has a different guix current profile.
>>
>> HTH!
>>
>> Le 25 novembre 2021 06:38:29 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>>
>> Dear all,
>>
>> I just wanted to install cups service on my guix system. I recofigured
>> the system without an error one hour ago (introduced seperate home
>> filesystem) and now, when I try to add the cups service (I did a guix
>> pull in between as well) I get:
>>
>> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of
>> 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
>> hint: Use `--allow-downgrades' to force this downgrade.
>>
>> I have no clue what caused that error therefor I also don't know if it's
>> a good idea to allow downgrades. ... or what es to do to resolve the
>> issue.
>>
>> Cheers,
>>
>> Alex
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: downgrade issue on guix system
2021-11-25 12:23 ` Julien Lepiller
@ 2021-11-27 10:36 ` Alexander Asteroth
0 siblings, 0 replies; 6+ messages in thread
From: Alexander Asteroth @ 2021-11-27 10:36 UTC (permalink / raw)
To: Julien Lepiller; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 3387 bytes --]
Dear all,
just to close this thread...
The fault was to "sudo -s" to reconfigure the system which did not
comletely set all neccessary variables (guix was pulled into roots
profile but run from users profile).
Either *really* logging in as root or probably much better (which I do
now) just "sudo guix system reconfigure ..." resolves the issue (because
the path to guix refers to the correct location in either cases).
Thank's Julien for pointing me into the right direction.
Cheers,
Alex
On Thu, Nov 25 2021, 07:23:03, Julien Lepiller <julien@lepiller.eu> wrote:
> Le 25 novembre 2021 07:06:19 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>>No I did not play around with branches. What I did was
>>- changed my config
>>- reconfigured
>>- rebooted
>>- failed
>>- booted second last config
>>- fixed config
>>- reconfigured
>>- rebooted
>>- OK
>>- pulled
>>- added cups
>>- reconfigured
>>---->>> ERROR
>>
>>I just tried again. Did a
>>
>>GUIX_PROFILE="~/.guix-profile" && . "$GUIX_PROFILE/etc/profile"
>>hash guix
>>guix system reconfigure .../config.scm
>
> This is not enough: you need to also load the "current" profile. Check the output of "type guix" too.
>
>>
>>Same error.
>>
>>Is there a way to find out what goes wrong? And why I have something
>>installed that is newer than what I get over the guix channel?
>
> I think this is because you're not actually running guix from the latest you pulled. Make sure it's running from ~/.config/guix/current, not ~/.guix-profile nor /var/guix.
>
> This should already be taken care of by default, but if this is your first guix pull you might need a reboot (or at least log out, and in again).
>
>>
>>-- Alex
>>
>>On Thu, Nov 25 2021, 06:53:59, Julien Lepiller <julien@lepiller.eu> wrote:
>>
>>> Hi Alexander,
>>>
>>> Since you did a guix pull, you should have a newer version of guix than you had before, unless you played with branches. So the downgrade is worrying and you were right to stop there.
>>>
>>> Note that running guix pull will update guix in a separate profile. Make sure it's loaded: that you have ~/.config/guix/current/bin in your path and that "type guix" is this path. If not, fix
>>> your $PATH and run "hash guix" (no output) and check again.
>>>
>>> Note that, if you're running reconfigure as root (instead as with sudo) you'll need to pull and do the above as root, since each user has a different guix current profile.
>>>
>>> HTH!
>>>
>>> Le 25 novembre 2021 06:38:29 GMT-05:00, Alexander Asteroth <alexander.asteroth@h-brs.de> a écrit :
>>>
>>> Dear all,
>>>
>>> I just wanted to install cups service on my guix system. I recofigured
>>> the system without an error one hour ago (introduced seperate home
>>> filesystem) and now, when I try to add the cups service (I did a guix
>>> pull in between as well) I get:
>>>
>>> guix system: error: aborting reconfiguration because commit bd2aa8031babdca5f574fca52e025d6794f08d82 of channel 'guix' is not a descendant of
>>> 7f974548ac20cab88b9bb589a5e1d85ee3b8d337
>>> hint: Use `--allow-downgrades' to force this downgrade.
>>>
>>> I have no clue what caused that error therefor I also don't know if it's
>>> a good idea to allow downgrades. ... or what es to do to resolve the
>>> issue.
>>>
>>> Cheers,
>>>
>>> Alex
>>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-11-27 10:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 11:38 downgrade issue on guix system Alexander Asteroth
2021-11-25 11:53 ` Julien Lepiller
2021-11-25 12:06 ` Alexander Asteroth
2021-11-25 12:17 ` Alexander Asteroth
2021-11-25 12:23 ` Julien Lepiller
2021-11-27 10:36 ` Alexander Asteroth
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.