-
Notifications
You must be signed in to change notification settings - Fork 7
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
<simpleError in lock("test.lock", exclusive = TRUE, timeout = Inf): Cannot lock file: '/path/to/file/test.lock': No locks available> #27
Comments
I cannot reproduce this with filelock 1.0.2 on R-devel or on R 3.6.3, just ran it 50 times on both. Maybe you could try creating a reproducible example with |
Are you running this on a shared file system, btw? |
Yes, it is a shared file system. |
Will do, as soon as I get reprex to work.
Calling rcall separately and setting the user_profile=FALSE (like suggested by others) doesn't work either.
Running the trace yields:
Could it be something about my system that causes issues with both, the file locking and the rcall? |
Shared filesystems often do not support proper locking. I am afraid that you'll need to put the lock files somewhere else, e.g. a user lock directory or the temporary directory. |
Saving the file on a local tmp directory instead of the shared filesystem did the trick. |
For the record #1 would help with this, and so would documenting that there are issues with shared file systems. |
I ran into this error which shows up unpredictably when using filelock on parallel processes.
Rerunning the exact same code multiple times, the processes will finish without error sometimes, but throw an error around 50% of the times. I can't figure out what triggers it.
Here a "reproducible" example:
The text was updated successfully, but these errors were encountered: