Comments (6)
Thanks for giving more detail there!
- Don't stop when cleaning up something fails.
I'd disagree with this. I think it should fail though perhaps with a clearer message.
from bb-remote-execution.
The folder that fails to be cleaned up is /run/lock
, which contains a subsys
folder (IIRC) owned by root. It would be good to know why we need to cleanup those folders as it doesn't look like they are ever used when building things.
Could we workaround this issue in a different way?
- Cleanup a subfolder instead of these (if we are actually using them, and we can decide where the temp files go)
- Cleanup only folders we can actually delete (owned by the runner user)
- Don't stop when cleaning up something fails.
from bb-remote-execution.
I also had such failures due to a root-owned file/directory under /tmp in my runner container. The file was related to sysdig in Kubernetes. Skipping deletion of files owned by other users seems sensible.
And definitely need better error messages. Locally I modified to return util.StatusWrap(err, name)
in RemoveAllChildren
from bb-remote-execution.
I believe the initial problem has been solved in a5be3f6. Now the question is, how to indeed deal with failing cleanup.
from bb-remote-execution.
Mind if I ask why the cleanup is needed? Are we expecting builds to put files in those locations?
from bb-remote-execution.
The runner image has been updated in the meantime. Let's mark this as closed.
from bb-remote-execution.
Related Issues (20)
- Failed to build bb-remote-execution on Windows HOT 2
- Service resolution via Consul HOT 1
- BuildBarn always resolves symlinks to origin files HOT 9
- Buildbarn allows action to write under user home directory HOT 2
- Support remote persistent workers HOT 1
- Is it possible to allow for the setting of priorities or weights for workers? HOT 3
- Mount '/proc' into chrooted actions HOT 5
- Bazel build fails if remote worker is being downscaled during build HOT 1
- Linux sandboxing / network blocking HOT 4
- Missing output files are ignored by bb-worker HOT 2
- Publish multi-arch images with arm64 HOT 1
- Fuse worker has missing output directories compared to hardlinking worker HOT 3
- Allow runners to have multiple platform configurations HOT 2
- Instance name lost when ExecuteRequest arrives in scheduler HOT 6
- Scheduler does not reschedule on Internal Errors HOT 5
- Scheduler should report action as Executing when it starts, instead of waiting until ExecutionUpdateInterval
- Scheduller validation breaks after docker image: 20210430T150052Z-ed1e2f4 HOT 2
- Building bb_runner and bb_worker fails on Mac M1/arm64 HOT 16
- RequestMetadata extraction does not work with Bazel HOT 2
- scheduler handles workers above maximum size poorly HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bb-remote-execution.