Intel® Edge Software Hub
Get answers from community peers to your questions about building Edge Software Hub solutions for edge compute node.
Announcements
The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
440 Discussions

Error running docker compose tutorial for Edge_Insights_for_Autonomous_Mobile_Robots_2022.3.1

aa53
Beginner
3,002 Views

Error occur at step 6 of the tutorial in this link, https://www.intel.com/content/www/us/en/docs/ei-for-amr/get-started-guide-robot-kit/2022-3/step-6-run-a-ros-2-sample-application-in-the.html.

 

What can i do to resolve it?

 

1.Error summary:

ERROR [nav2-pre 5/9] RUN chmod +x -R /home/eiforamr/ros2_ws/install/its_planner 15.4s
------
updated cache in /root/.ros/rosdep/sources.cache
rosdep install -i --from-path src/navigation2 --rosdistro foxy -y
WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies

 

Is there missing dependencies in the ros-base docker image?

Have not modified the docker-compose .yml file and the .env file.

 

2. Full error log as follow:

[+] Running 1/1
! ros-base Warning 3.1s
[+] Building 19.7s (23/96)
=> [internal] load build definition from dockerfile.amr 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> resolve image config for docker.io/edrevo/dockerfile-plus:0.1.0 1.5s
=> CACHED docker-image://docker.io/edrevo/dockerfile-plus:0.1.0@sha256:d234bd015db8acef1e628e 0.0s
=> local://dockerfile 0.1s
=> => transferring dockerfile: 472.27kB 0.1s
=> local://context 0.1s
=> => transferring context: 472.27kB 0.1s
=> [internal] load metadata for docker.io/intel/oneapi-basekit:2022.2-devel-ubuntu20.04 1.0s
=> [internal] load metadata for docker.io/library/ros:foxy@sha256:e3c69b153f898d03cf307787523 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 63.89kB 0.0s
=> [ros-base-pre 1/9] FROM docker.io/library/ros:foxy@sha256:e3c69b153f898d03cf30778752337e13 0.0s
=> CANCELED [oneapi_base 1/1] FROM docker.io/intel/oneapi-basekit:2022.2-devel-ubuntu20.04@s 15.5s
=> => resolve docker.io/intel/oneapi-basekit:2022.2-devel-ubuntu20.04@sha256:9b0301695e073f8e 0.0s
=> => sha256:9b0301695e073f8eb22d3ca5401455f37ea98c744e35ac8901c98b87a3f567ae 2.41kB / 2.41kB 0.0s
=> => sha256:d5fd17ec1767521cf97f61568096bfc9a7cd9c2d149576a7b43930c5a97062 28.57MB / 28.57MB 1.4s
=> => sha256:a312cb27ead7749a101ab75ba45d3486f11cca1d95bd7b473abee16b18f9d9 45.30MB / 45.30MB 2.4s
=> => sha256:8cbd75c3dbf7d15f693cd35148f0046cc755d08eb4640eaff05908992b01b1 27.97kB / 27.97kB 0.0s
=> => sha256:aa3d94bd2fc1ccd08db4b52e9528aff8ff6e7eefc49774ccdc9f9a8692d8a1 44.80kB / 44.80kB 0.6s
=> => sha256:c73cf61a50e8d1dabdcee1a5540dcdf6a006c1f856d7ffc93870de01ff6c74d2 2.70kB / 2.70kB 0.9s
=> => sha256:5e777f591ecbe814e57940954f74f22945493c683fe2fb098f76cff38860aa77 236B / 236B 1.2s
=> => sha256:ddc080685bc657d1d00a558b4e020c86cff12335c105c4d4c7cd08b2e15b34f3 350B / 350B 1.5s
=> => sha256:7dac4f73818af4f7cbb59abb8e83a69e821379f32c350f21c8e490a1524ddf94 3.91kB / 3.91kB 1.6s
=> => extracting sha256:d5fd17ec1767521cf97f61568096bfc9a7cd9c2d149576a7b43930c5a97062b0 1.2s
=> => sha256:03140a46280453c9f2ad1ae39ff4032df91b9cd1cd3cb664f5df12e38b745d83 249B / 249B 1.8s
=> => sha256:8289312284ffe5094f51daf38a6771f0200778c88bc1e7d5a9a9feabc5f14 553.65MB / 5.94GB 15.4s
=> => sha256:74c223fd977a8a7dceaa3dbdd1c25ef79d7946aba84d399ef58c885e9d21d9 46.82MB / 46.82MB 4.1s
=> => extracting sha256:aa3d94bd2fc1ccd08db4b52e9528aff8ff6e7eefc49774ccdc9f9a8692d8a102 0.0s
=> => extracting sha256:a312cb27ead7749a101ab75ba45d3486f11cca1d95bd7b473abee16b18f9d97d 2.1s
=> => extracting sha256:c73cf61a50e8d1dabdcee1a5540dcdf6a006c1f856d7ffc93870de01ff6c74d2 0.0s
=> => extracting sha256:5e777f591ecbe814e57940954f74f22945493c683fe2fb098f76cff38860aa77 0.0s
=> => extracting sha256:ddc080685bc657d1d00a558b4e020c86cff12335c105c4d4c7cd08b2e15b34f3 0.0s
=> => extracting sha256:7dac4f73818af4f7cbb59abb8e83a69e821379f32c350f21c8e490a1524ddf94 0.0s
=> => extracting sha256:03140a46280453c9f2ad1ae39ff4032df91b9cd1cd3cb664f5df12e38b745d83 0.0s
=> CACHED [ros-base-pre 2/9] RUN useradd --create-home --shell /bin/bash --gid root --uid 987 0.0s
=> CACHED [ros-base-pre 3/9] COPY artifacts/01_amr/multimedia/* /home/eiforamr/data_samples/m 0.0s
=> CACHED [ros-base-pre 4/9] RUN chmod 777 -R /home/eiforamr/data_samples/media_samples & 0.0s
=> CACHED [ros-base-pre 5/9] RUN apt-get update && apt-get upgrade --no-install-recommends -q 0.0s
=> CACHED [ros-base-pre 6/9] WORKDIR /home/eiforamr/workspace 0.0s
=> CACHED [ros-base-pre 7/9] COPY artifacts/01_amr/docker_entrypoint.sh ../ 0.0s
=> CACHED [ros-base-pre 8/9] COPY artifacts/01_amr/source_prebuilt_components.sh /home/eifora 0.0s
=> CACHED [ros-base-pre 9/9] RUN rm -rf /root/.cache 0.0s
=> CACHED [nav2-pre 1/9] WORKDIR /home/eiforamr/ros2_ws 0.0s
=> CACHED [nav2-pre 2/9] RUN git clone -b foxy-devel https://github.com/ros-planning/navigati 0.0s
=> CACHED [nav2-pre 3/9] COPY artifacts/01_amr/nav2/* src/navigation2/ 0.0s
=> CACHED [nav2-pre 4/9] COPY artifacts/01_amr/amr_its_planner/install/its_planner /home/eifo 0.0s
=> ERROR [nav2-pre 5/9] RUN chmod +x -R /home/eiforamr/ros2_ws/install/its_planner 15.4s
------
> [nav2-pre 5/9] RUN chmod +x -R /home/eiforamr/ros2_ws/install/its_planner && cd src/navigation2 && git checkout 60043d4067b9dbff73be65291f5df6aaa286cc61 && git apply 0001-Catch-send_goal-failed-exception.patch && git apply 0001-Fix-action-node-in-endless-loop.patch && git apply 0001-Wait-for-valid-costmap-before-computing-trajectory.patch && git apply 0001-Backport-fix-for-straight-path-issue.patch && cd /home/eiforamr/ros2_ws && apt-get update && rosdep update && rosdep install -i --from-path src/navigation2 --rosdistro foxy -y && source /opt/ros/foxy/setup.bash && colcon build && rm -rf /home/eiforamr/ros2_ws/build/* /home/eiforamr/ros2_ws/src/* /home/eiforamr/ros2_ws/log/*:
#0 0.236 + chmod +x -R /home/eiforamr/ros2_ws/install/its_planner
#0 0.308 + cd src/navigation2
#0 0.308 + git checkout 60043d4067b9dbff73be65291f5df6aaa286cc61
#0 0.502 Note: switching to '60043d4067b9dbff73be65291f5df6aaa286cc61'.
#0 0.502
#0 0.502 You are in 'detached HEAD' state. You can look around, make experimental
#0 0.502 changes and commit them, and you can discard any commits you make in this
#0 0.502 state without impacting any branches by switching back to a branch.
#0 0.502
#0 0.502 If you want to create a new branch to retain commits you create, you may
#0 0.502 do so (now or later) by using -c with the switch command. Example:
#0 0.502
#0 0.502 git switch -c <new-branch-name>
#0 0.502
#0 0.502 Or undo this operation with:
#0 0.502
#0 0.502 git switch -
#0 0.502
#0 0.502 Turn off this advice by setting config variable advice.detachedHead to false
#0 0.502
#0 0.502 HEAD is now at 60043d40 Fix for costmap nodes lifecycle status (#3005)
#0 0.502 + git apply 0001-Catch-send_goal-failed-exception.patch
#0 0.504 + git apply 0001-Fix-action-node-in-endless-loop.patch
#0 0.505 0001-Fix-action-node-in-endless-loop.patch:31: trailing whitespace.
#0 0.505 node_->get_logger(),
#0 0.505 warning: 1 line adds whitespace errors.
#0 0.506 + git apply 0001-Wait-for-valid-costmap-before-computing-trajectory.patch
#0 0.507 0001-Wait-for-valid-costmap-before-computing-trajectory.patch:43: trailing whitespace.
#0 0.507
#0 0.507 warning: 1 line adds whitespace errors.
#0 0.508 + git apply 0001-Backport-fix-for-straight-path-issue.patch
#0 0.511 + cd /home/eiforamr/ros2_ws
#0 0.511 + apt-get update
#0 0.927 Get:1 http://packages.ros.org/ros2/ubuntu focal InRelease [4685 B]
#0 1.140 Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
#0 1.140 Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
#0 1.233 Get:4 http://packages.ros.org/ros2/ubuntu focal/main amd64 Packages [1189 kB]
#0 2.176 Get:5 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1072 kB]
#0 2.358 Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
#0 2.646 Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
#0 2.946 Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
#0 3.270 Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2536 kB]
#0 3.644 Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
#0 3.718 Get:11 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.3 kB]
#0 3.718 Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2866 kB]
#0 4.714 Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
#0 4.729 Get:14 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
#0 4.729 Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2677 kB]
#0 4.909 Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1372 kB]
#0 4.993 Get:17 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.0 kB]
#0 4.995 Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3347 kB]
#0 5.756 Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
#0 6.245 Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
#0 6.526 Fetched 28.6 MB in 6s (4777 kB/s)
#0 6.526 Reading package lists...
#0 7.399 + rosdep update
#0 12.70 Warning: running 'rosdep update' as root is not recommended.
#0 12.70 You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo.
#0 12.70 reading in sources list data from /etc/ros/rosdep/sources.list.d
#0 12.70 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
#0 12.70 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
#0 12.70 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
#0 12.70 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
#0 12.70 Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
#0 12.70 Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
#0 12.70 Skip end-of-life distro "ardent"
#0 12.70 Skip end-of-life distro "bouncy"
#0 12.70 Skip end-of-life distro "crystal"
#0 12.70 Skip end-of-life distro "dashing"
#0 12.70 Skip end-of-life distro "eloquent"
#0 12.70 Skip end-of-life distro "foxy"
#0 12.70 Skip end-of-life distro "galactic"
#0 12.70 Skip end-of-life distro "groovy"
#0 12.70 Add distro "humble"
#0 12.70 Skip end-of-life distro "hydro"
#0 12.70 Skip end-of-life distro "indigo"
#0 12.70 Add distro "iron"
#0 12.70 Skip end-of-life distro "jade"
#0 12.70 Skip end-of-life distro "kinetic"
#0 12.70 Skip end-of-life distro "lunar"
#0 12.70 Skip end-of-life distro "melodic"
#0 12.70 Add distro "noetic"
#0 12.70 Add distro "rolling"
#0 12.70 updated cache in /root/.ros/rosdep/sources.cache
#0 12.73 + rosdep install -i --from-path src/navigation2 --rosdistro foxy -y
#0 14.01 WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
#0 14.01 ERROR: the following packages/stacks could not have their rosdep keys resolved
#0 14.01 to system dependencies:
#0 14.01 nav2_map_server: Cannot locate rosdep definition for [launch_testing]
#0 14.01 nav2_regulated_pure_pursuit_controller: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 dwb_plugins: Cannot locate rosdep definition for [ament_cmake_gtest]
#0 14.01 dwb_critics: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_gazebo_spawner: Cannot locate rosdep definition for [ament_copyright]
#0 14.01 nav_2d_utils: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 navigation2: Cannot locate rosdep definition for [ament_cmake]
#0 14.01 nav2_rviz_plugins: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_common: Cannot locate rosdep definition for [rclpy]
#0 14.01 nav2_system_tests: Cannot locate rosdep definition for [launch_testing]
#0 14.01 dwb_msgs: Cannot locate rosdep definition for [rosidl_default_runtime]
#0 14.01 nav2_lifecycle_manager: Cannot locate rosdep definition for [ament_lint_common]
#0 14.01 nav2_core: Cannot locate rosdep definition for [launch_testing]
#0 14.01 nav2_bt_navigator: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_dwb_controller: Cannot locate rosdep definition for [ament_cmake]
#0 14.01 nav2_behavior_tree: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav_2d_msgs: Cannot locate rosdep definition for [rosidl_default_generators]
#0 14.01 nav2_msgs: Cannot locate rosdep definition for [nav_msgs]
#0 14.01 nav2_voxel_grid: Cannot locate rosdep definition for [ament_cmake_gtest]
#0 14.01 nav2_costmap_2d: Cannot locate rosdep definition for [launch_testing]
#0 14.01 nav2_util: Cannot locate rosdep definition for [action_msgs]
#0 14.01 nav2_controller: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 dwb_core: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_waypoint_follower: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_bringup: Cannot locate rosdep definition for [launch_testing]
#0 14.01 smac_planner: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_planner: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_navfn_planner: Cannot locate rosdep definition for [ament_lint_auto]
#0 14.01 nav2_recoveries: Cannot locate rosdep definition for [ament_cmake_gtest]
#0 14.01 costmap_queue: Cannot locate rosdep definition for [ament_cmake_gtest]
#0 14.01 nav2_amcl: Cannot locate rosdep definition for [ament_lint_auto]
------
failed to solve: executor failed running [/bin/bash -xo pipefail -c chmod +x -R ${ROS2_WS}/install/its_planner && cd src/navigation2 && git checkout ${NAVIGATION2_COMMIT_ID} && git apply 0001-Catch-send_goal-failed-exception.patch && git apply 0001-Fix-action-node-in-endless-loop.patch && git apply 0001-Wait-for-valid-costmap-before-computing-trajectory.patch && git apply 0001-Backport-fix-for-straight-path-issue.patch && cd ${ROS2_WS} && apt-get update && rosdep update && rosdep install -i --from-path src/navigation2 --rosdistro $ROS_DISTRO -y && source ${ROS_INSTALL_DIR}/setup.bash && colcon build && rm -rf ${ROS2_WS}/build/* ${ROS2_WS}/src/* ${ROS2_WS}/log/*]: exit code: 1

0 Kudos
1 Solution
JesusE_Intel
Moderator
2,888 Views

Hi aa53,


Would you be able to provide all the log files under the following directory?

/var/log/esb-cli/Edge_Insights_for_Autonomous_Mobile_Robots_<version>


You also mentioned that the package was successfully installed using ./edgesoftware install, is there a reason why you need to re-build the package from source?


Regards,

Jesus


View solution in original post

0 Kudos
4 Replies
aa53
Beginner
2,955 Views

UPDATE:

Getting the pre-built image from ./edgesoftware install is working fine.

Error still persist if trying to built it.

0 Kudos
Sahira_Intel
Moderator
2,920 Views

Hi,

I am looking into this and will let you know when I have more information.


Sincerely,

Sahira


0 Kudos
JesusE_Intel
Moderator
2,889 Views

Hi aa53,


Would you be able to provide all the log files under the following directory?

/var/log/esb-cli/Edge_Insights_for_Autonomous_Mobile_Robots_<version>


You also mentioned that the package was successfully installed using ./edgesoftware install, is there a reason why you need to re-build the package from source?


Regards,

Jesus


0 Kudos
JesusE_Intel
Moderator
2,762 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.


0 Kudos
Reply