Unlock failed see log file for details (One Drive)


#1

Hi, I’ve been using Cryptomator for a few months and think its great, but in the last couple of days I cant get into my vault on Windows 10. I can access the vault (which is on OneDrive) via the android app, but i get the below error log - can anyone help / point me as to why its not working?

15:16:08.647 [main] INFO  org.cryptomator.launcher.Cryptomator - Starting Cryptomator 1.3.1 on Windows 10 10.0 (amd64)
15:16:09.111 [JavaFX Application Thread] INFO  o.c.launcher.MainApplication - JavaFX application started.
15:16:09.253 [JavaFX Application Thread] INFO  o.c.common.settings.SettingsProvider - Failed to load settings, creating new one.
15:16:09.697 [JavaFX Application Thread] INFO  org.cryptomator.jni.JniModule - loaded WinFunctions.dll
15:16:10.838 [pool-4-thread-1] INFO  o.c.ui.controllers.WelcomeController - Current version: 1.3.1, lastest version: 1.3.1
15:16:50.567 [JavaFX Application Thread] INFO  org.eclipse.jetty.util.log - Logging initialized @42410ms to org.eclipse.jetty.util.log.Slf4jLog
15:16:50.682 [JavaFX Application Thread] INFO  o.c.frontend.webdav.WebDavServer - Binding server socket to 127.0.0.1:42427
15:16:50.703 [JavaFX Application Thread] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@7ee7e6a5{HTTP/1.1,[http/1.1]}{127.0.0.1:42427}
15:16:50.907 [JavaFX Application Thread] INFO  o.c.k.WindowsProtectedKeychainAccess - Creating new keychain at path C:\Users\james\AppData\Roaming\Cryptomator\keychain.json
15:16:51.713 [pool-3-thread-1] INFO  o.c.common.settings.SettingsProvider - Settings saved to C:\Users\james\AppData\Roaming\Cryptomator\settings.json
15:17:00.236 [JavaFX Application Thread] ERROR o.c.ui.controllers.UnlockController - Unlock failed for technical reasons.
java.nio.file.AccessDeniedException: C:\Users\james\OneDrive\PersonalArchive\masterkey.cryptomator.bkup
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
	at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165)
	at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278)
	at java.nio.file.Files.copy(Files.java:1274)
	at org.cryptomator.cryptofs.CryptoFileSystemModule.lambda$provideCryptor$0(CryptoFileSystemModule.java:37)
	at org.cryptomator.cryptofs.UncheckedThrows$2.from(UncheckedThrows.java:58)
	at org.cryptomator.cryptofs.CryptoFileSystemModule.provideCryptor(CryptoFileSystemModule.java:31)
	at org.cryptomator.cryptofs.CryptoFileSystemModule_ProvideCryptorFactory.get(CryptoFileSystemModule_ProvideCryptorFactory.java:42)
	at org.cryptomator.cryptofs.CryptoFileSystemModule_ProvideCryptorFactory.get(CryptoFileSystemModule_ProvideCryptorFactory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at org.cryptomator.cryptofs.CryptoFileSystemImpl_Factory.get(CryptoFileSystemImpl_Factory.java:121)
	at org.cryptomator.cryptofs.CryptoFileSystemImpl_Factory.get(CryptoFileSystemImpl_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at org.cryptomator.cryptofs.DaggerCryptoFileSystemProviderComponent$CryptoFileSystemComponentImpl.cryptoFileSystem(DaggerCryptoFileSystemProviderComponent.java:283)
	at org.cryptomator.cryptofs.CryptoFileSystems.lambda$null$0(CryptoFileSystems.java:37)
	at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
	at org.cryptomator.cryptofs.CryptoFileSystems.lambda$create$1(CryptoFileSystems.java:30)
	at org.cryptomator.cryptofs.UncheckedThrows$1.from(UncheckedThrows.java:38)
	at org.cryptomator.cryptofs.CryptoFileSystems.create(CryptoFileSystems.java:30)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:274)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:88)
	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326)
	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:124)
	at org.cryptomator.ui.model.Vault.unlockCryptoFileSystem(Vault.java:98)
	at org.cryptomator.ui.model.Vault.lambda$getCryptoFileSystem$0(Vault.java:89)
	at org.cryptomator.common.LazyInitializer.lambda$invokeFactoryIfNull$1(LazyInitializer.java:62)
	at java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:179)
	at org.cryptomator.common.LazyInitializer.initializeLazily(LazyInitializer.java:49)
	at org.cryptomator.ui.model.Vault.getCryptoFileSystem(Vault.java:89)
	at org.cryptomator.ui.model.Vault.unlock(Vault.java:121)
	at org.cryptomator.ui.controllers.UnlockController.lambda$didClickUnlockButton$0(UnlockController.java:349)
	at org.cryptomator.ui.util.AsyncTaskService.lambda$asyncTaskOf$0(AsyncTaskService.java:43)
	at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$null$6(AsyncTaskService.java:106)
	at org.cryptomator.ui.util.AsyncTaskService.logExceptions(AsyncTaskService.java:135)
	at org.cryptomator.ui.util.AsyncTaskService.access$100(AsyncTaskService.java:24)
	at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$run$7(AsyncTaskService.java:104)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
