unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64187: guix locate: unsupported manifest format
@ 2023-06-20  7:25 Ricardo Wurmus
  2023-06-21 14:41 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2023-06-20  7:25 UTC (permalink / raw)
  To: 64187

I ran “guix locate” on the HPC cluster where we generally don’t ever run
“guix gc”.  Here’s what I got:

--8<---------------cut here---------------start------------->8---
$ time guix locate ls
guix locate: indexing files from /gnu/store...
guix locate: traversing local profile manifests...
guix locate: error: unsupported manifest format

real	2m24.029s
user	3m11.519s
sys	0m5.617s
--8<---------------cut here---------------end--------------->8---

It would be good if it printed the location of the problematic manifest
and ignored it.

-- 
Ricardo




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

* bug#64187: guix locate: unsupported manifest format
  2023-06-20  7:25 bug#64187: guix locate: unsupported manifest format Ricardo Wurmus
@ 2023-06-21 14:41 ` Ludovic Courtès
  2023-07-04  6:16   ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2023-06-21 14:41 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 64187

Hi!

Ricardo Wurmus <rekado@elephly.net> skribis:

> I ran “guix locate” on the HPC cluster where we generally don’t ever run
> “guix gc”.  Here’s what I got:
>
> $ time guix locate ls
> guix locate: indexing files from /gnu/store...
> guix locate: traversing local profile manifests...
> guix locate: error: unsupported manifest format

Oooh no…

> real	2m24.029s
> user	3m11.519s
> sys	0m5.617s
>
> It would be good if it printed the location of the problematic manifest
> and ignored it.

Yes.

However, how can it happen?  ‘guix locate’ knows all the manifest format
version, so maybe it mistook a file for a manifest when in fact it’s
something else?

Could you ‘strace -o /tmp/log.strace guix locate ls’ to get the name of
the offending file for now?

Thanks for reporting it!

Ludo’.




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

* bug#64187: guix locate: unsupported manifest format
  2023-06-21 14:41 ` Ludovic Courtès
@ 2023-07-04  6:16   ` Ricardo Wurmus
  2023-07-07 14:03     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2023-07-04  6:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 64187


Ludovic Courtès <ludo@gnu.org> writes:

> However, how can it happen?  ‘guix locate’ knows all the manifest format
> version, so maybe it mistook a file for a manifest when in fact it’s
> something else?
>
> Could you ‘strace -o /tmp/log.strace guix locate ls’ to get the name of
> the offending file for now?

The last manifest it reads is
/gnu/var/guix/profiles/per-user/wneuber/guix-profile-1-link/manifest
with the following contents

--8<---------------cut here---------------start------------->8---
(manifest
  (version 1)
  (packages
    (("gcc"
      "4.9.2"
      "out"
      "/gnu/store/ym7sybrdifnm3g0rafhclv891niaczcv-gcc-4.9.2"
      ()))))
--8<---------------cut here---------------end--------------->8---

-- 
Ricardo




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

* bug#64187: guix locate: unsupported manifest format
  2023-07-04  6:16   ` Ricardo Wurmus
@ 2023-07-07 14:03     ` Ludovic Courtès
  2023-07-11 16:22       ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2023-07-07 14:03 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 64187

Ricardo Wurmus <rekado@elephly.net> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> However, how can it happen?  ‘guix locate’ knows all the manifest format
>> version, so maybe it mistook a file for a manifest when in fact it’s
>> something else?
>>
>> Could you ‘strace -o /tmp/log.strace guix locate ls’ to get the name of
>> the offending file for now?
>
> The last manifest it reads is
> /gnu/var/guix/profiles/per-user/wneuber/guix-profile-1-link/manifest
> with the following contents
>
> (manifest
>   (version 1)
>   (packages
>     (("gcc"
>       "4.9.2"
>       "out"
>       "/gnu/store/ym7sybrdifnm3g0rafhclv891niaczcv-gcc-4.9.2"
>       ()))))

Woow, this profile predates May 2015 and commit
dedb17ad010ee9ef67f3f4f3997dd17f226c8090.  And indeed, it’s no longer
recognized since e7e04396c0e91569bf493e1352d6539babc15327 (July 2022).

I’ll work on a fix…

Ludo’.




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

* bug#64187: guix locate: unsupported manifest format
  2023-07-07 14:03     ` Ludovic Courtès
@ 2023-07-11 16:22       ` Ludovic Courtès
  2023-07-13  6:46         ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2023-07-11 16:22 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 64187-done

Ludovic Courtès <ludo@gnu.org> skribis:

> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> Ludovic Courtès <ludo@gnu.org> writes:
>>
>>> However, how can it happen?  ‘guix locate’ knows all the manifest format
>>> version, so maybe it mistook a file for a manifest when in fact it’s
>>> something else?
>>>
>>> Could you ‘strace -o /tmp/log.strace guix locate ls’ to get the name of
>>> the offending file for now?
>>
>> The last manifest it reads is
>> /gnu/var/guix/profiles/per-user/wneuber/guix-profile-1-link/manifest
>> with the following contents
>>
>> (manifest
>>   (version 1)
>>   (packages
>>     (("gcc"
>>       "4.9.2"
>>       "out"
>>       "/gnu/store/ym7sybrdifnm3g0rafhclv891niaczcv-gcc-4.9.2"
>>       ()))))
>
> Woow, this profile predates May 2015 and commit
> dedb17ad010ee9ef67f3f4f3997dd17f226c8090.  And indeed, it’s no longer
> recognized since e7e04396c0e91569bf493e1352d6539babc15327 (July 2022).
>
> I’ll work on a fix…

Fixed in commit e1c2c2f042e8741c0759e21e634cd2271e078177!

Ludo’.




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

* bug#64187: guix locate: unsupported manifest format
  2023-07-11 16:22       ` Ludovic Courtès
@ 2023-07-13  6:46         ` Ricardo Wurmus
  0 siblings, 0 replies; 6+ messages in thread
From: Ricardo Wurmus @ 2023-07-13  6:46 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 64187-done


Ludovic Courtès <ludo@gnu.org> writes:

>>> The last manifest it reads is
>>> /gnu/var/guix/profiles/per-user/wneuber/guix-profile-1-link/manifest
>>> with the following contents
>>>
>>> (manifest
>>>   (version 1)
>>>   (packages
>>>     (("gcc"
>>>       "4.9.2"
>>>       "out"
>>>       "/gnu/store/ym7sybrdifnm3g0rafhclv891niaczcv-gcc-4.9.2"
>>>       ()))))
>>
>> Woow, this profile predates May 2015 and commit
>> dedb17ad010ee9ef67f3f4f3997dd17f226c8090.  And indeed, it’s no longer
>> recognized since e7e04396c0e91569bf493e1352d6539babc15327 (July 2022).
>>
>> I’ll work on a fix…
>
> Fixed in commit e1c2c2f042e8741c0759e21e634cd2271e078177!

Thank you!  I confirm that it is now successfully indexing all packages
on the cluster.

-- 
Ricardo




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

end of thread, other threads:[~2023-07-13  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-20  7:25 bug#64187: guix locate: unsupported manifest format Ricardo Wurmus
2023-06-21 14:41 ` Ludovic Courtès
2023-07-04  6:16   ` Ricardo Wurmus
2023-07-07 14:03     ` Ludovic Courtès
2023-07-11 16:22       ` Ludovic Courtès
2023-07-13  6:46         ` Ricardo Wurmus

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