Skip to content

OSError: resource or device busy #20828

Open
@kirk86

Description

@kirk86

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingver: 2.4.xwaiting on authorWaiting on user action, correction, or update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions