* Recovering from broken Guix due to GC'd derivations
@ 2018-06-10 2:01 Mike Gerwitz
2018-06-10 10:52 ` Jone
2018-06-10 16:45 ` Ludovic Courtès
0 siblings, 2 replies; 6+ messages in thread
From: Mike Gerwitz @ 2018-06-10 2:01 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
Hello, everyone:
I'm running into a bit of trouble and I'd like to know the best/proper
way to recover:
Any pull or package install operations that I attempt give me an error
like this (the exact derivation varies between my user and root, but
they're both Perl):
guix pull: error: open-file: No such file or directory:
"/gnu/store/fq9583a3w3is0r1yrjxg1znfz2qkvg78-perl-5.26.2.tar.xz.drv"
Or, if I try to pull using a local git repo:
guix pull: error: build failed: opening file
`/gnu/store/4417linxb223padiqavsf6xah7nvjwrh-perl-5.26.1.drv': No such
file or directory
I had an old ~/.guix/config/latest symlink that I tried restoring (I
don't have ~/.guix/config/current yet), but no luck.
This seems to have happened after running a `guix gc`, after having
aborted a `guix pull`. I forget the reason that I aborted---it's been
about a week since, but it was a kernel-related issue requiring a hard
reset. perl-5.26.2.tar.xz, or a similar version, was one of the
packages downloaded during that pull.
I'm not familiar enough with guix to know how to recover from this. Any
suggestions?
Thanks.
--
Mike Gerwitz
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Recovering from broken Guix due to GC'd derivations
2018-06-10 2:01 Recovering from broken Guix due to GC'd derivations Mike Gerwitz
@ 2018-06-10 10:52 ` Jone
2018-06-10 16:45 ` Ludovic Courtès
1 sibling, 0 replies; 6+ messages in thread
From: Jone @ 2018-06-10 10:52 UTC (permalink / raw)
To: Mike Gerwitz; +Cc: help-guix
Maybe this helps (see manual):
"guix package:
...
--roll-back
Roll back to the previous generation of the profile—i.e., undo the
last transaction."
or again 'guix gc'.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Recovering from broken Guix due to GC'd derivations
2018-06-10 2:01 Recovering from broken Guix due to GC'd derivations Mike Gerwitz
2018-06-10 10:52 ` Jone
@ 2018-06-10 16:45 ` Ludovic Courtès
2018-06-10 21:56 ` Mike Gerwitz
1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2018-06-10 16:45 UTC (permalink / raw)
To: Mike Gerwitz; +Cc: help-guix
Hello Mike,
Mike Gerwitz <mtg@gnu.org> skribis:
> Any pull or package install operations that I attempt give me an error
> like this (the exact derivation varies between my user and root, but
> they're both Perl):
>
> guix pull: error: open-file: No such file or directory:
> "/gnu/store/fq9583a3w3is0r1yrjxg1znfz2qkvg78-perl-5.26.2.tar.xz.drv"
This cannot happen under normal circumstances, as we say. Could it be
that you run a Guix configured with a different ‘localstatedir’ than the
original one that populated /gnu/store?
Remember that the store consists of two elements: /gnu/store, and
$localstatedir/guix/db/db.sqlite (usually /var/guix/db/db.sqlite). If
you somehow end up using a different database, it may be incorrect
compared to what’s actually available in /gnu/store (info "(guix) The
Store").
For that reason, ‘configure’ tries hard to prevent you from configuring
Guix with a ‘localstatedir’ different from the one of the
already-installed Guix (see ‘GUIX_CHECK_LOCALSTATEDIR’ in m4/guix.m4.)
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Recovering from broken Guix due to GC'd derivations
2018-06-10 16:45 ` Ludovic Courtès
@ 2018-06-10 21:56 ` Mike Gerwitz
2018-06-11 11:08 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Mike Gerwitz @ 2018-06-10 21:56 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]
Hey, Ludo:
On Sun, Jun 10, 2018 at 18:45:19 +0200, Ludovic Courtès wrote:
> Hello Mike,
>
> Mike Gerwitz <mtg@gnu.org> skribis:
>
>> Any pull or package install operations that I attempt give me an error
>> like this (the exact derivation varies between my user and root, but
>> they're both Perl):
>>
>> guix pull: error: open-file: No such file or directory:
>> "/gnu/store/fq9583a3w3is0r1yrjxg1znfz2qkvg78-perl-5.26.2.tar.xz.drv"
>
> This cannot happen under normal circumstances, as we say. Could it be
> that you run a Guix configured with a different ‘localstatedir’ than the
> original one that populated /gnu/store?
I've never done anything other than a normal `guix pull`. When I was
working on the `guix environment` changes for containers months ago, I
was using `pre-inst-env', but nothing other than that. I didn't provide
any options to `configure' or anything change any other env vars.
Since before March, I've just been using a vanilla guix (rather than my
local git checkout).
--
Mike Gerwitz
Free Software Hacker+Activist | GNU Maintainer & Volunteer
GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05
https://mikegerwitz.com
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Recovering from broken Guix due to GC'd derivations
2018-06-10 21:56 ` Mike Gerwitz
@ 2018-06-11 11:08 ` Ludovic Courtès
2018-06-12 2:31 ` Mike Gerwitz
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2018-06-11 11:08 UTC (permalink / raw)
To: Mike Gerwitz; +Cc: help-guix
Hi Mike,
Mike Gerwitz <mtg@gnu.org> skribis:
> On Sun, Jun 10, 2018 at 18:45:19 +0200, Ludovic Courtès wrote:
>> Hello Mike,
>>
>> Mike Gerwitz <mtg@gnu.org> skribis:
>>
>>> Any pull or package install operations that I attempt give me an error
>>> like this (the exact derivation varies between my user and root, but
>>> they're both Perl):
>>>
>>> guix pull: error: open-file: No such file or directory:
>>> "/gnu/store/fq9583a3w3is0r1yrjxg1znfz2qkvg78-perl-5.26.2.tar.xz.drv"
>>
>> This cannot happen under normal circumstances, as we say. Could it be
>> that you run a Guix configured with a different ‘localstatedir’ than the
>> original one that populated /gnu/store?
>
> I've never done anything other than a normal `guix pull`. When I was
> working on the `guix environment` changes for containers months ago, I
> was using `pre-inst-env', but nothing other than that. I didn't provide
> any options to `configure' or anything change any other env vars.
>
> Since before March, I've just been using a vanilla guix (rather than my
> local git checkout).
Hmm weird. Did you try running ‘guix gc --verify’? I don’t see how one
could end up in such a state, unless there’s some hard disk corruption
or something.
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-12 2:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-10 2:01 Recovering from broken Guix due to GC'd derivations Mike Gerwitz
2018-06-10 10:52 ` Jone
2018-06-10 16:45 ` Ludovic Courtès
2018-06-10 21:56 ` Mike Gerwitz
2018-06-11 11:08 ` Ludovic Courtès
2018-06-12 2:31 ` Mike Gerwitz
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.