Open maxpat78 opened 1 week ago
A little test with the bare-bon fuse-nio-adapter (no encryption) showed, that gradle queries the same file for 1min again and again:
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7817625Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 4096, fileKey: null)
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle (lastModifiedTime: 2024-11-19T16:07:17.8058209Z, lastAccessTime: 2024-11-19T16:10:20.9402487Z, creationTime: 2024-11-19T16:07:17.7492786Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 4096, fileKey: null)
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5 (lastModifiedTime: 2024-11-19T16:07:17.7892748Z, lastAccessTime: 2024-11-19T16:10:20.9402487Z, creationTime: 2024-11-19T16:07:17.7492786Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 4096, fileKey: null)
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7817625Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 4096, fileKey: null)
17:20:19.710 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:20.927 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:21.965 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:23.238 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:24.249 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:25.383 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:26.635 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:27.908 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:29.022 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
17:20:30.376 [Thread-0] DEBUG org.cryptomator.frontend.fuse.ReadOnlyAdapter - getattr /.gradle/8.5/fileHashes/fileHashes.lock (lastModifiedTime: 2024-11-19T16:10:24.728403Z, lastAccessTime: 2024-11-19T16:10:24.728403Z, creationTime: 2024-11-19T16:07:17.7852686Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: null)
....
My working hypothesis is, that WinFSP automatically locks the file at every request and thus gradle keeps queriying.
Please agree to the following
Summary
Can't build a vault-hosted Kotlin project with Gradle due to lock problem
What software is involved?
Volume Type
None
Steps to Reproduce
Launch
gradble build
to build a Kotlin project hosted inside the vault (F:). After about a minute pause it fails with a locking error:Moved the same project to a plain Windows drive, it compiles fine as usual!
Expected Behavior
Compilation work as usual
Actual Behavior
Gradle does not succeed due to a file locking problem.
Reproducibility
Always
Relevant Log Output
Anything else?
-