Hi, I use Cryptomator on Linux and Windows.
The access with Linux works fine but the vault does not open under windows. I can not open the Vault on Windows with Dokany - only WebDAV works (see below for the logging with dokany).
I am not really sure if it is the dokany driver version or the mixed access with Linux/Windows. (same result with sync with Dropbox or pCloud).
Now I have the question: What is the disadvantage of using WebDAV?
Configuration:
Cryptomator 1.5.17
Linux Mint 20.2, FUSE
Windows 10, Dokany 1.5.0.3000
Debug Logging on with Windows access to the vault fails:
06:26:18.333 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - stop recording stats
06:26:18.334 [JavaFX Application Thread] DEBUG o.c.ui.launcher.AppLifecycleListener - Allow quitting without prompt: false
06:26:18.340 [JavaFX Application Thread] DEBUG o.cryptomator.ui.fxapp.FxApplication - Start unlock workflow for Test
06:26:21.297 [JavaFX Application Thread] TRACE o.c.ui.unlock.UnlockController - UnlockController.unlock()
06:26:21.300 [App Background Thread 006] DEBUG o.cryptomator.cryptofs.ReadonlyFlag - Vault opened for read and write.
06:26:21.533 [App Background Thread 006] DEBUG o.c.c.common.MasterkeyBackupHelper - Verified backup file: L:\Dropbox\Test\masterkey.cryptomator.B3FB3D7E.bkup
06:26:21.536 [App Background Thread 006] DEBUG o.c.frontend.dokany.MountFactory - Mounting on J:\: ...
06:26:21.536 [App Background Thread 006] INFO com.dokany.java.DokanyMount - Dokany API/driver version: 150 / 0
06:26:21.539 [dokanMount-4-main] INFO org.cryptomator.common.vaults.Vault - Unmounted vault 'Test'
06:26:21.539 [dokanMount-4-main] TRACE org.cryptomator.common.vaults.Vault - Trying to close associated CryptoFS...
06:26:21.539 [dokanMount-4-main] WARN org.cryptomator.common.vaults.Vault - Unexpected unmount and lock of vault Test
com.dokany.java.DokanyException: DokanMain returned error code-4: Dokan mount failed - Driver answer that something is wrong.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
at java.base/java.lang.Thread.run(Unknown Source)
06:26:21.539 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - stop recording stats
06:26:21.540 [JavaFX Application Thread] DEBUG o.c.ui.launcher.AppLifecycleListener - Allow quitting without prompt: true
06:26:44.037 [App Background Thread 006] ERROR o.c.frontend.dokany.MountFactory - Mounting failed.
com.dokany.java.DokanyException: DokanMain returned error code-4: Dokan mount failed - Driver answer that something is wrong.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
at java.base/java.lang.Thread.run(Unknown Source)
06:26:44.037 [App Background Thread 006] TRACE org.cryptomator.common.vaults.Vault - Trying to close associated CryptoFS...
06:26:44.038 [JavaFX Application Thread] INFO o.c.ui.unlock.UnlockWorkflow - Unlock of 'Test' failed.
06:26:44.038 [JavaFX Application Thread] ERROR o.c.ui.unlock.UnlockWorkflow - Unlock failed for technical reasons.
org.cryptomator.common.vaults.Volume$VolumeException: Unable to mount Filesystem
at org.cryptomator.common.vaults.DokanyVolume.mount(DokanyVolume.java:48)
at org.cryptomator.common.vaults.Vault.unlock(Vault.java:151)
at org.cryptomator.ui.unlock.UnlockWorkflow.attemptUnlock(UnlockWorkflow.java:100)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:81)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:44)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.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: org.cryptomator.frontend.dokany.DokanyMountFailedException: Error while mounting.
at org.cryptomator.frontend.dokany.MountFactory.mount(MountFactory.java:130)
at org.cryptomator.frontend.dokany.MountFactory.mount(MountFactory.java:116)
at org.cryptomator.common.vaults.DokanyVolume.mount(DokanyVolume.java:43)
... 11 common frames omitted
Caused by: com.dokany.java.DokanyException: DokanMain returned error code-4: Dokan mount failed - Driver answer that something is wrong.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
... 1 common frames omitted
06:26:44.061 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultState - Failed transiting into state PROCESSING: Expected state was notLOCKED.
06:27:37.719 [JavaFX Application Thread] DEBUG
Thanx for the hint with the installation.
I uninstalled and installed Dokany again. Does not work.
Now I used the Dokany Setup.exe instead of the msi-package.
This works! - The msi-Installation did not work.
Here’s the same problem. Windows 10, Cryptomator 1.5.17, Dokany 150.
Cryptomator worked fine in version 1.5.16 (or 15,… didn’t remember). After the upgrade to 1.5.17 I get these exceptions when trying to mount a vault using dokany:
12:10:00.511 [main] INFO org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.5.17 on Windows 10 10.0 (amd64)
12:10:00.524 [main] DEBUG org.cryptomator.logging.DebugMode - Debug mode enabled
12:10:00.525 [main] DEBUG org.cryptomator.launcher.IpcFactory - [Client] Reading IPC port from C:\Users\XXXXXX\AppData\Roaming\Cryptomator\ipcPort.bin
12:10:00.525 [main] DEBUG org.cryptomator.launcher.IpcFactory - [Client] Connecting to port 63988...
12:10:01.147 [main] DEBUG org.cryptomator.launcher.IpcFactory - [Client] Failed to connect.
12:10:01.193 [main] DEBUG org.cryptomator.launcher.IpcFactory - [Server] Wrote IPC port 65420 to C:\Users\XXXXXX\AppData\Roaming\Cryptomator\ipcPort.bin
12:10:01.196 [main] DEBUG o.c.launcher.IpcProtocolImpl - Received launch args:
12:10:01.197 [main] DEBUG org.cryptomator.launcher.Cryptomator - Did not find running application instance. Launching GUI...
12:10:01.447 [main] DEBUG o.c.ui.traymenu.TrayIconController - initialized tray icon
12:10:01.453 [main] DEBUG o.cryptomator.ui.launcher.UiLauncher - Showing application...
12:10:01.457 [main] DEBUG org.cryptomator.common.CommonsModule - Starting App Background Thread 001
12:10:01.457 [App Background Thread 001] DEBUG o.c.ui.launcher.FxApplicationStarter - Starting JavaFX runtime...
12:10:01.462 [main] DEBUG org.cryptomator.common.CommonsModule - Starting App Background Thread 002
12:10:02.113 [JavaFX Application Thread] INFO o.c.ui.launcher.FxApplicationStarter - JavaFX Runtime started.
12:10:02.336 [JavaFX Application Thread] TRACE o.cryptomator.ui.fxapp.FxApplication - FxApplication.start()
12:10:03.170 [JavaFX Application Thread] DEBUG org.cryptomator.ui.common.FontLoader - Loaded family: Font Awesome 5 Free Solid
12:10:03.199 [JavaFX Application Thread] DEBUG o.c.u.m.MainWindowTitleController - init MainWindowTitleController
12:10:03.435 [JavaFX Application Thread] DEBUG o.c.u.m.MainWindowController - init MainWindowController
12:10:03.536 [JavaFX Application Thread] DEBUG o.cryptomator.ui.fxapp.FxApplication - has visible stages: true
12:10:04.400 [JavaFX Application Thread] DEBUG o.cryptomator.ui.fxapp.FxApplication - Showing MainWindow
12:10:06.644 [JavaFX Application Thread] DEBUG o.c.w.k.WindowsProtectedKeychainAccess - Attempting to load keychain from C:\Users\XXXXXX\AppData\Roaming\Cryptomator\keychain.json
12:10:08.057 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - stop recording stats
12:10:08.062 [JavaFX Application Thread] DEBUG o.c.ui.launcher.AppLifecycleListener - Allow quitting without prompt: false
12:10:08.074 [JavaFX Application Thread] DEBUG org.cryptomator.common.CommonsModule - Starting App Background Thread 003
12:10:08.074 [JavaFX Application Thread] DEBUG o.cryptomator.ui.fxapp.FxApplication - Start unlock workflow for XXXXXX
12:10:08.104 [App Background Thread 003] DEBUG o.cryptomator.cryptofs.ReadonlyFlag - Vault opened for read and write.
12:10:08.372 [App Background Thread 003] DEBUG o.c.c.common.MasterkeyBackupHelper - Verified backup file: C:\Users\XXXXXX\XXXXXX\masterkey.cryptomator.5BC91A2C.bkup
12:10:08.542 [App Background Thread 003] DEBUG o.c.frontend.dokany.MountFactory - Mounting on K:\: ...
12:10:08.586 [App Background Thread 003] INFO com.dokany.java.DokanyMount - Dokany API/driver version: 150 / 0
12:10:08.605 [dokanMount-1-main] INFO org.cryptomator.common.vaults.Vault - Unmounted vault 'XXXXXX'
12:10:08.605 [dokanMount-1-main] TRACE org.cryptomator.common.vaults.Vault - Trying to close associated CryptoFS...
12:10:08.607 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultStats - stop recording stats
12:10:08.608 [JavaFX Application Thread] DEBUG o.c.ui.launcher.AppLifecycleListener - Allow quitting without prompt: true
12:10:08.611 [dokanMount-1-main] WARN org.cryptomator.common.vaults.Vault - Unexpected unmount and lock of vault XXXXX
com.dokany.java.DokanyException: DokanMain returned error code-3: Dokan mount failed - Cannot install driver.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
at java.base/java.lang.Thread.run(Unknown Source)
12:10:31.083 [App Background Thread 003] ERROR o.c.frontend.dokany.MountFactory - Mounting failed.
com.dokany.java.DokanyException: DokanMain returned error code-3: Dokan mount failed - Cannot install driver.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
at java.base/java.lang.Thread.run(Unknown Source)
12:10:31.083 [App Background Thread 003] TRACE org.cryptomator.common.vaults.Vault - Trying to close associated CryptoFS...
12:10:31.084 [JavaFX Application Thread] INFO o.c.ui.unlock.UnlockWorkflow - Unlock of 'XXXXXX' failed.
12:10:31.085 [JavaFX Application Thread] ERROR o.c.ui.unlock.UnlockWorkflow - Unlock failed for technical reasons.
org.cryptomator.common.vaults.Volume$VolumeException: Unable to mount Filesystem
at org.cryptomator.common.vaults.DokanyVolume.mount(DokanyVolume.java:48)
at org.cryptomator.common.vaults.Vault.unlock(Vault.java:151)
at org.cryptomator.ui.unlock.UnlockWorkflow.attemptUnlock(UnlockWorkflow.java:100)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:81)
at org.cryptomator.ui.unlock.UnlockWorkflow.call(UnlockWorkflow.java:44)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.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: org.cryptomator.frontend.dokany.DokanyMountFailedException: Error while mounting.
at org.cryptomator.frontend.dokany.MountFactory.mount(MountFactory.java:130)
at org.cryptomator.frontend.dokany.MountFactory.mount(MountFactory.java:116)
at org.cryptomator.common.vaults.DokanyVolume.mount(DokanyVolume.java:43)
... 11 common frames omitted
Caused by: com.dokany.java.DokanyException: DokanMain returned error code-3: Dokan mount failed - Cannot install driver.
at com.dokany.java.DokanyMount.lambda$mount$2(DokanyMount.java:98)
... 1 common frames omitted
12:10:31.127 [JavaFX Application Thread] DEBUG o.c.common.vaults.VaultState - Failed transiting into state PROCESSING: Expected state was notLOCKED.
12:10:40.357 [JavaFX Application Thread] DEBUG o.c.f.fuse.mount.WindowsMounter - Failed to find a WinFsp installation; that's only a problem if you want to use FUSE on Windows. Exception text: "Can't find winfsp library. Please make sure that winfsp is installed or configure the path to dll manually using the `jnrfuse.winfsp.path` property"
12:10:40.507 [JavaFX Application Thread] DEBUG o.cryptomator.ui.fxapp.FxApplication - Showing Preferences
I uninstalled cryptomator and dokany several times always with reboot and check, whether the dokany files in c:\windows are away. I unistalled dokany and installed it using the dokany setup exe. Nothing helps. Right now I’m using the WebDAV option. But would be nice to have this fixed.