-
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
filelock error when using drake #26
Comments
Thanks for posting. Would you share the same reprex and lock file you posted to drake's issue tracker? |
Here is a zip file from my drake project containing the lock file: Here is a minimal example reproducing the error: library(filelock)
lock <- lock(".drake/drake/history/lock")
unlock(lock)
|
Well, sadly, that is not a reprex. I obviously do not have a |
You do if you download the zip file I also attached! |
But I suspect that you are trying to create a lock file on some shared file system, and many of these, e.g. NFS, do not support locks. |
It is the network drive at my hospital, so I would assumed that is a shared file system as you describe. I am not sure what NFS is. |
https://en.wikipedia.org/wiki/Network_File_System If this is macOS or some other Unix, and you type A workaround would be to configure drake to store the lock files somewhere else, if that's possible. |
For posterity, when running
Hope this is helpful, @wlandau |
Interesting, in theory SMBFS supports locking, AFAIK. In any case, being able to configure a custom directory for lock files is a good idea in general. |
I don't know enough about this stuff, so I can't really offer much insight. But we seem to have identified the issue. Running this on the mounted drive: library(filelock)
lock <- lock("/Volumes/hung_lab/warkentin/lock")
On my internal drive, works fine. library(filelock)
lock <- lock("/Volumes/Macintosh HD/Users/matt/Desktop/lock")
unlock(lock)
|
Thanks for explaining, @gaborcsardi. I think I can solve this for |
And @mattwarkentin, thanks for #26 (comment). That makes it clear we need wlandau/txtq#18. |
Would you try ropensci/drake@2ffd42a? It should be fixed now because I made |
It works. Thanks for your work! |
Hi @gaborcsardi,
I am running into an issue when trying to use the
{drake}
package and it seems to befilelock
related. Thefilelock
error seems to be holding my drake project hostage, so to speak. I keep running into this error:I really don't know enough about how
filelock
is used internally fordrake
, but I have worked with @wlandau to try and get to the bottom of it by running different bits of code to rule-in and out some issues. All of that can be found here ropensci/drake#1280I am happy to continue to do whatever I can to help work toward a solution. Thanks for your help.
The text was updated successfully, but these errors were encountered: