ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

RUN rosdep init error #971

Open duguguang opened 2 years ago

duguguang commented 2 years ago

a@b:/tmp/prerelease_job$ ./prerelease.sh Step 24/27 : RUN rosdep init ---> Running in 9ee7afba1935 ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down. Removing intermediate container 9ee7afba1935 The command '/bin/sh -c rosdep init' returned a non-zero code: 4

but i can visit the page and the command sudo rosdep init , rosdep update run in the terminal is ok

tfoote commented 2 years ago

That sounds like you have a connectivity error from your container.

There's lots of reasons why it might be a problem. https://answers.ros.org/question/345503/website-may-be-down-error-when-i-try-sudo-rosdep-init/

You'll need to debug your system better. Likely enter into the container and run the command manually.

Also if you want more help please include the full commands that your running as well as minimal instructions to recreate the problem, otherwise we're just guessing what's going wrong.

duguguang commented 2 years ago

Finally i found the problem, Compare the cmd, the /bin/sh is slow and report the error nokov@nokov-Host:/tmp/prerelease_job$ sudo /bin/sh -c "rosdep init" ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website may be down.

nokov@nokov-Host:/tmp/prerelease_job$ sudo rosdep init Wrote /etc/ros/rosdep/sources.list.d/20-default.list Recommended: please run

rosdep update