Skip to content
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

MacOS: Saving to vault freezes cryptomator and hangs os #3085

Open
2 tasks done
Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue Aug 22, 2023 · 30 comments
Open
2 tasks done
Labels
mount:fuse os:mac type:bug Something isn't working

Comments

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 22, 2023

Please agree to the following

Summary

critical bug - writing to disks freezes cryptomator

What software is involved?

  • Operating System: Mac OS Ventura 13.5.1
  • Cryptomator: 1.9.4
  • latest fuse-t installed via brew 1.0.27

Might be related to #1878

Volume Type

None

Steps to Reproduce

copy a file into vault using finder
copy freezes

Expected Behavior

no freeze

Actual Behavior

cannot cancel operation
cryptomator and finder freezes
cannot quit cryptomator
cannot restart mac. can only hard poweroff laptop to resume normal functionality

Reproducibility

Intermittent, but it happens often

Relevant Log Output

No response

Anything else?

No response

@Uj947nXmRqV2nRaWshKtHzTvckUUpD Uj947nXmRqV2nRaWshKtHzTvckUUpD added the type:bug Something isn't working label Aug 22, 2023
@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 22, 2023

i turned debug logs on and this is what it showed:

10:07:53.888 [Thread-33] WARN o.c.frontend.fuse.ReadOnlyAdapter - read /"folder"/"file" failed, invalid file handle 73

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 22, 2023

after cryptomator freezing, trying to browse vault:
10:15:31.347 [Thread-35] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /"folder"/Contents failed, node not found

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 22, 2023

trying to lock vault (normally and forcefully) after it froze:


10:18:22.672 [Thread-35] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr / (lastModifiedTime: 2023-08-21T10:34:36.012133738Z, lastAccessTime: 2023-08-21T10:34:36.479205151Z, creationTime: 2023-05-12T21:52:12Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 576, fileKey: (dev=1000011,ino=11832710))
10:18:32.651 [App Background Thread 004] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: false).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="0">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)  data-linkindex="1">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)  data-linkindex="2">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="3">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="4">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="5">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="6">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="7">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 11 common frames omitted
10:18:32.676 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 2
10:19:31.610 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 1
10:19:31.620 [JavaFX Application Thread] DEBUG o.cryptomator.ui.lock.LockWorkflow - Lock of Myvault canceled.
10:19:31.621 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - start recording stats
10:19:47.406 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - stop recording stats
10:19:47.409 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - Start lock workflow for Myvault
10:19:57.419 [App Background Thread 003] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: false).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="8">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)  data-linkindex="9">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)  data-linkindex="10">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="11">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="12">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="13">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="14">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="15">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 11 common frames omitted
10:19:57.440 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 2
10:19:58.748 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 1
10:20:08.758 [App Background Thread 003] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: false).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="16">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)  data-linkindex="17">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)  data-linkindex="18">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="19">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="20">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="21">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="22">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="23">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="24">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="25">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 13 common frames omitted
10:20:08.771 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 2
10:21:51.105 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 1
10:22:01.119 [App Background Thread 003] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: false).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="26">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)  data-linkindex="27">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)  data-linkindex="28">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="29">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="30">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="31">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="32">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="33">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="34">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="35">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="36">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="37">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 15 common frames omitted
10:22:01.135 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 2
10:22:03.929 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 1
10:22:13.943 [App Background Thread 003] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: false).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="38">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)  data-linkindex="39">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:27)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)  data-linkindex="40">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:169)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="41">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="42">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="43">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="44">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="45">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="46">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="47">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="48">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="49">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="50">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="51">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 17 common frames omitted
10:22:13.956 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 2
10:23:40.951 [JavaFX Application Thread] DEBUG o.c.ui.fxapp.FxApplicationWindows - visible windows: 1
10:23:50.965 [App Background Thread 003] INFO o.cryptomator.ui.lock.LockWorkflow - Locking Myvault failed (forced: true).
org.cryptomator.integrations.mount.UnmountFailedException: java.util.concurrent.TimeoutException: `umount -f` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)  data-linkindex="52">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:47)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmountForced(MacMountedVolume.java:34)  data-linkindex="53">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmountForced(MacMountedVolume.java:34)
 at mailto:[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:167)  data-linkindex="54">[email protected]/org.cryptomator.common.vaults.Vault.lock(Vault.java:167)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)  data-linkindex="55">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:63)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="56">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="57">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="58">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="59">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="60">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="61">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)  data-linkindex="62">[email protected]/org.cryptomator.ui.lock.LockWorkflow.retryOrCancel(LockWorkflow.java:73)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)  data-linkindex="63">[email protected]/org.cryptomator.ui.lock.LockWorkflow.lock(LockWorkflow.java:66)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)  data-linkindex="64">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:57)
 at mailto:[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)  data-linkindex="65">[email protected]/org.cryptomator.ui.lock.LockWorkflow.call(LockWorkflow.java:34)
 at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.TimeoutException: `umount -f` timed out after 10s
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)  data-linkindex="66">[email protected]/org.cryptomator.frontend.fuse.mount.ProcessHelper.waitForSuccess(ProcessHelper.java:29)
 at mailto:[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)  data-linkindex="67">[email protected]/org.cryptomator.frontend.fuse.mount.MacMountedVolume.unmount(MacMountedVolume.java:40)
 ... 19 common frames omitted</div><br aria-hidden="true">

@Uj947nXmRqV2nRaWshKtHzTvckUUpD Uj947nXmRqV2nRaWshKtHzTvckUUpD changed the title saving to vault freezes cryptomator CRITICAL - saving to vault freezes cryptomator and hangs os Aug 22, 2023
@infeo infeo changed the title CRITICAL - saving to vault freezes cryptomator and hangs os Saving to vault freezes cryptomator and hangs os Aug 23, 2023
@infeo infeo changed the title Saving to vault freezes cryptomator and hangs os MacOS: Saving to vault freezes cryptomator and hangs os Aug 23, 2023
@infeo
Copy link
Member

infeo commented Aug 23, 2023

We tried to reproduce the problem with macOS 13.5.0 and fuse-t 1.0.27 but could not reproduce the issue. Will report back as soon as we updated our test system.

@fusionneur Are you using an Intel or an M1 mac? And is you vault located on the local storage or at some cloud sync location?

@infeo infeo added the state:awaiting-response We need further input from the issue author label Aug 23, 2023
@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Apple M1 Pro. vault is located on the local storage

@infeo infeo removed the state:awaiting-response We need further input from the issue author label Aug 28, 2023
@blackout314
Copy link

Apple M2 Pro. similar problem. I've installed fuse-t nothing change, unlock freeze os

@infeo
Copy link
Member

infeo commented Sep 5, 2023

@blackout314 You also need to select FUSE-T in the general preferences. Is this the case?

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

in my case it is selected

@blackout314
Copy link

in my case fuse-t selected

@ln8711
Copy link

ln8711 commented Sep 27, 2023

I have same issue, macbook m1 pro, fuse-t selected, vault is in Goolge Drive disk (available offline selected)

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Are there any other logs we can provide? For me, the app is still unusable in the current state on Mac, as it breaks even when saving a text file in vscode, freezing both cryptomator and vscode. System cannot be rebooted afterwards as cryptomator needs to be closed to do that, but to close it requires locking the vault which doesn't work even forcefully. This results in having to long press the power button to power off the mac, and start it anew.

Cryptomator latest version v1.10.1
Mac 13.6 Ventura

@macos-fuse-t
Copy link

@fusionneur, after the freeze

  1. attach the output of ps -ef | grep go-nfsv4
  2. if there are instances of go-nfsv4, try killing it with pkill -9 go-nfsv4. does this unfreeze the mac?
  3. attach fuse-t logs: ~/Library/Application\ Support/fuse-t/logs/nfsv4-go.log
  4. if a mac freezes there should be a crash report in Console app. try to locate the relevant one.

@ln8711
Copy link

ln8711 commented Sep 28, 2023

Hi @macos-fuse-t while waiting for @fusionneur I have some logs when it freezes on copying, only the copying is hanging, I still can tab out to other windows and typing it here:

lan-mbp:ansible lan$ ps -ef | grep go-nfsv4

  501  3214  3201   0  5:39AM ??         0:21.09 /usr/local/bin/go-nfsv4 --volname vault --rwsize=262144 /Users/lan/Library/Application Support/Cryptomator/mnt/vault
  501  3288  3254   0  5:43AM ttys000    0:00.00 grep go-nfsv4

Killing it causes Finder hang, can be forced quit but can't re-open finder
nfsv4-go.log spawn with these lines and repeat

time="2023-09-29T05:41:27+07:00" level=error msg="opSetattr: failed {12599 0}, mask [0 262144]"
time="2023-09-29T05:41:27+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:29+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:29+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:29+07:00" level=error msg="opSetattr: failed {12600 0}, mask [0 262144]"
time="2023-09-29T05:41:29+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:40+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:41+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:43+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:43+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:45+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:54+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:54+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:57+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:57+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:57+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:57+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:41:58+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=error msg="opSetattr: failed {12601 0}, mask [0 4456450]"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=warning msg="fuse listxattr returned error: -78"
time="2023-09-29T05:42:07+07:00" level=error msg="opSetattr: failed {12602 0}, mask [0 262144]"

Hope this helps

@macos-fuse-t
Copy link

-78 mean the operation is not implemented. it's not an error, while the other one is also similarly missing functionality. you should look for other errors. I suggest filtering those out with "cat ~/Library/Application\ Support/fuse-t/logs/nfsv4-go.log | grep -v listxattr" or attaching the whole log file

@ln8711
Copy link

ln8711 commented Sep 29, 2023

Here is the whole log file, I empty it before test run (before open cryptomator app)
Log file

@macos-fuse-t
Copy link

@ln8711 there's nothing in the logs to indicate a problem

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Oct 5, 2023

@fusionneur, after the freeze

  1. attach the output of ps -ef | grep go-nfsv4
  2. if there are instances of go-nfsv4, try killing it with pkill -9 go-nfsv4. does this unfreeze the mac?
  3. attach fuse-t logs: ~/Library/Application\ Support/fuse-t/logs/nfsv4-go.log
  4. if a mac freezes there should be a crash report in Console app. try to locate the relevant one.
  1. macuser@mac ~ % ps -ef | grep go-nfsv4
    15550819 1054 869 0 Mon10AM ?? 1:13.22 /usr/local/bin/go-nfsv4 --volname my vault --rwsize=262144 /Users/macuser/Cryptomator
    15550819 15379 34450 0 6:02PM ttys003 0:00.00 grep go-nfsv4

  2. trying to kill its pid (1054) doesn't do anything, but
    kill -9 1054 # however is able to end the process, resulting in a popup 'server connection interrupted: cryptomator", giving option to ignore or disconnect all. i tried disconnect all but didn't do anything, and still i wasn't able to lock/force lock the vault.
    But i was able to close the cryptomator window and answered yes when asked to lock and quit. Afterwards, I reopened cryptomator and this time the vault was locked, and offered option to unlock which DID NOT work, and was hanged loading the green circle. Then i again closed the cryptomator window and chose to lock and quit, but afterwards I wasn't able to open cryptomator again as clicking its shortcut won't do anything at all. I also tried to go in finder -> fuse-t (locations) and attempted disconnect which did nothing and it still showed "connected as: NFS".

I took one last look on ps -ef and there were several umount attempts and umount -f

