GNU bug report logs - #47644
guix on foreign distro won't upgrade, stuck on old commits

Previous Next

Package: guix;

Reported by: Brian Zwahr <echosa <at> echosa.net>

Date: Wed, 7 Apr 2021 20:21:02 UTC

Severity: normal

Done: Leo Famulari <leo <at> famulari.name>

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 47644 in the body.
You can then email your comments to 47644 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#47644; Package guix. (Wed, 07 Apr 2021 20:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brian Zwahr <echosa <at> echosa.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 07 Apr 2021 20:21:02 GMT) Full text and rfc822 format available.

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

From: Brian Zwahr <echosa <at> echosa.net>
To: bug-guix <at> gnu.org
Subject: guix on foreign distro won't upgrade, stuck on old commits
Date: Wed, 07 Apr 2021 15:19:54 -0500
[Message part 1 (text/plain, inline)]
Hi! It was suggested I email this in by someone in the IRC channel. I'm 
having an issue where guix always tells me it is "X days old" and that 
I should run guix pull/guix upgrade. However, running these commands 
does not fix the issue.

guix describe shows:

```
$ guix describe
Generation 9	Mar 25 2021 08:36:11	(current)
 guix 3f1b2bd
   repository URL: <https://git.savannah.gnu.org/git/guix.git>
   branch: master
   commit: 3f1b2bd322b6cdba99a43d08e5e8464f7424cbc5
```

Which is, indeed, out of date. IRC folks recommended checking the git 
status, so I did:

```
~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq 
(master) $ git status
On branch master
Your branch is behind 'origin/master' by 474 commits, and can be 
fast-forwarded.
 (use "git pull" to update your local branch)

nothing to commit, working tree clean
```

It is, indeed, out of date, but after a guix pull:

```
$ guix pull
Updating channel 'guix' from Git repository at 
'<https://git.savannah.gnu.org/git/guix.git>'...
Building from this channel:
 guix      <https://git.savannah.gnu.org/git/guix.git>	3f1b2bd
Computing Guix derivation for 'x86_64-linux'... |
nothing to be done
```

It doesn't update and still tells me I'm out of date:

```
$ guix upgrade
guix upgrade: warning: Your Guix installation is 13 days old.
guix upgrade: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
```

It was suggested that I should run this command:

```
guix pull --commit=02297d3fe680371a4b97b9c1b770932cbdd55615
```

and after doing so, I was then only 1 commit behind instead:

```
~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq 
(master) $ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be 
fast-forwarded.
 (use "git pull" to update your local branch)

nothing to commit, working tree clean
```

However, `guix pull` now gives me a new error about needing to 
downgrade:

```
$ guix pull
Updating channel 'guix' from Git repository at 
'<https://git.savannah.gnu.org/git/guix.git>'...
guix pull: error: aborting update of channel 'guix' to commit 
3f1b2bd322b6cdba99a43d08e5e8464f7424cbc5, which is not a descendant of 
02297d3fe680371a4b97b9c1b770932cbdd55615
hint: Use `--allow-downgrades' to force this downgrade.
```

and for some reason, I'm back to being almost 500 commits behind again:

```
~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq 
(master) $ git status
On branch master
Your branch is behind 'origin/master' by 477 commits, and can be 
fast-forwarded.
 (use "git pull" to update your local branch)

nothing to commit, working tree clean
```

even though `guix describe` now seems to be more up-to-date (apr 7 
instead or mar 25)

```
$ guix describe
Generation 10	Apr 07 2021 14:38:16	(current)
 guix 02297d3
   repository URL: <https://git.savannah.gnu.org/git/guix.git>
   commit: 02297d3fe680371a4b97b9c1b770932cbdd55615
```

As a final attempt to solve this, it was suggested that I run `guix 
pull -l 2>&1 | tee pull-generations.log` and email it to this list. I'm 
attaching that file here.

Also, after running that command, I'm back to being only 1 commit 
behind and still get the downgrade error from `guix pull`:

```
~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq 
(master) $ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be 
fast-forwarded.
 (use "git pull" to update your local branch)

nothing to commit, working tree clean
```

```
$ guix pull
Updating channel 'guix' from Git repository at 
'<https://git.savannah.gnu.org/git/guix.git>'...
guix pull: error: aborting update of channel 'guix' to commit 
3f1b2bd322b6cdba99a43d08e5e8464f7424cbc5, which is not a descendant of 
02297d3fe680371a4b97b9c1b770932cbdd55615
hint: Use `--allow-downgrades' to force this downgrade.
```

For now, I'm trying to avoid doing anything else guix-related, so that 
my system is in the same state and can hopefully be diagnosed and fixed.


[Message part 2 (text/html, inline)]
[pull-generations.log (text/x-log, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#47644; Package guix. (Fri, 09 Apr 2021 01:44:02 GMT) Full text and rfc822 format available.

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

From: Brian Zwahr <echosa <at> echosa.net>
To: 47644 <at> debbugs.gnu.org
Subject: Re: bug#47644: Acknowledgement (guix on foreign distro won't upgrade, 
 stuck on old commits)
Date: Thu, 08 Apr 2021 20:43:07 -0500
[Message part 1 (text/plain, inline)]
Well, I figured out my issue. I had created backup files manifest.scm 
and channels.scm and put them in the ~/.config/guix directory for 
storage. Turns out that these files, or at least the channels one, get 
read and used automatically by `guix pull`.  I have moved those files 
to a different directory for storage and backup, and now everything 
seems fine.

Turns out the commit that `guix pull` was stuck on was the one defined 
in my channels.scm file.

If anyone else experiences the same issue, perhaps this will help.

On Wed, Apr 7 2021 at 08:21:02 PM +0000, GNU bug Tracking System 
<help-debbugs <at> gnu.org> wrote:
> Thank you for filing a new bug report with debbugs.gnu.org.
> 
> This is an automatically generated reply to let you know your message
> has been received.
> 
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
> 
> Your message has been sent to the package maintainer(s):
>  bug-guix <at> gnu.org <mailto:bug-guix <at> gnu.org>
> 
> If you wish to submit further information on this problem, please
> send it to 47644 <at> debbugs.gnu.org <mailto:47644 <at> debbugs.gnu.org>.
> 
> Please do not send mail to help-debbugs <at> gnu.org 
> <mailto:help-debbugs <at> gnu.org> unless you wish
> to report a problem with the Bug-tracking system.
> 
> --
> 47644: <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47644>
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org <mailto:help-debbugs <at> gnu.org> with 
> problems

[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 47644 <at> debbugs.gnu.org and Brian Zwahr <echosa <at> echosa.net> Request was from Leo Famulari <leo <at> famulari.name> to control <at> debbugs.gnu.org. (Fri, 09 Apr 2021 19:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 May 2021 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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