15:18:07.948 [JavaFX Application Thread] ERROR o.c.ui.controllers.UnlockController - Unlock failed for technical reasons.
java.nio.file.AccessDeniedException: C:\Users\james\OneDrive\PersonalArchive\masterkey.cryptomator.bkup
	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
	at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165)
	at sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278)
	at java.nio.file.Files.copy(Files.java:1274)
	at org.cryptomator.cryptofs.CryptoFileSystemModule.lambda$provideCryptor$0(CryptoFileSystemModule.java:37)
	at org.cryptomator.cryptofs.UncheckedThrows$2.from(UncheckedThrows.java:58)
	at org.cryptomator.cryptofs.CryptoFileSystemModule.provideCryptor(CryptoFileSystemModule.java:31)
	at org.cryptomator.cryptofs.CryptoFileSystemModule_ProvideCryptorFactory.get(CryptoFileSystemModule_ProvideCryptorFactory.java:42)
	at org.cryptomator.cryptofs.CryptoFileSystemModule_ProvideCryptorFactory.get(CryptoFileSystemModule_ProvideCryptorFactory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at org.cryptomator.cryptofs.CryptoFileSystemImpl_Factory.get(CryptoFileSystemImpl_Factory.java:121)
	at org.cryptomator.cryptofs.CryptoFileSystemImpl_Factory.get(CryptoFileSystemImpl_Factory.java:11)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
	at org.cryptomator.cryptofs.DaggerCryptoFileSystemProviderComponent$CryptoFileSystemComponentImpl.cryptoFileSystem(DaggerCryptoFileSystemProviderComponent.java:283)
	at org.cryptomator.cryptofs.CryptoFileSystems.lambda$null$0(CryptoFileSystems.java:37)
	at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
	at org.cryptomator.cryptofs.CryptoFileSystems.lambda$create$1(CryptoFileSystems.java:30)
	at org.cryptomator.cryptofs.UncheckedThrows$1.from(UncheckedThrows.java:38)
	at org.cryptomator.cryptofs.CryptoFileSystems.create(CryptoFileSystems.java:30)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:274)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:88)
	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326)
	at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276)
	at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:124)
	at org.cryptomator.ui.model.Vault.unlockCryptoFileSystem(Vault.java:98)
	at org.cryptomator.ui.model.Vault.lambda$getCryptoFileSystem$0(Vault.java:89)
	at org.cryptomator.common.LazyInitializer.lambda$invokeFactoryIfNull$1(LazyInitializer.java:62)
	at java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:179)
	at org.cryptomator.common.LazyInitializer.initializeLazily(LazyInitializer.java:49)
	at org.cryptomator.ui.model.Vault.getCryptoFileSystem(Vault.java:89)
	at org.cryptomator.ui.model.Vault.unlock(Vault.java:121)
	at org.cryptomator.ui.controllers.UnlockController.lambda$didClickUnlockButton$0(UnlockController.java:349)
	at org.cryptomator.ui.util.AsyncTaskService.lambda$asyncTaskOf$0(AsyncTaskService.java:43)
	at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$null$6(AsyncTaskService.java:106)
	at org.cryptomator.ui.util.AsyncTaskService.logExceptions(AsyncTaskService.java:135)
	at org.cryptomator.ui.util.AsyncTaskService.access$100(AsyncTaskService.java:24)
	at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$run$7(AsyncTaskService.java:104)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)

Cannot open Storage- Entsperren fehlgeschlagen
#2

Please check out this topic: Cannot open Storage- Entsperren fehlgeschlagen

It seems to be the identical issue.


#3

I’ve updated windows and uninstalled and reinstalled onedrive but I still have the same error.

OneDrive build 17.3.6998.0830


#4

I have also just tried to create a new vault on onedrive and its stating that I don’t have the permissions.

I can create and save files in onedrive outside of Cryptomator, so I think this issue is in Cryptomator


#5

Can anyone help with this? i’d like to transfer from Boxcryptor to Cryptomator, but if i cant get it to work, i’ll have no choice but to stay with Boxcryptor


#6

Hi,

I have the same issue with Ubuntu 16.04 and Google Drive: java.nio.file.AccessDeniedException: /home/xxx/yyy/zzz/masterkey.cryptomator.bkup


#7

If I copy the folder elsewhere (out of the Google Drive folder) and if a add it as a new vault, I can open it again.


#8

Sorry for the spam, I investigated a little bit. The problem actually only happens when I try to open a vault created by someone else OR created by myself and then opened and closed by someone else. In both cases, when I check in Google Drive online version, the “Owner” of the masterkey.cryptomator.bkup will be (or will be changed to be) someone else. If I copy the file/rename it and delete the original one then I’ll be the Owner of masterkey.cryptomator.bkup and then I’m able to open the vault again.

[actually, simply deleting the .bkup file has the same result]


#9

Late addition here - I inadvertently caused this error myself when I activated Windows 10’s “Controlled folder access” feature. This restricted Cryptomator’s access to the secret key, etc. within the vault.

Windows Controlled folder access

Can block access to slews of apps attempting to access items found within the user directory, etc.

Primary solution:

Add Cryptomator.exe to Controlled folder access' exclusions list

Steps:

  • Perform a start-menu search for “Ransomware protection”, then clicking it to open its settings page
  • Select “Allow an app through Controlled folder access”
  • Select “+ Add an allowed app”, then “Browse all apps”
  • Browse to %ProgramFiles%\Cryptomator and double click Cryptomator.exe to add it to Controlled folder access’ exclusions list