-
Notifications
You must be signed in to change notification settings - Fork 104
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
"Failed to acquire write lock" FUSE #317
Comments
Likely your fs does not support fcntl.lockf (with LOCK_EX to get an exclusive lock). An idea would be to implement (or reuse) a different way of locking, e.g. directory based. |
I'm getting the same error after running $ attic init test-repository
Initializing repository at "test-repository"
attic: Error: Failed to acquire write lock on test-repository/config The repository appears to have been created even after the error, but attempting to I would be happy to implement a directory-based locking mechanism, but pointers on where to start would be appreciated. |
@jasontbradshaw that was a locally mounted zfs? which OS precisely? Just wondering: considering the amount of stuff ZFS does support, it would seem strange it does not support such simple things as fcntl.lockf. |
The ZFS volume is running on a different machine running FreeNAS 9.3 on my local network, and is mounted using NFSv3. My desktop (on which I was attempting to run attic) runs Arch Linux. |
Now that you mention it, NFS is probably the issue. However, this doesn't change the general problem that attic (apparently) requires a lock to operate, and can't reliably obtain one on all filesystems. |
Ah, NFS, that explains it. For NFS, maybe running lockd would help? About the state of locking in general: http://0pointer.de/blog/projects/locking.html |
@feboss @jasontbradshaw ^^^ can you try? |
i installed borg with pip3.
|
I meant the code from git (the new locking code is not on pypi yet). |
After installing attic manually from git ( |
I did the changes in borgbackup (a fork of attic): https://github.com/borgbackup/borg Sorry for the confusion. BTW, if you test the new code and have feedback for it, please use the issue tracker there. |
I want backup in a ftp and i mount my ftp with curlftpfs. But i can't init.
This is the error i get
attic: Error: Failed to acquire write lock on test/config
what can i do?
The text was updated successfully, but these errors were encountered: