Lightning-AI / Lightning-AI/pytorch-lightning
OSError: resource or device busy
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 31.4k
- Forks
- 3.8k
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 6
Description
### Bug description
Every time we use num_workers > 0 we get the following which might not technically be classified as an issue but I was wondering whether there's something that can be about it?
os.unlink(entry.name, dir_fd=topfd)
OSError: [Errno 16] Device or resource busy: '.nfs000000000593097500003963'
I don't know why this is happening with pytorch_lightning but for comparison the pytorch dataloader doesn't seem to have the same behavior or issue when specifying num_workers > 0
### What version are you seeing the problem on?
v2.4
### Reproduced in studio
_No response_
### How to reproduce the bug
```python
```
### Error messages and logs
```
# Error messages and logs here please
```
### Environment
Current environment
```
#- PyTorch Lightning Version (e.g., 2.5.0):
#- PyTorch Version (e.g., 2.5):
#- Python version (e.g., 3.12):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
```
### More info
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error with num_workers > 0 in PyTorch Lightning v2.4 and compare the behavior with the PyTorch dataloader. The issue is resolved when the .nfs resource-busy error no longer occurs during worker-related cleanup, with the relevant Python and environment details documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100