autowarefoundation / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
8.59k stars 2.88k forks source link

`docker/build.sh` fails with `ssh_auth_sock: no such file or directory` #4932

Closed VRichardJP closed 3 days ago

VRichardJP commented 3 days ago

Checklist

Description

Pretty much the title:

$ ./docker/build.sh --devel-only
Source directory already exists. Updating repositories...
................................
=== src/core/autoware.core (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_adapi_msgs (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_cmake (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_common (git) ===

Already on 'remove-autoware-cmake-utils'
Your branch is up to date with 'origin/remove-autoware-cmake-utils'.
=== src/core/autoware_internal_msgs (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_lanelet2_extension (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_msgs (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/autoware_utils (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/core/external/autoware_auto_msgs (git) ===

Already on 'tier4/main'
Your branch is up to date with 'origin/tier4/main'.
=== src/launcher/autoware_launch (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/param/autoware_individual_params (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/sensor_component/external/nebula (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/sensor_component/external/sensor_component_description (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/sensor_component/external/tamagawa_imu_driver (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/sensor_component/external/transport_drivers (git) ===

Already on 'boost'
Your branch is up to date with 'origin/boost'.
=== src/sensor_kit/awsim_labs_sensor_kit_launch (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/sensor_kit/external/awsim_sensor_kit_launch (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/sensor_kit/sample_sensor_kit_launch (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/universe/autoware.universe (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/universe/external/ament_cmake (git) ===

Already on 'feat/faster_ament_libraries_deduplicate'
Your branch is up to date with 'origin/feat/faster_ament_libraries_deduplicate'.
=== src/universe/external/eagleye (git) ===

Already on 'autoware-main'
Your branch is up to date with 'origin/autoware-main'.
=== src/universe/external/glog (git) ===

Already on 'v0.6.0_t4-ros'
Your branch is up to date with 'origin/v0.6.0_t4-ros'.
=== src/universe/external/llh_converter (git) ===

Already on 'ros2'
Your branch is up to date with 'origin/ros2'.
=== src/universe/external/morai_msgs (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/universe/external/muSSP (git) ===

Already on 'tier4/main'
Your branch is up to date with 'origin/tier4/main'.
=== src/universe/external/ndt_omp (git) ===

Already on 'tier4/main'
Your branch is up to date with 'origin/tier4/main'.
=== src/universe/external/pointcloud_to_laserscan (git) ===

Already on 'tier4/main'
Your branch is up to date with 'origin/tier4/main'.
=== src/universe/external/rtklib_ros_bridge (git) ===

Already on 'ros2-v0.1.0'
Your branch is up to date with 'origin/ros2-v0.1.0'.
=== src/universe/external/tier4_ad_api_adaptor (git) ===

Already on 'tier4/universe'
Your branch is up to date with 'origin/tier4/universe'.
=== src/universe/external/tier4_autoware_msgs (git) ===

Already on 'tier4/universe'
Your branch is up to date with 'origin/tier4/universe'.
=== src/vehicle/external/pacmod_interface (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
=== src/vehicle/sample_vehicle_launch (git) ===

Already on 'main'
Your branch is up to date with 'origin/main'.
................................
=== src/core/autoware.core (git) ===
Already up to date.
=== src/core/autoware_adapi_msgs (git) ===
Already up to date.
=== src/core/autoware_cmake (git) ===
Already up to date.
=== src/core/autoware_common (git) ===
Already up to date.
=== src/core/autoware_internal_msgs (git) ===
Already up to date.
=== src/core/autoware_lanelet2_extension (git) ===
Already up to date.
=== src/core/autoware_msgs (git) ===
Already up to date.
=== src/core/autoware_utils (git) ===
Already up to date.
=== src/core/external/autoware_auto_msgs (git) ===
Already up to date.
=== src/launcher/autoware_launch (git) ===
Already up to date.
=== src/param/autoware_individual_params (git) ===
Already up to date.
=== src/sensor_component/external/nebula (git) ===
Already up to date.
=== src/sensor_component/external/sensor_component_description (git) ===
Already up to date.
=== src/sensor_component/external/tamagawa_imu_driver (git) ===
Already up to date.
=== src/sensor_component/external/transport_drivers (git) ===
Already up to date.
=== src/sensor_kit/awsim_labs_sensor_kit_launch (git) ===
Already up to date.
=== src/sensor_kit/external/awsim_sensor_kit_launch (git) ===
Already up to date.
=== src/sensor_kit/sample_sensor_kit_launch (git) ===
Already up to date.
=== src/universe/autoware.universe (git) ===
Already up to date.
=== src/universe/external/ament_cmake (git) ===
Already up to date.
=== src/universe/external/eagleye (git) ===
Already up to date.
=== src/universe/external/glog (git) ===
Already up to date.
=== src/universe/external/llh_converter (git) ===
Already up to date.
=== src/universe/external/morai_msgs (git) ===
Already up to date.
=== src/universe/external/muSSP (git) ===
Already up to date.
=== src/universe/external/ndt_omp (git) ===
Already up to date.
=== src/universe/external/pointcloud_to_laserscan (git) ===
Already up to date.
=== src/universe/external/rtklib_ros_bridge (git) ===
Already up to date.
=== src/universe/external/tier4_ad_api_adaptor (git) ===
Already up to date.
=== src/universe/external/tier4_autoware_msgs (git) ===
Already up to date.
=== src/vehicle/external/pacmod_interface (git) ===
Already up to date.
=== src/vehicle/sample_vehicle_launch (git) ===
Already up to date.
Building images for platform: linux/amd64
ROS distro: humble
Base image: ros:humble-ros-base-jammy
Setup args: 
Lib dir: x86_64
Image name suffix: -cuda
Targets: devel
+ docker buildx bake --load --progress=plain -f /home/vrichard/autoware.github/docker/docker-bake.hcl --set '*.context=/home/vrichard/autoware.github/docker/..' --set '*.ssh=default' --set '*.platform=linux/amd64' --set '*.args.ROS_DISTRO=humble' --set '*.args.BASE_IMAGE=ros:humble-ros-base-jammy' --set '*.args.SETUP_ARGS=' --set '*.args.LIB_DIR=x86_64' --set base.tags=ghcr.io/autowarefoundation/autoware:latest-base --set devel.tags=ghcr.io/autowarefoundation/autoware:latest-devel-cuda --set prebuilt.tags=ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda --set runtime.tags=ghcr.io/autowarefoundation/autoware:latest-runtime-cuda devel
#0 building with "default" instance using docker driver

#1 [internal] load local bake definitions
#1 reading /home/vrichard/autoware.github/docker/docker-bake.hcl 764B / 764B done
#1 DONE 0.0s
ERROR: stat /tmp/chromoting.vrichard.ssh_auth_sock: no such file or directory

Note: same issue without the --devel-only flag

Expected behavior

Can build the docker image

Actual behavior

won't build

Steps to reproduce

From the official instructions:

$ ./docker/build.sh

Versions

No response

Possible causes

No response

Additional context

No response

VRichardJP commented 3 days ago

Looks like this is because I am accessing the machine through chrome remote desktop, which overrides SSH_AUTH_SOCK environment variable.

Running ssh-agent and updating SSH_AUTH_SOCK solves the issue.