Infinite redirect.

Mike proclivis at gmail.com
Tue Jul 28 09:06:20 AEST 2020


Ed,

That fixed it.

Committed to the repo below.

Still fails to start the service without /var/log/redfish

Adding -DBMCWEB_ENABLE_REDFISH_DBUS_LOG=ON will fix it. Otherwise someone might consider modifying event_service_manager.hpp to create the file when missing.

 I still can’t l ssh to port 2200, but my goal is to add pmbus sensors and the webui will do for that.

Anyone that wants to get raspberrypi4 running can use the repo below and it’s Readme. It will get it compiled and the webui up. Mainly is just working config files and a readme with every command I used including making the image.

Sent from my iPhone

> On Jul 27, 2020, at 1:09 PM, Ed Tanous <ed at tanous.net> wrote:
> 
> 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