webui not working for me

Vijay Khemka vijaykhemka at fb.com
Tue Jan 7 06:27:56 AEDT 2020


Hi Gunnar,
Now I am following below steps. I am running all these from my mac laptop. Nothing on BMC, just copied bmcweb on BMC.

  1.  npm install in repo directory.
  2.  npm run-script server
  3.  Recompiled bmcweb with BMCWEB_INSECURE_DISABLE_XSS_PREVENTION and BMCWEB_INSECURE_DISABLE_CSRF_PREVENTION and transfered bmcweb to target.
  4.  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=>, no certificates asked, says certificate expired on Dec 29 1979.
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=>, Don’t see any port as output for “npm run-script server”.


vijaykhemka-mbp:phosphor-webui vijaykhemka$ npm run-script server

> phosphor-webui at 2.8.0-dev server /Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui
> webpack-dev-server --history-api-fallback --inline --progress --devtool source-map --mode development

10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://localhost:18898/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from ./src/public
ℹ 「wds」: 404s will fallback to /index.html
10% building 1/3 modules 2 active ...babel-loader/lib/index.js??ref--4!/Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui/node_modules/webpack-dev-server/client/index.js?http://localhost:18898Browserslist: caniuse-lite is outdated. Please run next command `npm update`
67% building 545/571 modules 26 active /Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui/node_modules/core-js/modules/es.reflect.is-extensible.js[BABEL] Note: The code generator has deoptimised the styling of /Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui/node_modules/angular/angular.js as it exceeds the max of 500KB.
66% building 557/590 modules 33 active /Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui/node_modules/core-js/modules/es.object.to-string.js[BABEL] Note: The code generator has deoptimised the styling of /Users/vijaykhemka/proj/lf/gh/new-gh/gh-repo/phosphor-webui/node_modules/text-encoding/lib/encoding-indexes.js as it exceeds the max of 500KB.
ℹ 「wdm」:    761 modules
ℹ 「wdm」: Compiled successfully.

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/e607b393/attachment-0001.htm>


More information about the openbmc mailing list