At this point I attempted restart mac (reboot), which did nothing. But attempting to open random apps would not work anymore, dockbar freezing sometimes and the copying popup window to reappear. I also attempted shutdown but again did nothing other than popups like "you mac hasn't shut down because (eg.) terminal.app failed to quit. to continue shutting down, quit terminal.app. Attempted to force quit all open apps and pressed on the popup's retry (shutdown) button with no effect. More than half an hour passed, but couldn't recover or reboot so eventually turned mac off by power button long press (more than 5 sec or so)

  1. see attached nfsv4-go.log
    nfsv4-go.log

  2. mac itself does not freeze in the real sense of words, there is no crash report in console, and other apps work fine, but the copying window freezes (eg. now it froze trying to 43 small files ~ 5.9 MB in total) at around 40% of progress. i cannot stop the copying (remains stuck at "stopping" indefinitely ), but i can close the copying window but with no effect.

What's worth noting is that when this happens, any app using files from mounted vault cannot be closed gracefully (in my case visual studio code, cryptomator, keepassxc), nor forcefully immediately, but only after closing the copying window they eventually force quit (or mabe after some timeout passed instead). Also, crpytomator vault cannot be locked, nor force locked anymore, not even waiting a lot of time, resulting in os unable to reboot/shutdown and having to press the power button to forcefully turn it off.
see also 2. for more info on my experience

later edit: ! after reboot, i found my files copied on the vault however, and having the exact size on disk as the original source, which is quite interesting

@macos-fuse-t
Copy link

I can see from the logs that fuse Read operation fails quite a lot. It happens on the app side so we need more insights from the Cryptomator guys.

@macos-fuse-t
Copy link

After debugging a similar issue with another Cryptomator user, I believe that I found a root cause. A new version with a fix is available to download

@tobihagemann
Copy link
Member

As always, thank you, Alex! Out of curiosity, is this something that we could've/should've fixed on our side?

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Nov 2, 2023

After debugging a similar issue with another Cryptomator user, I believe that I found a root cause. A new version with a fix is available to download

is it fixed with:
https://github.com/macos-fuse-t/fuse-t/releases/tag/1.0.31 ?

where can we see the commits / source code?

@macos-fuse-t
Copy link

As always, thank you, Alex! Out of curiosity, is this something that we could've/should've fixed on our side?

Honestly I'm not sure, it was happening occasionally only on the user's machine with the similar errors to what was shared in this thread. I worked with the user who helped me to debug the issue. If I'll know more details, I'll share with you guys

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Jan 22, 2024

Last year cryptomator was crashing randomly on MacOS (Ventura). I didn't track to know exactly which update fixed it, but what i can tell is that it seems that these problems are not present anymore recently. REF on fuse-t macos-fuse-t/fuse-t#41
seems to have been some issue with fuse-t

@angloromanticism
Copy link

angloromanticism commented Sep 27, 2024

I am dealing with this now; I never got Fuse-T to work well on Mac with Cryptomator, but macFuse worked great.
Updating to Sequoia means MacFuse no longer works, and so Fuse-T is the only option: using it crashes Finder --and has made hard resets necessary-- when accessing a Google Drive. Opening or saving freezes cryptomator and Finder.

@tobihagemann
Copy link
Member

Updating to Sequoia means MacFuse no longer works

Are you sure? macFUSE still works for me.

Where did you get this information? In the last macFUSE update, the release notes even stated increased compatibility with macOS 15.

@angloromanticism
Copy link

Ah! you're right. I hadn't updated MacFuse, and that's working great. Phew

@pablott
Copy link

pablott commented Oct 1, 2024

Hello. I think I'm affected by the same issue. I have always used fuse-t mainly because it installs and runs in userland so I avoided the tedious installation procedure for macfuse. However, it has always been rather unstable, locking up frequently. I took the instability as a trade-off for the convenience.
Sadly, last issue escalated in severity. On Sep 29th I simply moved a folder inside another folder and it locked Finder. So I restart Finder and remount the vault. Then I could not copy, read or create dirs.

  • At this point I run a health check and a critical unfixable error was found. A dir file indicated zero size but data was expected.
CRITICAL - File ~/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r is empty, expected content
  • In the end I deleted this dir file and run the check again. An warning about orphan directories was shown, but it was fixable this time so I clicked on Fix.
  • On the third health check I got another warning but seem minor and I run the fix too.

The logs refer to that folder and there are multiple errors:

14:36:21.826 [Thread-10] WARN  o.c.c.dir.BrokenDirectoryFilter - Broken directory file: /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
java.io.IOException: Failed to load contents of directory file at path /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdProvider.load(DirectoryIdProvider.java:36)
	at [email protected]/org.cryptomator.cryptofs.CryptoPathMapper.resolveDirectory(CryptoPathMapper.java:173)
	at [email protected]/org.cryptomator.cryptofs.dir.BrokenDirectoryFilter.process(BrokenDirectoryFilter.java:31)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
	at java.base/java.util.stream.Streams$StreamBuilderImpl.tryAdvance(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
	at java.base/java.util.stream.Streams$StreamBuilderImpl.tryAdvance(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(Unknown Source)
	at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(Unknown Source)
	at java.base/java.util.Spliterators$1Adapter.hasNext(Unknown Source)
	at java.base/java.nio.file.Files$2.hasNext(Unknown Source)
	at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toList(Unknown Source)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyDirectoryHandler.readdir(ReadOnlyDirectoryHandler.java:65)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyAdapter.readdir(ReadOnlyAdapter.java:305)
	at [email protected]/org.cryptomator.jfuse.api.FuseOperationsDecorator.readdir(FuseOperationsDecorator.java:152)
	at [email protected]/org.cryptomator.jfuse.mac.FuseImpl.readdir(FuseImpl.java:204)
Caused by: java.io.UncheckedIOException: java.io.IOException: Invalid, empty directory file: /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:44)
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:17)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$3(LocalLoadingCache.java:183)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2688)
	at java.base/java.util.concurrent.ConcurrentHashMap.compute(Unknown Source)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2686)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2669)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:58)
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdProvider.load(DirectoryIdProvider.java:34)
	... 33 common frames omitted
Caused by: java.io.IOException: Invalid, empty directory file: /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:32)
	... 42 common frames omitted
14:36:21.831 [Thread-10] WARN  o.c.c.attr.CryptoBasicFileAttributes - Unable to calculate cleartext file size for /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../6I6OoqqA3A__rVlr-z9cgcJkjyY8ybpOIw==.c9r. Ciphertext size (including header): 0
14:36:21.839 [Thread-11] ERROR o.c.frontend.fuse.ReadOnlyAdapter - open /finance/banking/ROI/.DS_Store failed.
java.io.IOException: Unable to decrypt header of file /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../6I6OoqqA3A__rVlr-z9cgcJkjyY8ybpOIw==.c9r
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:78)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.initFileHeader(OpenCryptoFile.java:114)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.newFileChannel(OpenCryptoFile.java:76)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannelFromFile(CryptoFileSystemImpl.java:399)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannel(CryptoFileSystemImpl.java:367)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileChannel(CryptoFileSystemProvider.java:221)
	at java.base/java.nio.channels.FileChannel.open(Unknown Source)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFile.create(OpenFile.java:36)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFileFactory.open(OpenFileFactory.java:43)
	at [email protected]/org.cryptomator.frontend.fuse.ReadWriteFileHandler.open(ReadWriteFileHandler.java:51)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyFileHandler.open(ReadOnlyFileHandler.java:27)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyAdapter.open(ReadOnlyAdapter.java:326)
	at [email protected]/org.cryptomator.jfuse.api.FuseOperationsDecorator.open(FuseOperationsDecorator.java:112)
	at [email protected]/org.cryptomator.jfuse.mac.FuseImpl.open(FuseImpl.java:190)
