Infinite redirect.

Ed Tanous ed at tanous.net
Tue Jul 28 05:09:17 AEST 2020


On Mon, Jul 27, 2020 at 12:03 PM Mike Jones <proclivis at gmail.com> wrote:
>
> I need help debugging an infinite redirect.

Without reading the rest of your email, there is a 95% chance that
this means you didn't include phosphor-webui component in your build.
It is a known "bug" that has bit several people, and I've been meaning
to fix it so it at least gives you some better error and/or at least
doesn't redirect, but architecturally it breaks some weird boundaries
a little bit (the login routes have to be aware of which other routes
have been registered, which imposes an unintended ordering on the
route handler) , and I've just never had the chance.

>
> Using tag 2.8.0
>
> I built meta-phosphor with raspberrypi4. See https://github.com/Proclivis/conf-meta-rasberrypi-evb.git
>
> I setup a host entry on my ubuntu laptop in /etc/hosts
>
> 10.0.1.72 bmc
>
> Then with firefox use url
>
> https://bmc:18080
>
> I get a redirect to
>
> https://bmc:18080/#/login?next=%2F
>
> Which also redirects again.
>
> bmcweb is not sending a cookie on the first request.

Nor should it.  You're not logged in yet, nor have you given valid
login credentials.  The redirect is trying to move you to the webui,
which can then present a pretty login screen.  Unfortunately the webui
doesn't exist, so you hit another redirect.

>
> On the target, token_authorization_middleware.hpp:187 is failing the cookie authorization, probably because Firefox is not sending back the cookie it never received.
>
> There are two failed services not running:
>
> obmc-phosphor-sysd.service
> start-ipkvm-.service

Those should be irrelevant to this issue.

>
> I assume these would not interfere with something as basic as cookies.
>
> Is there something I need to configure on the target?

See above.


More information about the openbmc mailing list