unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64031: Guix system entirely broken by updating second runc or by accidental hard reset
@ 2023-06-13  2:25 Steven Roose
       [not found] ` <handler.64031.B.16866231352453.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Roose @ 2023-06-13  2:25 UTC (permalink / raw)
  To: 64031

[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]

I'm writing this from my phone after a 3 hour attempt to fix my Guix system without success, it seems totally FUBAR.

So here is what I did:

$ guix package -I runc

Shortly after, my battery ran out and my laptop did a hard reset (yes trying to configure hibernate on low battery has been on my todo list for a while). I think the above command already finished when it reset, but I'm not entirely sure. It's been some hours.

So the current situation is this:

* All GUI apps I tried give "command not found", hence no Firefox or Thunderbird.
* My ~/.guix-profile/manifest is empty. Meaning that all guix package commands done in this profile give "unsupported manifest format".
* Idk if this is normal, but listing profiles as my regular user lists two profiles: ~/.guix-profile and ~/.config/guix/current.

I tried various things:

* editing PATH to remove my user profile (thinking this might use another runc) 
* running guix package -r from a root bash using the --profile= flag for the broken profile: same manifest error. When doing this for the ~/.config/guix/current profile, it says no runc found.
* guix pull, reconfigure and reboot from root
* asking for help on IRC (weechat works yay) 

I'm kinda hopeless. I can't do anything productive.

If I should post this in a forum instead of here, feel free to forward me.

[-- Attachment #2: Type: text/html, Size: 1462 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64031: Acknowledgement (Guix system entirely broken by updating second runc or by accidental hard reset)
       [not found] ` <handler.64031.B.16866231352453.ack@debbugs.gnu.org>
@ 2023-06-13 17:02   ` Steven Roose
  2023-06-13 17:24     ` Steven Roose
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Roose @ 2023-06-13 17:02 UTC (permalink / raw)
  To: 64031

I figured if my current profile is broken, somehow I should fix it or 
roll it back. I also figure reinstalling my system won't work if I keep 
my home directory.

I also still don't understand why I have two different profiles and I 
don't know what is the different between profiles and whatever `guix 
home` does.

But I tried some things:


$ guix home roll-back
guix home: error: cannot switch to home environment generation '-1'


$ guix home list-generations
Backtrace:
            7 (primitive-load "/home/steven/.config/guix/current/bin/…")
In guix/ui.scm:
    2300:7  6 (run-guix . _)
   2263:10  5 (run-guix-command _ . _)
In ice-9/boot-9.scm:
   1752:10  4 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
     859:3  3 (_)
     839:4  2 (call-with-status-report _ _)
In unknown file:
            1 (raise #<&profile-not-found-error profile: "/var/guix/p…>)
In ice-9/boot-9.scm:
   1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong type (expecting exact integer): #<&profile-not-found-error 
profile: "/var/guix/profiles/per-user/steven/guix-home">


$ guix home describe
guix home: error: no home environment generation, nothing to describe


So I guess I'm not using `guix home`.


Just to help me move forward, is there a summary on what profiles 
actually are? Because they are separate from the guix system packages 
that it also seems separate from guix home.

On 6/13/23 03:26, GNU bug Tracking System 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@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 64031@debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64031: Acknowledgement (Guix system entirely broken by updating second runc or by accidental hard reset)
  2023-06-13 17:02   ` bug#64031: Acknowledgement (Guix system entirely broken by updating second runc or by accidental hard reset) Steven Roose
@ 2023-06-13 17:24     ` Steven Roose
  2023-06-15 15:55       ` bug#64031: Guix system entirely broken by updating second runc or by accidental hard reset Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Roose @ 2023-06-13 17:24 UTC (permalink / raw)
  To: 64031

Ok, I don't know how to close this issue, but I managed to fix it with 
guix package --roll-back. I took me so long to find that possibility 
because both `guix system` and `guix home` have a `roll-back` *command* 
while in packages it's a flag. I thought it was for individual packages 
maybe.

I don't know how to close issues here, but someone feel free to close this.

On 6/13/23 18:02, Steven Roose wrote:
> I figured if my current profile is broken, somehow I should fix it or 
> roll it back. I also figure reinstalling my system won't work if I 
> keep my home directory.
>
> I also still don't understand why I have two different profiles and I 
> don't know what is the different between profiles and whatever `guix 
> home` does.
>
> But I tried some things:
>
>
> $ guix home roll-back
> guix home: error: cannot switch to home environment generation '-1'
>
>
> $ guix home list-generations
> Backtrace:
>            7 (primitive-load "/home/steven/.config/guix/current/bin/…")
> In guix/ui.scm:
>    2300:7  6 (run-guix . _)
>   2263:10  5 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>   1752:10  4 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/status.scm:
>     859:3  3 (_)
>     839:4  2 (call-with-status-report _ _)
> In unknown file:
>            1 (raise #<&profile-not-found-error profile: "/var/guix/p…>)
> In ice-9/boot-9.scm:
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Wrong type (expecting exact integer): #<&profile-not-found-error 
> profile: "/var/guix/profiles/per-user/steven/guix-home">
>
>
> $ guix home describe
> guix home: error: no home environment generation, nothing to describe
>
>
> So I guess I'm not using `guix home`.
>
>
> Just to help me move forward, is there a summary on what profiles 
> actually are? Because they are separate from the guix system packages 
> that it also seems separate from guix home.
>
> On 6/13/23 03:26, GNU bug Tracking System 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@gnu.org
>>
>> If you wish to submit further information on this problem, please
>> send it to 64031@debbugs.gnu.org.
>>
>> Please do not send mail to help-debbugs@gnu.org unless you wish
>> to report a problem with the Bug-tracking system.
>>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#64031: Guix system entirely broken by updating second runc or by accidental hard reset
  2023-06-13 17:24     ` Steven Roose
@ 2023-06-15 15:55       ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2023-06-15 15:55 UTC (permalink / raw)
  To: Steven Roose; +Cc: 64031-done

Steven Roose <steven@roose.io> skribis:

> Ok, I don't know how to close this issue, but I managed to fix it with
> guix package --roll-back. I took me so long to find that possibility
> because both `guix system` and `guix home` have a `roll-back`
> *command* while in packages it's a flag. I thought it was for
> individual packages maybe.
>
> I don't know how to close issues here, but someone feel free to close this.

Hi!  Glad you found the explanation and solution.

I’m closing by emailing to 64031-done.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-15 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13  2:25 bug#64031: Guix system entirely broken by updating second runc or by accidental hard reset Steven Roose
     [not found] ` <handler.64031.B.16866231352453.ack@debbugs.gnu.org>
2023-06-13 17:02   ` bug#64031: Acknowledgement (Guix system entirely broken by updating second runc or by accidental hard reset) Steven Roose
2023-06-13 17:24     ` Steven Roose
2023-06-15 15:55       ` bug#64031: Guix system entirely broken by updating second runc or by accidental hard reset Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).