* bug#59598: "Unsupported manifest format" error
@ 2022-11-25 22:06 Tyler Wolf via Bug reports for GNU Guix
2022-11-27 12:22 ` zimoun
0 siblings, 1 reply; 4+ messages in thread
From: Tyler Wolf via Bug reports for GNU Guix @ 2022-11-25 22:06 UTC (permalink / raw)
To: 59598
[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]
Hello,
Yesterday my PC lost power and when I turned it back on I started getting the error "guix package: unsupported manifest format".
I have tried using "guix time-machine" to revert to a working commit and try again but this does not work.
I then can see that my ~/.guix-profile/manifest is empty, thus I think it is safe to say that this is where the issue is originating, however I am unable to rewrite this file, so I was wondering if there was any fix to this?
I also used the command "guix refresh" and saw that many packages needed to be refreshed, however I cannot finish this command as I get the following error:
Backtrace:
13 (primitive-load "/home/tyler/.config/guix/current/bin/g…")
In guix/ui.scm:
2275:7 12 (run-guix . _)
2238:10 11 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
1752:10 9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
661:37 8 (thunk)
2170:25 7 (run-with-store #<store-connection 256.99 7f411174b7d0> …)
In guix/scripts/refresh.scm:
567:14 6 (_ _)
In srfi/srfi-1.scm:
634:9 5 (for-each #<procedure 7f411d493340 at guix/scripts/ref…> …)
In guix/scripts/refresh.scm:
367:10 4 (check-for-package-update #<package xkbset@0.6 gnu/pac…> …)
In srfi/srfi-1.scm:
858:15 3 (any1 #<procedure 7f41202d2da0 at guix/upstream.scm:28…> …)
In guix/gnu-maintenance.scm:
842:10 2 (_ _ . _)
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)
Any help would be greatly appreciated.
Thanks,Tyler Wolf
[-- Attachment #2: Type: text/html, Size: 2968 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59598: "Unsupported manifest format" error
2022-11-25 22:06 bug#59598: "Unsupported manifest format" error Tyler Wolf via Bug reports for GNU Guix
@ 2022-11-27 12:22 ` zimoun
2022-11-27 23:34 ` bokr
0 siblings, 1 reply; 4+ messages in thread
From: zimoun @ 2022-11-27 12:22 UTC (permalink / raw)
To: Tyler Wolf, 59598
Hi,
On Fri, 25 Nov 2022 at 22:06, Tyler Wolf via Bug reports for GNU Guix <bug-guix@gnu.org> wrote:
> I then can see that my ~/.guix-profile/manifest is empty, thus I think
> it is safe to say that this is where the issue is originating, however
> I am unable to rewrite this file, so I was wondering if there was any
> fix to this?
This file lives in the store. Hum, I am surprised that a power shutdown
removed this file.
Well, I do not know if you can recover this empty file. At least, you
can the previous generation; e.g., guix package --roll-back.
Or you can extract a previous manifest with,
guix package -p /var/guix/profiles/per-user/<USER>/guix-profile-<NUMBER>-link \
--export-manifest > /tmp/manifest-<NUMBER>.scm
where <USER> and <NUMBER> depends on. Then,
guix package -m /tmp/manifest-<NUMBER>scm
will reinstall the same list of packages but at their current version
(the ones of current Guix revision; guix describe).
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59598: "Unsupported manifest format" error
2022-11-27 12:22 ` zimoun
@ 2022-11-27 23:34 ` bokr
2022-11-28 9:41 ` zimoun
0 siblings, 1 reply; 4+ messages in thread
From: bokr @ 2022-11-27 23:34 UTC (permalink / raw)
To: zimoun; +Cc: 59598, Tyler Wolf
Hi zimoun,
On +2022-11-27 13:22:22 +0100, zimoun wrote:
[...]
>
> This file lives in the store. Hum, I am surprised that a power shutdown
> removed this file.
>
Are all the conditions for a clean sync
of the file system where /gnu/store is mounted guaranteed?
What is the difference between power shutdown when you let
the battery run down and the OS shuts everything down
vs if you log out and click power down?
Is it not possible that when you have recharged the battery
and boot up that a journaling file system will discover traces
of an incomplete transaction (i.e. the one that was supposed
to record and atomically commit the missing file) and discards
it to reestabllish coherent file system state?
And what about continuations that were possibly waiting for
availability of that file?
Hopefully the OS will recover a good state, but what can
userland innocents expect to be guaranteed, in terms of
work flow they can understand?
(those with the grok-fu to understand internals won't need
much to imagine failure scenarios, but will presumably
appreciate /design/rationale/implementation/ documentation tips)
> Well, I do not know if you can recover this empty file. At least, you
> can the previous generation; e.g., guix package --roll-back.
>
Assuming the file system recovered -- a pretty good bet, but ... :)
> Or you can extract a previous manifest with,
>
> guix package -p /var/guix/profiles/per-user/<USER>/guix-profile-<NUMBER>-link \
> --export-manifest > /tmp/manifest-<NUMBER>.scm
>
> where <USER> and <NUMBER> depends on. Then,
>
> guix package -m /tmp/manifest-<NUMBER>scm
>
> will reinstall the same list of packages but at their current version
> (the ones of current Guix revision; guix describe).
>
>
> Cheers,
> simon
>
--
Regards,
Bengt Richter
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#59598: "Unsupported manifest format" error
2022-11-27 23:34 ` bokr
@ 2022-11-28 9:41 ` zimoun
0 siblings, 0 replies; 4+ messages in thread
From: zimoun @ 2022-11-28 9:41 UTC (permalink / raw)
To: bokr; +Cc: 59598, Tyler Wolf
Hi,
On Mon, 28 Nov 2022 at 00:34, bokr@bokr.com wrote:
> Are all the conditions for a clean sync
> of the file system where /gnu/store is mounted guaranteed?
More or less, yes. You can read some discussion in patch#58035 [1].
1: <https://yhetil.org/guix/0530a80e-0a93-5a3a-ef98-5ba3683e810d@telenet.be>
> Hopefully the OS will recover a good state, but what can
> userland innocents expect to be guaranteed, in terms of
> work flow they can understand?
Guix cannot be magical here. :-) From my understanding, what you are
asking depends on the properties of your filesystem.
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-28 9:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-25 22:06 bug#59598: "Unsupported manifest format" error Tyler Wolf via Bug reports for GNU Guix
2022-11-27 12:22 ` zimoun
2022-11-27 23:34 ` bokr
2022-11-28 9:41 ` zimoun
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).