facing issue and error when pull rmf-web and run
KyawMyoThu opened this issue · comments
I followed steps in rmf-web git instructions and run rmf-web, it can not successfully run and showing errors as shown in screenshot.
I'd already setup and installed ROS2 & rmf also.
Could you please help to give some guidelines how to troubleshoot step by step to resolve it and moving forward properly ASAP.
hi, it seems like the tortoise python dependency is not available, did you run the bootstrap scripts here? https://github.com/open-rmf/rmf-web#bootstrap
I tried a clean build without running these bootstrap scripts, and I got a similar error as you, so that seems to most likely cause.
If some further errors appear after running the bootstrap, would be good to run npm run build
in the packages/dashboard
workspace to see if that is a fix.
Hello @KyawMyoThu! I'm sorry to hear that you're facing this. As a sanity check, could you provide us with detailed instructions (what commands you have run) to reproduce this error?
You seem to have also left out all the required information for a bug report, https://github.com/open-rmf/rmf-web/issues/new?assignees=&labels=bug&template=bug_report.md&title=, this set of information is incredibly valuable for us to find out what has gone wrong. So if you are able to, could you also fill out the information and follow up in this thread? This will help us greatly, thanks!
yes, reproducing will be key here: there could be multiple root causes. The core issue is that the npm command that breaks starts up a pipenv environment, which requires the tortoise python dependency. Somehow, this dependency was not installed within the pipenv environment.
Bug report
Required information:
-
Operating system and version:
=> Ubuntu 20.04 -
OpenRMF installation type:
=> I setup from here step by step.
=> https://github.com/open-rmf/rmf -
ROS distribution and version:
=> I followed this below link steps and installed ROS
=> https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html -
ROS installation type:
=> - Ubuntu 20.04
Description of the bug
Steps to reproduce the bug
=> after above installation and setting up steps are finished, then RMF can start up
=> for RMF-Web, I followed the steps from below link, but got start up error coming out.
https://github.com/open-rmf/rmf-web
=> Facing this issue, and got this error, rmf-web cannot start up successfully.
=> then RMF-Web is just coming out like that.
Could you please kindly give some hint to test it out and try, how to troubleshoot those issues to be resolved ASAP.
Thanks.
yes, reproducing will be key here: there could be multiple root causes. The core issue is that the npm command that breaks starts up a pipenv environment, which requires the tortoise python dependency. Somehow, this dependency was not installed within the pipenv environment.
Which packages do I have to install, reinstall, any steps for hints in those kind of situation to resolve it?
There are two issues here,
Facing this issue, and got this error, rmf-web cannot start up successfully.
I think I know what is going on now, you already have a simulation instance running, airport_terminal
, before you called npm run start
. One thing to note, is that npm run start
spins up a headless simulation instance as well, therefore you get the error mentioned. This is mentioned in the docs, https://github.com/open-rmf/rmf-web/tree/main/packages/dashboard#environment-variables
As for the robots not registering on the dashboard , this is due to the default server_uri
is not targeting the api-server
. I apologize for missing out on this piece of documentation during our migration. This is being patched in now.
Try this in the meantime,
ros2 launch rmf_demos_gz airport_terminal.launch.xml server_uri:="w://localhost:8001"
For rmf-web
, checkout to this #595, the default start script on this branch does on launch any headless simulation instances,
cd packages/dashboard
npm start
yes, reproducing will be key here: there could be multiple root causes. The core issue is that the npm command that breaks starts up a pipenv environment, which requires the tortoise python dependency. Somehow, this dependency was not installed within the pipenv environment.
Which packages do I have to install, reinstall, any steps for hints in those kind of situation to resolve it?
i also face the same problem and don't know how to solve it
As of right now, first for the dashboard, you need to run npm run start:react
not npm start
, and in separate terminal, navigate to the api-server
package, and run npm run start
.
This will ensure it will work as expected, if you've already run the bootstrap scrip, and built the dashboard, and provided the server-uri param to the ros2 launch file e.g. server_uri:="ws://localhost:8001"
We are patching the startup scripts to make it simpler atm.
Closing via #595 and open-rmf/rmf_demos#130.
As of right now, first for the dashboard, you need to run
npm run start:react
notnpm start
, and in separate terminal, navigate to theapi-server
package, and runnpm run start
.This will ensure it will work as expected, if you've already run the bootstrap scrip, and built the dashboard, and provided the server-uri param to the ros2 launch file e.g.
server_uri:="ws://localhost:8001"
We are patching the startup scripts to make it simpler atm.
Hello , mayman99, Can you show me more information,why i run "npm run start" : Lifecycle script start
failed with error:
@daichuihua replied on the other issue :)
As of right now, first for the dashboard, you need to run
npm run start:react
notnpm start
, and in separate terminal, navigate to the api-server package, and runnpm run start
.
For ref purposes, just npm run start
in the dashboard package works, running two separate commands is not anymore needed.