webui not working for me
Vijay Khemka
vijaykhemka at fb.com
Tue Jan 7 05:31:57 AEDT 2020
Thanks Gunnar,
I didn’t understand by running webui locally. I am not running on BMC. I am just running in my mac laptop and trying to connect to BMC via browser.
Regards
-Vijay
From: Gunnar Mills <gmills at linux.vnet.ibm.com>
Date: Sunday, January 5, 2020 at 9:39 PM
To: Vijay Khemka <vijaykhemka at fb.com>, "openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Subject: Re: webui not working for me
On 1/3/2020 7:38 PM, Vijay Khemka wrote:
I am trying to use webui but not getting anything working. I might be missing some steps.
I did following.
1. npm install in repo directory.
2. Recompiled bmcweb with BMCWEB_INSECURE_DISABLE_XSS_PREVENTION on and transferred bmcweb to target.
3. Run chrome browser with http://bmc-ip<https://urldefense.proofpoint.com/v2/url?u=http-3A__bmc-2Dip&d=DwMDaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=kJtGvuus9oDRupym2EBb90B5bKvSi-pPMLdfIXHUGAM&s=HQJMeAs5VppEftgdpNH7nd7V3Zx4xpf4DEyqto7U7_Q&e=>
4. I see blank page. Then tried with https and accepted certificates.
5. But still I see page with “refused to connect”
Hi Vijay,
Are you trying to run the webui locally (e.g. npm run-script server and then browse to http://localhost:8080<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080&d=DwMDaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=kJtGvuus9oDRupym2EBb90B5bKvSi-pPMLdfIXHUGAM&s=r_P53gY50VmvMsyQPhxD35FdzONyzQNBH3GUYTerV4M&e=> )?
If so, something more like:
npm install
npm run-script server
Recompile bmcweb with BMCWEB_INSECURE_DISABLE_XSS_PREVENTION and BMCWEB_INSECURE_DISABLE_CSRF_PREVENTION and transfer bmcweb to target.
Go to https://bmc-ip<https://urldefense.proofpoint.com/v2/url?u=https-3A__bmc-2Dip&d=DwMDaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=kJtGvuus9oDRupym2EBb90B5bKvSi-pPMLdfIXHUGAM&s=gdm3UjRQnu_XRVgmp5SVt9W82Tl-uoCarovDoHDdD1Y&e=> and accept the certificate
Go to http://localhost:8080<https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080&d=DwMDaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=kJtGvuus9oDRupym2EBb90B5bKvSi-pPMLdfIXHUGAM&s=r_P53gY50VmvMsyQPhxD35FdzONyzQNBH3GUYTerV4M&e=> (could be running at a different port, check npm run-script server output) and point at bmc-ip
If you are trying to build the webui for the BMC (npm run-script build) and scp the files over, do you need to include the webui package group?
https://github.com/openbmc/openbmc/commit/fef8abbc78154abbd86ab9f0704e65ccb422f4de
The webui recipe creates the webui directory structure on the BMC.
Please help me what else I need to do. I got 2 warning while installing NPM.
The warnings should not matter.
- Gunnar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200106/bfb8caec/attachment-0001.htm>
More information about the openbmc
mailing list