openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
154 stars 131 forks source link

Segmentation fault when /subscribe request is called #212

Closed esm closed 3 years ago

esm commented 3 years ago

Describe the bug A clear and concise description of what the bug is. When I run webui-vue and login, I get the Proxy error in the image below which says that it cannot proxy the subscribe request from my webui-vue which runs on port 8000 to bmcweb which runs on port 18080. The error comes from line 1187 in bmcweb/http/routing.hpp Environment: Linux

To Reproduce Steps to reproduce the behavior:

  1. Run the command '....' ./bmcweb in builddir and run npm run serve in webui-vue

  2. See error: Proxy error: Could not proxy request /subscribe from localhost:8000 to https://localhost:18080/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).

  3. Expected behavior was '....' no error

Is this a regression Has this behavior worked in the past? no it has not worked in the past

webui-vuee bmcweb_subscribe

edtanous commented 3 years ago

Please use and fill out the bug template. It contains information we’ll need to be able to help you.

edtanous commented 3 years ago

I don’t see the issue having been updated with the questions in the template…..

esm commented 3 years ago

I don’t see the issue having been updated with the questions in the template…..

Updated

edtanous commented 3 years ago

Ubuntu is not an openbmc platform, and “latest” is not a specific Sha1 version. Please update with your actual environment.

esm commented 3 years ago

Ubuntu is not an openbmc platform, and “latest” is not a specific Sha1 version. Please update with your actual environment. I'm running bmcweb, not openbmc. I don't think it has a platform

edtanous commented 3 years ago

Bmcweb is not a standalone application. It relies significantly on the OpenBmc environment. If you are expecting it to function without OpenBMC, that’s possible in the architecture, but not something the current upstream bmcweb code supports well.

esm commented 3 years ago

Do you suggest I clone openbmc as a whole before trying to run bmcweb ?

edtanous commented 3 years ago

It’s hard to make a suggestion when you haven’t really talked about what you’re hoping to accomplish.

esm commented 3 years ago

I am trying to run webui-vue (front-end) and bmcweb (back-end) but I get the proxy error above ( _Proxy error: Could not proxy request /subscribe from localhost:8000 to https://localhost:18080/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET)_ ) when I log into webui-vue

webuii

edtanous commented 3 years ago

Webui-vue and bmcweb are designed to be run on a BMC. As-is they would not be very useful on a desktop environment. You still haven’t talked about what you’re hoping to accomplish by doing this.

edtanous commented 3 years ago

Closing from lack of discussion for the last month. If you have new use cases you'd like to explore, please bring them to the OpenBMC discord channel, which is much more apt to discuss new use cases (ie running bmcweb and webui-vue in standalone mode).