unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Roman Scherer <roman.scherer@burningswell.com>
To: Felix Lechner <felix.lechner@lease-up.com>
Cc: Tobias Geerinckx-Rice <me@tobias.gr>, help-guix@gnu.org
Subject: Re: Too many levels of symbolic links
Date: Tue, 14 Mar 2023 20:16:52 +0100	[thread overview]
Message-ID: <86o7ov6t01.fsf@burningswell.com> (raw)
In-Reply-To: <CAFHYt57+ygosmfs0KC1LBvx+Q+T1wSYCt3WjC3QBqHNCN4EyUQ@mail.gmail.com>

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


Felix, I'm back on track! I found what triggered this horrible problem :)

At some point I added the qemu-binfmt-service-type to my system. I
copied a snipped from the manual and finally "adjusted" it to this:

```
(define %qemu-service
  (service qemu-binfmt-service-type
           (qemu-binfmt-configuration
            (platforms (lookup-qemu-platforms "aarch64" "x86_64")))))
```

I don't know much about quem and I thought, well let's choose the
"aarch64" and "x86_64" qemu platforms on which I run Guix, and maybe
re-use this service on multiple machines.

My Guix system runs on the aarch64 architecture. It turns out that
having "aarch64" in lookup-qemu-platforms causes the "Too many levels of
symbolic links" error. As soon as I remove it, everything is good again.

Now, maybe it does not even makes sense to add "aarch64" to that list,
but I think it should not fail that catastrophical. I still don't know
which symlink was causing this issue, though.

That's where I am. Just happy that I survived my first serious Guix
crash. :)

Thanks for your help so far,

Roman

Felix Lechner <felix.lechner@lease-up.com> writes:

> Hi Roman,
>
> On Fri, Mar 10, 2023 at 7:32 AM Roman Scherer
> <roman.scherer@burningswell.com> wrote:
>>
>> Right now I rolled back to generation 53, which is still
>> working.
>
> Great!
>
>> Is it correct to look for the problematic files in the directory to
>> which system-54-link links to?
>
> Yes, probably. Unfortunately, profiles are large bundles of symbolic
> links, so finding the offending cycle may not be easy.
>
>> Generation 54 is the broken one, which does boot up, but
>> logging in fails with the too many levels of symbolic link issue.
>
> Since the issue occurs at login, there may also be a bad interaction
> with your user profile. What if you log in as another user?
>
>> I run the problematic commands from that directory and they seem to run
>> from the non-broken system
>
> My prime list of suspects include something like a system-wide Bash
> profile (or whichever shell you use).
>
>> I'm thinking of re-installing my system completely.
>
> Please don't do that. It is not necessary.
>
> Instead, you can delete generation 54 and try again. Make sure to
> 'guix pull' before reconfiguring again.
>
>> Do I have any other option, even an unsupported one?
>
> Please post the config.scm for your generation 53, plus a diff to
> generation 54. You find copies via 'guix system describe'. It may also
> be helpful to attach your home.scm, if you use Guix Home.
>
> Together with the changes in Guix since the commit on which generation
> 53 is based, we will find the issue. The process is more or less
> deterministic.
>
> Please keep up hope. All needed software is already installed. Guix
> has extraordinary ways to recover—even though they can be hard to
> figure out.
>
> Kind regards
> Felix

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

  reply	other threads:[~2023-03-14 19:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-05 16:19 Too many levels of symbolic links Roman Scherer
2023-03-05 16:43 ` Felix Lechner via
2023-03-05 16:53   ` Roman Scherer
2023-03-05 17:11     ` Felix Lechner via
2023-03-05 17:22     ` Tobias Geerinckx-Rice
2023-03-10 15:28       ` Roman Scherer
2023-03-10 17:10         ` Felix Lechner via
2023-03-14 19:16           ` Roman Scherer [this message]
2023-03-15 11:41             ` Efraim Flashner
2023-03-15 18:22               ` Roman Scherer
2023-03-15 11:56             ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86o7ov6t01.fsf@burningswell.com \
    --to=roman.scherer@burningswell.com \
    --cc=felix.lechner@lease-up.com \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).