apollo icon indicating copy to clipboard operation
apollo copied to clipboard

bootstrap cannot launch module monitor & dreamview

Open kkyiss opened this issue 8 years ago • 24 comments

I just clone the newest code this morning and started the build command in dev docker kkyiss@in_dev_docker:/apollo$ bash apollo.sh build

it showed build passed! but with some info apollo.sh: line 108: 5508 Illegal instruction (core dumped) bazel-bin/modules/data/util/update_task_info --commit_id=$(git rev-parse HEAD)

Then when i run bash scripts/bootstrap.sh

it shows: Start roscore... Could not launch module monitor. Is it already built? Could not launch module dreamview. Is it already build? Dreamview is running at http://localhost:8888

but the webpage shows unable to connect anyone have the same problem? any hints will be appreciate tks

kkyiss avatar Dec 14 '17 05:12 kkyiss

The build looks incomplete. There should be some abnormal logs when you run "apollo.sh build". Would you please post it here?

xiaoxq avatar Dec 14 '17 05:12 xiaoxq

@xiaoxq tks for the quick reply 1

in /data/log directory, there are three logs (dreamview.out, monitor.out, roscore.out) but they are all empty

kkyiss avatar Dec 14 '17 06:12 kkyiss

Could you check if the file bazel-bin/modules/data/util/update_task_info exists? And plz show the output of "git status".

xiaoxq avatar Dec 14 '17 06:12 xiaoxq

Yes, the update_task_info do exists

1

kkyiss avatar Dec 14 '17 06:12 kkyiss

Then could you show me the output of

git status
git rev-parse HEAD
./bazel-bin/modules/data/util/update_task_info --commit_id=1

xiaoxq avatar Dec 14 '17 07:12 xiaoxq

it tells

error while loading shared libraries: libactionlib.so: cannot open shared object file: No such file or directory

1

kkyiss avatar Dec 14 '17 07:12 kkyiss

restart your pc , and rebuild the apollo.sh , then it will work ok

gazige1981 avatar Dec 14 '17 07:12 gazige1981

It's a library from ROS, located at /home/tmp/ros/lib/libactionlib.so Then I guess you are running new code on an old docker image. They don't match.

Just start a new container with ./docker/scripts/dev_start.sh (Please make sure the docker pull gets through successfully. Sometimes it just fails in bad networking condition.)

xiaoxq avatar Dec 14 '17 07:12 xiaoxq

@gazige1981 : tks I restart my pc, but it's not working @xiaoxq : I just remove the old docker container by

docker rm contain-id

and starting a new one

bash docker/scripts/dev_start.sh bash docker/scripts/dev_into.sh bash apollo.sh build bash scripts/bootstrap.sh

and the build info still show the same, also bootstrap not running dreamview

I found the libactionlib.so on docker path /home/tmp/ros/lib Since i am running a new docker image, is there any ways to know how to match them?

kkyiss avatar Dec 14 '17 07:12 kkyiss

Then how about the env $LD_LIBRARY_PATH? In my system it contains "/home/tmp/ros/lib", which makes the "libactionlib.so" findable.

xiaoxq avatar Dec 14 '17 18:12 xiaoxq

my system contains "/home/tmp/ros/lib" too

kkyiss@in_dev_docker:/apollo$ echo $LD_LIBRARY_PATH /usr/local/cuda-8.0/lib64: /home/tmp/ros/lib: /apollo/lib: /apollo/bazel-genfiles/external/caffe/lib

that the "libactionlib.so" file is under the directory "/home/tmp/ros/lib/"

kkyiss avatar Dec 15 '17 01:12 kkyiss

Well, that's really weird. To my knowledge it couldn't happen like that. Thank you for your report and we'll keep investigating. If you have any findings please also let us know!

xiaoxq avatar Dec 15 '17 01:12 xiaoxq

tks @xiaoxq being patient Ill try in another PC too

kkyiss avatar Dec 15 '17 01:12 kkyiss

I have the same issue,It very simple to deal with it,but I have not found the reason

bash apollo.sh clean
bash apollo.sh build

gengqx avatar Dec 15 '17 09:12 gengqx

@gengqx i've already tried but the same result Would you mind to tell me which commit version you are using tks

kkyiss avatar Dec 16 '17 04:12 kkyiss

@kkyiss I you did not do too much code in your workspace, I stronglly suggest that you pull a newest master version ,build ,and open it .it should work. I have try many version,but the same issue show in

Commit: f6f0cf0e3845e649183963541e53a8b6a03f5368
Date: Thu Dec 14 19:55:10 2017 -0600

gengqx avatar Dec 19 '17 02:12 gengqx

Compile time is too short, does not meet the normal situation. Just delete the container is not enough, you also need to delete the Image, Follow these steps to perform, you can properly solve this problem:

  • docker rm [container id]
  • docker rmi [image id]
  • git pull origin master
  • bash docker/scripts/dev_start.sh
  • bash docker/scripts/dev_into.sh
  • bash apollo.sh build

So the normal compilation process takes 1331 seconds at least:

root@in_dev_docker:/apollo# bash apollo.sh  build
System check passed. Build continue ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling
.
[INFO] Building on x86_64...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling
INFO: Analysed 1176 targets (12 packages loaded).
INFO: Found 1176 targets...
INFO: Elapsed time: 1313.708s, Critical Path: 50.02s
INFO: Build completed successfully, 1763 total actions
============================
[ OK ] Build passed!
[INFO] Took 1331 seconds
============================

mickeyouyou avatar Dec 21 '17 04:12 mickeyouyou

Thanks @gengqx
with apollo.sh clean & build now I can launch the module & dreamview

But like #1907 I cannot access http://localhost:8888

@mickeyouyou

Compile time is too short, does not meet the normal situation.

because i have already compiled before i screenshot the result. The first compile time is 1317 seconds and yes i did remove the docker images & container but somehow still have problem about accessing localhost:8888 tks

kkyiss avatar Dec 21 '17 06:12 kkyiss

If your situation is the same as #1907, using the above steps can be solved. can you try again ?

mickeyouyou avatar Dec 21 '17 06:12 mickeyouyou

@mickeyouyou I tried but the problem is not solved. weird

kkyiss avatar Dec 21 '17 08:12 kkyiss