Caused by: java.lang.IllegalArgumentException: Malformed ciphertext header
	at [email protected]/org.cryptomator.cryptolib.v2.FileHeaderCryptorImpl.decryptHeader(FileHeaderCryptorImpl.java:83)
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:72)
	... 13 common frames omitted
14:36:21.865 [Thread-12] ERROR o.c.frontend.fuse.ReadOnlyAdapter - open /finance/banking/.DS_Store failed.
java.io.IOException: Unable to decrypt header of file /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/NS/TOEN7QXZGPFPBXM4IUPLTO5NNWDK2X/v8EFxWuwO0Nfqw1FVG8pHP9OdWoQhleRQw==.c9r
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:78)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.initFileHeader(OpenCryptoFile.java:114)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.newFileChannel(OpenCryptoFile.java:76)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannelFromFile(CryptoFileSystemImpl.java:399)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannel(CryptoFileSystemImpl.java:367)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileChannel(CryptoFileSystemProvider.java:221)
	at java.base/java.nio.channels.FileChannel.open(Unknown Source)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFile.create(OpenFile.java:36)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFileFactory.open(OpenFileFactory.java:43)
	at [email protected]/org.cryptomator.frontend.fuse.ReadWriteFileHandler.open(ReadWriteFileHandler.java:51)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyFileHandler.open(ReadOnlyFileHandler.java:27)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyAdapter.open(ReadOnlyAdapter.java:326)
	at [email protected]/org.cryptomator.jfuse.api.FuseOperationsDecorator.open(FuseOperationsDecorator.java:112)
	at [email protected]/org.cryptomator.jfuse.mac.FuseImpl.open(FuseImpl.java:190)
Caused by: java.lang.IllegalArgumentException: Malformed ciphertext header
	at [email protected]/org.cryptomator.cryptolib.v2.FileHeaderCryptorImpl.decryptHeader(FileHeaderCryptorImpl.java:83)
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:72)
	... 13 common frames omitted
14:36:21.868 [Thread-8] ERROR o.c.frontend.fuse.ReadOnlyAdapter - open /finance/banking/.DS_Store failed.
java.io.IOException: Unable to decrypt header of file /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/NS/TOEN7QXZGPFPBXM4IUPLTO5NNWDK2X/v8EFxWuwO0Nfqw1FVG8pHP9OdWoQhleRQw==.c9r
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:78)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.initFileHeader(OpenCryptoFile.java:114)
	at [email protected]/org.cryptomator.cryptofs.fh.OpenCryptoFile.newFileChannel(OpenCryptoFile.java:76)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannelFromFile(CryptoFileSystemImpl.java:399)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.newFileChannel(CryptoFileSystemImpl.java:367)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileChannel(CryptoFileSystemProvider.java:221)
	at java.base/java.nio.channels.FileChannel.open(Unknown Source)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFile.create(OpenFile.java:36)
	at [email protected]/org.cryptomator.frontend.fuse.OpenFileFactory.open(OpenFileFactory.java:43)
	at [email protected]/org.cryptomator.frontend.fuse.ReadWriteFileHandler.open(ReadWriteFileHandler.java:51)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyFileHandler.open(ReadOnlyFileHandler.java:27)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyAdapter.open(ReadOnlyAdapter.java:326)
	at [email protected]/org.cryptomator.jfuse.api.FuseOperationsDecorator.open(FuseOperationsDecorator.java:112)
	at [email protected]/org.cryptomator.jfuse.mac.FuseImpl.open(FuseImpl.java:190)
Caused by: java.lang.IllegalArgumentException: Malformed ciphertext header
	at [email protected]/org.cryptomator.cryptolib.v2.FileHeaderCryptorImpl.decryptHeader(FileHeaderCryptorImpl.java:83)
	at [email protected]/org.cryptomator.cryptofs.fh.FileHeaderHolder.loadExisting(FileHeaderHolder.java:72)
	... 13 common frames omitted
