Corrupted store on top on Debian, you want the output

  • Open
  • quality assurance status badge
Details
3 participants
  • jbranso
  • Maze
  • zimoun
Owner
unassigned
Submitted by
Maze
Severity
normal
M
(address . bug-guix@gnu.org)
m3wna7lg9x.fsf@pkbd.org
I corrupted my store and it says you want the guix pull output, so
please find it at the end of this message. Mostly I send it because guix
asks, but (see below) at least 2 things broke on that machine, not sure
it's related. I have to explain a little but I don't actually require or
expect that a lot of indivudually-tailored help can be given by GNU in
this case... It's a non-standard use case on more than one account.

I have been doing more than a few unsupported things with this installation.
Over the week-end and Monday, 3 things stand out:

* I have been starting to use guix home on this guix which is not a guix
system but which is on top of Debian. I have some user shepherd
services. They still work as I'm writing this. I think this is
unsupported though.

* I tried to install a guix system to a thumb drive. It is inconvenient
to use the ISO so I decided to do it from Guix on top of Debian. When I
do this I can't start the cow-store service because it's only available
from the ISO installer. Instead I can use the
procedure mount-cow-store from guile REPL as root, and it goes
through. I have done this in the past probably succesfully in virtual
machines running guix system, although I could not say for sure if the
store of the installing virtual machine survived it. This time however,
it failed silently to install GRUB stage 1 correctly on the thumb
drive. Then, I realized my store was broken on the installing machine
on the next morning.

* Guix was not in my paths because the latest guix profiles were not in
the store anymore. As a last ditch effort I used rm to remove some
links to non-existing store locations and ln to restore a chain of
symbolic links to some recent Guix that were still in the
store. I did this under /var/guix only. Because rm does what rm does,
I can suppose I did not remove store files on top of what was
already missing. guix-daemon did start, but then guix pull failed with
the backtrace below

The second point is kind of messy because I know for a fact that the
grub-install from Debian was broken either by GRUB upstream, by Debian
or by me, but not by guix. This in turn may or may not be weirdly
related to how I may have corrupted the guix store of that machine when
installing to the thumb drive...

I also have a private channel but I don't think it's the cause. I have
changed some path information, the private channel is accessed from a
local machine filesystem path.

Updating channel 'priv' from Git repository at '/home/aaa/bbb/ccc/ddd'...
Authenticating channel 'priv', commits 8ded6c0 to 3e62002 (1 new commits)...
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Authenticating channel 'guix', commits 9edb3f6 to 05c5807 (84 new commits)...
Building from these channels:
priv /home/maze/src/chan/priv 3e62002
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
compute-guix-derivation 1011B 94KiB/s 00:00 [##################] 100.0%
Computing Guix derivation for 'x86_64-linux'... -Backtrace:
In ./guix/store.scm:
1377:11 19|(loop (#<gexp-input #<<computed-file> name: "guix-packages-base-modules" gexp: #<gexp (begin (use-m?> ?) ?)
1290:4 18 (call-with-build-handler #<procedure 7f3440ab8ea0 at ./guix/store.scm:1330:2 (continue store things mo?> ?)
2165:24 17 (run-with-store #<store-connection 256.99 7f34440c8d70> #<procedure 7f3438f67c00 at ./guix/gexp.scm:89?> ?)
In ./guix/gexp.scm:
898:13 16 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/store.scm:
1993:8 15 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/gexp.scm:
300:22 14 (_ #<store-connection 256.99 7f34440c8d70>)
1181:2 13 (_ #<store-connection 256.99 7f34440c8d70>)
1047:2 12 (_ #<store-connection 256.99 7f34440c8d70>)
893:4 11 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/store.scm:
2050:12 10 (_ #<store-connection 256.99 7f34440c8d70>)
1372:6 9 (map/accumulate-builds #<store-connection 256.99 7f34440c8d70> #<procedure 7f3438f67500 at ./guix/stor?> ?)
1377:11 8\(loop (#<gexp-input #<<computed-file> name: "guix-packages-base" gexp: #<gexp (begin (use-modules (?> ?) ?)
1290:4 7 (call-with-build-handler #<procedure 7f3438f674e0 at ./guix/store.scm:1330:2 (continue store things mo?> ?)
2165:24 6 (run-with-store #<store-connection 256.99 7f34440c8d70> #<procedure 7f3438f67460 at ./guix/gexp.scm:89?> ?)
In ./guix/gexp.scm:
898:13 5 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/store.scm:
1993:8 4 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/gexp.scm:
300:22 3 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/store.scm:
2037:38 2 (_ #<store-connection 256.99 7f34440c8d70>)
In ./guix/derivations.scm:
963:17 1 (derivation #<store-connection 256.99 7f34440c8d70> "guix-packages-base" "/gnu/store/1jgcbdzx2ss6xv59w?" ?)
In ./guix/store.scm:
1033:9 0 (_ #<store-connection 256.99 7f34440c8d70> "guix-packages-base.drv" #vu8(68 101 114 105 118 101 40 91 ?) ?)

./guix/store.scm:1033:9: ERROR:
1. &store-protocol-error:
message: "opening file `/gnu/store/406g41s0dgfmsczphv95p56hbs84a3rf-guix-extra.drv': No such file or directory"
status: 1
guix pull: error: You found a bug: the program '/gnu/store/9xprnlxcag6z3ib6gmw8rs4k04iw808p-compute-guix-derivation'
failed to compute the derivation for Guix (version: "05c5807ea5ce1f8af8068151906d670edda97afe"; system: "x86_64-linux";
host version: "072cc8d1415a2abf66b36249c61658a828dead88"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.
Z
Z
zimoun wrote on 11 Oct 2022 11:04
8635bupw8v.fsf@gmail.com
Hi,

On Tue, 13 Sep 2022 at 18:28, Maze <maze@pkbd.org> wrote:

Toggle quote (9 lines)
> ./guix/store.scm:1033:9: ERROR:
> 1. &store-protocol-error:
> message: "opening file `/gnu/store/406g41s0dgfmsczphv95p56hbs84a3rf-guix-extra.drv': No such file or directory"
> status: 1
> guix pull: error: You found a bug: the program '/gnu/store/9xprnlxcag6z3ib6gmw8rs4k04iw808p-compute-guix-derivation'
> failed to compute the derivation for Guix (version: "05c5807ea5ce1f8af8068151906d670edda97afe"; system: "x86_64-linux";
> host version: "072cc8d1415a2abf66b36249c61658a828dead88"; pull-version: 1).
> Please report the COMPLETE output above by email to <bug-guix@gnu.org>.

Well, I do not know if it will fix your issue because I am not sure to
understand your many variations. :-) Well, have you tried,

guix build /gnu/store/406g41s0dgfmsczphv95p56hbs84a3rf-guix-extra.drv

where the substitutes are allowed? It should download the necessary
items and then,

guix pull --commit=05c5807ea5ce1f8af8068151906d670edda97afe

should complete.


Cheers,
simon
J
J
jbranso wrote on 12 Oct 2022 20:30
98efd380ad7d1603f1dbb523df4d9910@dismail.de
September 15, 2022 2:59 AM, "Maze" <maze@pkbd.org> wrote:

Toggle quote (18 lines)
> I corrupted my store and it says you want the guix pull output, so
> please find it at the end of this message. Mostly I send it because guix
> asks, but (see below) at least 2 things broke on that machine, not sure
> it's related. I have to explain a little but I don't actually require or
> expect that a lot of indivudually-tailored help can be given by GNU in
> this case... It's a non-standard use case on more than one account.
>
> I have been doing more than a few unsupported things with this installation.
> Over the week-end and Monday, 3 things stand out:
>
> * I have been starting to use guix home on this guix which is not a guix
> system but which is on top of Debian. I have some user shepherd
> services. They still work as I'm writing this. I think this is
> unsupported though.
>
> * I tried to install a guix system to a thumb drive. It is inconvenient
> to use the ISO so I decided to do it from Guix on top of Debian. When I

I personally do not understand your usecase. For me, installing the
guix system installer on a usb is as simple as:

sudo dd if=installer.iso of=/dev/sdb status=progress && sync

I would rather do than than to try to build a custom iso image. :)

Also do you wanna just take the plunge and install guix system?

It's super worth it!

It has been the most stable distro that I have ever used.

Thanks,

Joshua
M
(address . jbranso@dismail.de)(address . 57764@debbugs.gnu.org)
m3ilkmvd60.fsf@pkbd.org
jbranso@dismail.de writes:



Toggle quote (29 lines)
> September 15, 2022 2:59 AM, "Maze" <maze@pkbd.org> wrote:
>
>> I corrupted my store and it says you want the guix pull output, so
>> please find it at the end of this message. Mostly I send it because guix
>> asks, but (see below) at least 2 things broke on that machine, not sure
>> it's related. I have to explain a little but I don't actually require or
>> expect that a lot of indivudually-tailored help can be given by GNU in
>> this case... It's a non-standard use case on more than one account.
>>
>> I have been doing more than a few unsupported things with this installation.
>> Over the week-end and Monday, 3 things stand out:
>>
>> * I have been starting to use guix home on this guix which is not a guix
>> system but which is on top of Debian. I have some user shepherd
>> services. They still work as I'm writing this. I think this is
>> unsupported though.
>>
>> * I tried to install a guix system to a thumb drive. It is inconvenient
>> to use the ISO so I decided to do it from Guix on top of Debian. When I
>
> I personally do not understand your usecase. For me, installing the
> guix system installer on a usb is as simple as:
>
> wget https://path/to/guix/installer.iso
> sudo dd if=installer.iso of=/dev/sdb status=progress && sync
>
> I would rather do than than to try to build a custom iso image. :)
>

I'd rather have a bootable and rw system on a thumbdrive than an ISO
image which is a ro system which loads itself in RAM. Changes don't
survive reboots, that's what I find inconvenient with an ISO image.

But anyway now I think I understand that I don't need to mount the store
copy-on-write when the installing (and booted) sytem has a rw store. At
least I think so, I'll try next time. It means what I did last time was
probably unnecessary to begin with.

Toggle quote (6 lines)
> Also do you wanna just take the plunge and install guix system?
>
> It's super worth it!
>
> It has been the most stable distro that I have ever used.

I know it's much better with Guix system. But I'll need some time.
Because I live in a country where VPNs are a necessity but are supposed
to be licensed, I have my own homebrew VPN on Debian using ssh, sysvinit
and a bunch of horribly dirty shell scripts and cron tasks. It is
probably possible to achieve a much better VPN system with shepherd, but
it's a programming task, I'm trying to do it. It's actually both
a motivation to migrate my main computer to Guix... and the reason why I
can't do it right now.

Toggle quote (3 lines)
> Thanks,
>
> Joshua
J
J
jbranso wrote on 14 Oct 2022 21:25
(name . Maze)(address . maze@pkbd.org)(address . 57764@debbugs.gnu.org)
e1aac57dd8e017256a2b0caa5e1223ce@dismail.de
October 14, 2022 7:48 AM, "Maze" <maze@pkbd.org> wrote:

Toggle quote (34 lines)
> jbranso@dismail.de writes:
>
>> September 15, 2022 2:59 AM, "Maze" <maze@pkbd.org> wrote:
>>
>>> I corrupted my store and it says you want the guix pull output, so
>>> please find it at the end of this message. Mostly I send it because guix
>>> asks, but (see below) at least 2 things broke on that machine, not sure
>>> it's related. I have to explain a little but I don't actually require or
>>> expect that a lot of indivudually-tailored help can be given by GNU in
>>> this case... It's a non-standard use case on more than one account.
>>>
>>> I have been doing more than a few unsupported things with this installation.
>>> Over the week-end and Monday, 3 things stand out:
>>>
>>> * I have been starting to use guix home on this guix which is not a guix
>>> system but which is on top of Debian. I have some user shepherd
>>> services. They still work as I'm writing this. I think this is
>>> unsupported though.
>>>
>>> * I tried to install a guix system to a thumb drive. It is inconvenient
>>> to use the ISO so I decided to do it from Guix on top of Debian. When I
>>
>> I personally do not understand your usecase. For me, installing the
>> guix system installer on a usb is as simple as:
>>
>> wget https://path/to/guix/installer.iso
>> sudo dd if=installer.iso of=/dev/sdb status=progress && sync
>>
>> I would rather do than than to try to build a custom iso image. :)
>
> I'd rather have a bootable and rw system on a thumbdrive than an ISO
> image which is a ro system which loads itself in RAM. Changes don't
> survive reboots, that's what I find inconvenient with an ISO image.

That is kind of cool to have a bootable rw iso that you can update!

Toggle quote (21 lines)
>
> But anyway now I think I understand that I don't need to mount the store
> copy-on-write when the installing (and booted) sytem has a rw store. At
> least I think so, I'll try next time. It means what I did last time was
> probably unnecessary to begin with.
>
>> Also do you wanna just take the plunge and install guix system?
>>
>> It's super worth it!
>>
>> It has been the most stable distro that I have ever used.
>
> I know it's much better with Guix system. But I'll need some time.
> Because I live in a country where VPNs are a necessity but are supposed
> to be licensed, I have my own homebrew VPN on Debian using ssh, sysvinit
> and a bunch of horribly dirty shell scripts and cron tasks. It is
> probably possible to achieve a much better VPN system with shepherd, but
> it's a programming task, I'm trying to do it. It's actually both
> a motivation to migrate my main computer to Guix... and the reason why I
> can't do it right now.

I personally use sway. Everytime that I install guix system now,
I install bare-bones.scm first. Then after it is installed, I set up
sway. I have tried to install gnome.scm before, and network issues
caused it to fail half way through like 3+ times.

Toggle quote (4 lines)
>
>> Thanks,
>>
>> Joshua
?