Hi Zack,

"Zack Weinberg" <[email protected]> writes:

> # guix gc
> finding garbage collector roots...
> cannot read potential root 
> `/var/guix/gcroots/auto/idj3k6kjlqi7y8sc4c5xschqh8zkhfvb'
> cannot read potential root 
> `/var/guix/gcroots/auto/5si4fzk79j7v27rqaic4lc2qfpk42ilb'

[...]

> # guix gc 2>&1 |
>   sed -ne 's:^cannot read potential root `\([a-z0-9/]*\)'\''$:\1:p' >
>   /tmp/bad-roots
> # ls -l $(cat /tmp/bad-roots)
> lrwxrwxrwx 1 guix-daemon guix-daemon 80 Aug 10 01:41
> /var/guix/gcroots/auto/5si4fzk79j7v27rqaic4lc2qfpk42ilb ->
> /root/.cache/guix/inferiors/bpo6zmuuzeya74vbpqn2innq7vw4xzxn7azgjarsmg756jdrsika
> lrwxrwxrwx 1 guix-daemon guix-daemon 79 Mar 16 22:20
> /var/guix/gcroots/auto/6l77c1c97vij2gg3p95d9zi2k7l0yx29 ->
> /root/.cache/guix/profiles/simr3ylizyyss24c25azsqfl4vjtw2t4ywvgpbh3iinbrsljgfea

That’s a bug, and a pretty bad one.

One may install GC roots anywhere on the file system.  Tools like ‘guix
shell’ and ‘guix time-machine’ create roots respectively under
~/.cache/guix/profiles and ~/.cache/guix/inferiors.  When running
guix-daemon unprivileged, those are not necessarily readable.

But let’s continue this discussion in the bug report at
<https://codeberg.org/guix/guix/issues/1901>.

Thanks for debugging it and sharing your findings!

Ludo’.

Reply via email to