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

deploy_robots.py cannot remove build folder #655

Open
val-ba opened this issue Jan 20, 2025 · 1 comment
Open

deploy_robots.py cannot remove build folder #655

val-ba opened this issue Jan 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@val-ba
Copy link
Contributor

val-ba commented Jan 20, 2025

Summary

When trying to use the deploy_robots.py script with the following command ./scripts/deploy_robots.py donna -sb -p bitbots_quintic_walk the build directory cannot be removed.
The command run is rm -rf ~/colcon_ws/build ~/colcon_ws/install ~/colcon_ws/log' exited=1> and if you run it directly on the robot it does not cause an error.

Expected behavior

It should just remove the directory.

Current behavior

This is the error message:

rm: cannot remove '/home/bitbots/colcon_ws/build/biped_interfaces'
: Directory not empty
Traceback (most recent call last):
File "/homes/17vahl/colcon_ws/src/bitbots_meta/scripts/deploy/tasks/build.py", line 55, in _clean
results = connections.run(cmd_clean, hide=hide_output())
File "/homes/17vahl/.local/lib/python3.10/site-packages/fabric/group.py", line 116, in run
return self._do("run", *args, **kwargs)
File "/homes/17vahl/.local/lib/python3.10/site-packages/fabric/group.py", line 282, in _do
raise GroupException(results)
fabric.exceptions.GroupException: {: <UnexpectedExit: cmd='rm -rf ~/colcon_ws/build ~/colcon_ws/install ~/colcon_ws/log' exited=1>}

Steps to Reproduce

  1. Run ./scripts/deploy_robots.py donna -sb -p bitbots_quintic_walk

Possible Solution

@val-ba val-ba added the bug Something isn't working label Jan 20, 2025
@val-ba val-ba added this to Software Jan 20, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in Software Jan 20, 2025
@Flova
Copy link
Member

Flova commented Jan 20, 2025

Note this only happens sometimes

@jaagut jaagut moved this from 🆕 New to 📋 Backlog in Software Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants