Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build error #218

Closed
osrf-migration opened this issue Jun 5, 2017 · 8 comments
Closed

docker build error #218

osrf-migration opened this issue Jun 5, 2017 · 8 comments
Labels
bug Something isn't working cloud major

Comments

@osrf-migration
Copy link

Original report (archived issue) by dan (Bitbucket: dan77062).


About one out of every three or four builds, docker fails to build with this CMake error. If I just rerun the build command again, with no changes to the Dockerfile or the repo, it then builds OK. A stackoverflow thread gives some hints on what is going on, but not enough to figure it out. This is particularly bad with cloudsim, because with only VPN there is no way to know if the docker image built successfully and whether or not we are ready to start the container.

#!c++

CMake Error at /opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/root/docker/ws/build/catkin_generated/env_cached.sh
  "/usr/bin/python" "/usr/bin/empy" "--raw-errors" "-F"
  "/root/docker/ws/build/catkin_generated/order_packages.py" "-o"
  "/root/docker/ws/build/catkin_generated/order_packages.cmake"
  "/opt/ros/indigo/share/catkin/cmake/em/order_packages.cmake.em") returned
  error code Text file busy
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /opt/ros/indigo/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
  CMakeLists.txt:63 (catkin_workspace)
@osrf-migration
Copy link
Author

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


  • set component to "cloud"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set assignee_account_id to "557058:684383ab-ac95-4859-a350-4a6f41a94a22"
  • set assignee to "sloretz (Bitbucket: sloretz, GitHub: sloretz)"

@osrf-migration
Copy link
Author

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


Which dockerfile is being built when this issue occurs? What is the command being used to build the image?

@osrf-migration
Copy link
Author

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


May I have the output of sudo docker info from the machine that was building the dockerfile that produced the Text file busy error?

@osrf-migration
Copy link
Author

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


If a team is having an intermittent docker build issue that always occurs in the same place, they can try adding sync to the RUN command prior to the command that fails with Text file busy.

I'm assuming this is an issue with building a team's field computer docker image using the src_deploy.bash script in cloudsim-sim. Since @dan77062 reported the issue happens intermittently I added a pull request to retry building the team's docker image up to 5 times in this pull request

Text file busy is probably ETXTBSY which happens when one attempts to write to a file that is being executed. There are reports of this happening in docker files: here where executing file after running chmod, here with mention of an AUFS issue. There's also discussion about chmod in aufs and a race condition leading to ETXTBSY on the aufs mailing list.

@osrf-migration
Copy link
Author

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


  • changed state from "new" to "open"

In progress, will close once pull request on cloudsim-sim is merged.

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


the pull request has been merged

@osrf-migration
Copy link
Author

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


  • changed state from "open" to "resolved"

@osrf-migration osrf-migration added major cloud bug Something isn't working labels May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cloud major
Projects
None yet
Development

No branches or pull requests

1 participant