14:36:21.888 [Thread-10] WARN  o.c.c.attr.CryptoBasicFileAttributes - Unable to calculate cleartext file size for /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../6I6OoqqA3A__rVlr-z9cgcJkjyY8ybpOIw==.c9r. Ciphertext size (including header): 0
14:36:24.185 [Thread-9] ERROR o.c.frontend.fuse.ReadOnlyAdapter - getattr failed.
java.io.IOException: Failed to load contents of directory file at path /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdProvider.load(DirectoryIdProvider.java:36)
	at [email protected]/org.cryptomator.cryptofs.CryptoPathMapper.resolveDirectory(CryptoPathMapper.java:173)
	at [email protected]/org.cryptomator.cryptofs.CryptoPathMapper.getCiphertextDir(CryptoPathMapper.java:165)
	at [email protected]/org.cryptomator.cryptofs.attr.AttributeProvider.getCiphertextPath(AttributeProvider.java:56)
	at [email protected]/org.cryptomator.cryptofs.attr.AttributeProvider.readAttributes(AttributeProvider.java:45)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemImpl.readAttributes(CryptoFileSystemImpl.java:255)
	at [email protected]/org.cryptomator.cryptofs.CryptoFileSystemProvider.readAttributes(CryptoFileSystemProvider.java:296)
	at java.base/java.nio.file.Files.readAttributes(Unknown Source)
	at [email protected]/org.cryptomator.frontend.fuse.ReadOnlyAdapter.getattr(ReadOnlyAdapter.java:204)
	at [email protected]/org.cryptomator.jfuse.api.Fuse$MountProbeObserver.getattr(Fuse.java:210)
	at [email protected]/org.cryptomator.jfuse.mac.FuseImpl.getattr(FuseImpl.java:154)
Caused by: java.io.UncheckedIOException: java.io.IOException: Invalid, empty directory file: /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:44)
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:17)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$3(LocalLoadingCache.java:183)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2688)
	at java.base/java.util.concurrent.ConcurrentHashMap.compute(Unknown Source)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2686)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2669)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
	at com.github.benmanes.caffeine/com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:58)
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdProvider.load(DirectoryIdProvider.java:34)
	... 10 common frames omitted
Caused by: java.io.IOException: Invalid, empty directory file: /Users/XXXX/Library/CloudStorage/Dropbox/documents-CM/d/7O/55NVFS.../UG8L0....c9r/dir.c9r
	at [email protected]/org.cryptomator.cryptofs.DirectoryIdLoader.load(DirectoryIdLoader.java:32)
	... 19 common frames omitted

At this point I lost the data inside that folder. Is not recoverable. Fortunately I could recover a backup an update the changes. But this is very concerning. I use CM on my most valuable data so seeing this happen lowers my trust in it.
I'm not sure if it is due to latest fuse-t version or Sequoia, but the dates and experiences of other users match mine.

@pablott
Copy link

pablott commented Oct 1, 2024

fuse-t version:

==> fuse-t: 1.0.42
https://github.com/macos-fuse-t/fuse-t
Installed
/opt/homebrew/Caskroom/fuse-t/1.0.42 (19.5MB)

@pablott
Copy link

pablott commented Oct 1, 2024

I understand that CM considers fuse-t experimental. From the time being I will use macfuse.

@infeo
Copy link
Member

infeo commented Oct 21, 2024

Due to further problems with macOS 15, we are interested in the new SMB backend of FUSE-T for ARM Macs (M1 to M3 processors). First tests showed promising results, but we don't have the resources currently for extensive tests. If you want to help Cryptomator, switch to the SMB backend (described here: #3569 (comment)) and report your experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mount:fuse os:mac type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants