unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54969: "activate.scm.drv" Empty and Live
@ 2022-04-16  1:20 Zain Jabbar
  2022-04-16 13:52 ` Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Zain Jabbar @ 2022-04-16  1:20 UTC (permalink / raw)
  To: 54969

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

Aloha Guix,

A number of errors have appeared on my system. Notably I have the following
issue with "sudo guix system reconfigure $CONFIG_FILE":
"guix system: error: error parsing derivation
`/gnu/store/8jqz1m1src0h4md70q09rlxppdy6d1jx-activate-service.scm.drv':
expected string `Derive(['"

I believe this is due to key files on my system (e.g.
"/gnu/store/...-activate.scm.drv" and
"/gnu/store/...-activate-service.scm.drv") have become both empty and live
on my system.

Here is the result of trying to repair using "guix gc"
"zjabbar@tao ~$ sudo guix gc --verify=contents,repair
reading the store...
checking path existence...
checking hashes...
path `/gnu/store/035mddyijs1xrp7z36fn1yvqd6asx4vq-provenance-builder' was
modified! expected h
ash `468eebad16e7842b982f046d0e846c5bc2672af01879cc43409f9534820eb815', got
`77ac62e2629d8e45f
624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/035mddyijs1xrp7z36fn1yvqd6asx4vq-provenance-builder'
path `/gnu/store/0c9hqf02jksb06r3ywdz0alq1154kkq9-grub.cfg-builder' was
modified! expected hash
`04ed96b94726f1ffc7ce3fae556d5c057de1e0348da488a31694190787783b6a', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/0c9hqf02jksb06r3ywdz0alq1154kkq9-grub.cfg-builder'
path
`/gnu/store/17q0ymk80965sm1vww4anwz96q57q229-shepherd-user-homes.scm.drv'
was modified! expected hash
`c69bf28c4c631368cbe1ad4d5d3dcc424f5a0d4a658cb964e796b2b92a6306fd', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/17q0ymk80965sm1vww4anwz96q57q229-shepherd-user-homes.scm.drv'
path
`/gnu/store/1byrjg1w8mqmgla4257xc25lyh042bq2-xdg-desktop-database-builder'
was modified! expected hash
`77ed327cc6131e0a0cc6e207e679b09edc826a26a2bc4bf5c7f0f6e3f7bc6517', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/1byrjg1w8mqmgla4257xc25lyh042bq2-xdg-desktop-database-builder'
path `/gnu/store/1mcdi0zvcmb184dg6459cpxg4hr1pz4h-glib-schemas.drv' was
modified! expected hash
`b9504e60e0576992ee0cb323ec15a71a0b6aeedcb47f22be5a16040063da0757', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/1mcdi0zvcmb184dg6459cpxg4hr1pz4h-glib-schemas.drv'
path `/gnu/store/1wdm4khqlrx2yxb646jp9s7ia3f9p9w9-configuration.scm' was
modified! expected hash
`851294df3f63927f9da53b318e7cec9dedf0d7e149a57be38707ae3c2a819e80', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
error: cannot repair path
`/gnu/store/1wdm4khqlrx2yxb646jp9s7ia3f9p9w9-configuration.scm'"

It looks like a lot of files have the same hash and are empty. Is the only
way to fix this to reinstall Guix? Is it known why this could happen in the
first place?

-- 
Thank you,
Zain Jabbar

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

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

* bug#54969: "activate.scm.drv" Empty and Live
  2022-04-16  1:20 bug#54969: "activate.scm.drv" Empty and Live Zain Jabbar
@ 2022-04-16 13:52 ` Maxime Devos
  2022-04-16 14:18   ` Zain Jabbar
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Devos @ 2022-04-16 13:52 UTC (permalink / raw)
  To: Zain Jabbar, 54969

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

Zain Jabbar schreef op vr 15-04-2022 om 15:20 [-1000]:
> Is it known why this could happen in the first place?

I guess a power outage or the like.  Currently the guix daemon never
calls 'sync' or the like (except possibly for the SQlite db), though
maybe it should (at cost of some performance).

> Is the only way to fix this to reinstall Guix?

That's a way to do it, but there are less heavy-handed ways.  E.g.,
maybe "guix gc --verify=repair" could be extended to delete objects
that are broken (wrong hash) and aren't referenced? (long-term)

For the short term, maybe do "guix gc", possibly some of the broken
files are unused.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#54969: "activate.scm.drv" Empty and Live
  2022-04-16 13:52 ` Maxime Devos
@ 2022-04-16 14:18   ` Zain Jabbar
  2022-04-16 14:47     ` Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Zain Jabbar @ 2022-04-16 14:18 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 54969

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

Aloha Maxime Devos,

Your suggestion worked! I did the following but I'm not sure how much was
actually needed:

1. Use guix pull and guix system to switch to an older generation (I did
like -100)
2. Use guix gc
3. Run guix system again which remakes the files (like activate.scm as per
title)

This time guix system actually runs to completion. Mahalo nui iā ʻoe!

On Sat, Apr 16, 2022, 3:53 AM Maxime Devos <maximedevos@telenet.be> wrote:

> Zain Jabbar schreef op vr 15-04-2022 om 15:20 [-1000]:
> > Is it known why this could happen in the first place?
>
> I guess a power outage or the like.  Currently the guix daemon never
> calls 'sync' or the like (except possibly for the SQlite db), though
> maybe it should (at cost of some performance).
>
> > Is the only way to fix this to reinstall Guix?
>
> That's a way to do it, but there are less heavy-handed ways.  E.g.,
> maybe "guix gc --verify=repair" could be extended to delete objects
> that are broken (wrong hash) and aren't referenced? (long-term)
>
> For the short term, maybe do "guix gc", possibly some of the broken
> files are unused.
>
> Greetings,
> Maxime.
>

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

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

* bug#54969: "activate.scm.drv" Empty and Live
  2022-04-16 14:18   ` Zain Jabbar
@ 2022-04-16 14:47     ` Maxime Devos
  0 siblings, 0 replies; 4+ messages in thread
From: Maxime Devos @ 2022-04-16 14:47 UTC (permalink / raw)
  To: Zain Jabbar; +Cc: 54969-done

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

Zain Jabbar schreef op za 16-04-2022 om 04:18 [-1000]:
> Aloha Maxime Devos,
> 
> Your suggestion worked! I did the following but I'm not sure how much
> was actually needed: [...]

Nice, closing.

FWIW, you can close reports yourself by sending to
NNNNN-done@debbugs.gnu.org instead of NNNNN@debbugs.gnu.org.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2022-04-16 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16  1:20 bug#54969: "activate.scm.drv" Empty and Live Zain Jabbar
2022-04-16 13:52 ` Maxime Devos
2022-04-16 14:18   ` Zain Jabbar
2022-04-16 14:47     ` Maxime Devos

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).