Error adding masterkey key to vault - Dokany

I upgraded windows 11 and installed cryptomator 1.5.17 with Sync-Mega. I downloaded the backup normally to the PC and used the masterkey key and everything worked OK! The problem started was when renaming the folder “d” wrongly. At the same time he lost synchronization with mega! I thought I did something wrong. I went on the site of mega.io and checked and everything was there the files, more carelessly at the time of cleaning the mega recycle bin I ended up deleting files and I was 13giga with 7giga in the cloud.
when I went to look at the folder on my PC I had deleted too! because as I said I was no longer synchronizing because I renamed the folder name. More like I had the masterkey key I thought just install the vault again and I will be able to recover those lost files and send again to Mega Cloud. Only every time I try to use the masterkey key the error pops up!

    " An unexpected error has occurred! "
java.nio.file.NoSuchFileException: C:\Users\diego\Desktop: Not a vault directory
	at org.cryptomator.common.vaults.VaultListManager.add(VaultListManager.java:57)
	at org.cryptomator.ui.addvaultwizard.ChooseExistingVaultController.chooseFileAndNext(ChooseExistingVaultController.java:81)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:76)
	at jdk.internal.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:273)
	at com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:83)
	at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1859)
	at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1729)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Node.fireEvent(Node.java:8889)
	at javafx.scene.control.Button.fire(Button.java:203)
	at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:208)
	at com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274)
	at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Scene$MouseHandler.process(Scene.java:3856)
	at javafx.scene.Scene.processMouseEvent(Scene.java:1851)
	at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2584)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:409)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:299)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:447)
	at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:412)
	at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:446)
	at com.sun.glass.ui.View.handleMouseEvent(View.java:556)
	at com.sun.glass.ui.View.notifyMouse(View.java:942)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
	at java.base/java.lang.Thread.run(Unknown Source)

Debug LOG

Please check your vault path. Cryptomator thinks that „desktop“ is your vault and expects the Masterkey file and the folder „d“ in your desktop folder.
And as it cannot find them there, the given error pops up.

I am pretty sure the configured path to your vault is wrong.

I lost the folder “d” was deleted accidentally. I manage to recover all the encrypted files. But I don’t know how to make it work again, to create this folder “d” again.

Create a folder that is named after your vault and place it anywhere. Let’s say c:/somefolder/myvault.
Then create a folder „d“ in „myvault“.
Place all files and folder of your former deleted vault „d“ in it.
Place the Masterkey file in the folder „myvault“.
Open the app, select „add existing vault“, select the Masterkey file and pray that really all encrypted files and folders are restored correctly. Otherwise your vault will show as empty or just some of the files are there.

See vault structure in documentation (the box right after „Becomes a ciphertext directory structure like this“)

I personally do not recommend this as there is a lot of potential to mess up the vault structure.
Asumeing you have backups of your unencrypted files, I would recommend to create a new vault and start from beginning.

It didn’t work unfortunately, I manage to open the safe! and the result was empty folder. I only have the encrypted files. I don’t know what to do now.

If you do not have a backup (either of your vault or your unencrypted files), I’m afraid you lost your files.

I have the backup of the safe, I have the masterkey key too and the files encrypted. I’m just not being able to decrypt the files. Just had no but the folder ‘d’ that had been deleted. When I created a new ‘d’ folder with the masterkey key and the backup together. Every time you open an empty folder in the vault. I reinstalled the machine from scratch Windows 11 and still continued the folder “d” that had created earlier, so it was at the roots of the pc.

with the backup key can I decrypt the files?

I’m not quiet sure if I understood it correctly but you have a backup of the vault folder? With vault folder I mean the folder with the name of the vault including the masterkey.cryptomator-file and the d-folder. If so there should be no problem by restoring both (all files and folders of the d-folder and the masterkey-file) everything should work again. If you lost the masterkey-file but still have the recovery key you’re fine too. If you lost the d-folder nothing can be done as the d-folder contains all the encrypted data and obviously with key-material you cannot restore the complete content (data) of the vault.

So the first question is, did you have a backup of the d-folder or did you created a new empty folder or incomplete one?

Main Folder ‘d’ Was accidentally deleted after downloading from cloud on pc. I used a program and recovered the encrypted files inside my pc. What I have at the moment is - (Masterkey Key, Masterkey.criptomator.bkup, vault password and the encrypted files.) The question is, can I decrypt with these keys along with the encrypted files? Or there is no way out because a main ‘d’ mass has been deleted. Would there be a way to try to remount a folder using the backup key?

Sorry but I still have not yet fully got it :sweat_smile:

What exactly did you recovered? All files and folders including those inside the d-folder or what exactly?

If you have the masterkey-file or the recovery key and the encrypted files inside the d-folder you’re fine.

Depending on the first question as the encrypted files are placed in this d-folder.

As I understand you still have a valid masterkey-file, then those backup keys doesn’t bring you a benefit as they just backup the crypto-keys where you already have “the latest version”.

Ok, when I say that I recovered the encrypted files, I mean everything that has the
extension (c9r). Now in the matter of recovering the specific folder ’ d ’ I didn’t try to look for it inside the pc when recovering the files.

The main recovery key I have! the encrypted files was recovered one by one inside its folder. What I didn’t remember was to retrieve the specific ‘d’ folder. Because the search focused on files ( c9r ).

The recovery keys I have are the core of the core files. (Old Backup Keys).

These are the keys I have! I put the files in a new ‘d’ folder to try to decrypt and open the vault. The vault only opens with the empty folder. Since it contains encrypted files inside.

Thanks for the explanations.

Can you please open the d-folder where the recovered .c9r-files are located. Are the folder structure similar to the following (not exactly but similar):

.
├─ d
│  ├─ BZ
│  │  └─ R4VZSS5PEF7TU3PMFIMON5GJRNBDWA
│  │     ├─ 5TyvCyF255sRtfrIv**83ucADQ==.c9r
│  │     ├─ FHTa55bH*sUfVDbEb0gTL9hZ8nho.c9r
│  │     │  └─ dir.c9r
│  │     └─ ...
│  └─ FC
│     └─ ZKZRLZUODUUYTYA4457CSBPZXB5A77
│        └─ ...

That’s how the recovery folder, the folder ‘d’ was the one i created and put the files inside.





Hmm, the structure looks basically good.

Can you please enable debug mode, try to unlock this vault and send me the log file? With debug mode enabled, the paths of all files you encrypted are stored in the log file so please make sure that this is not a problem for you or censor them.

Look at the file log.

cryptomator0.log (39.9 KB)

Thanks for the log file. Can you please check using the file explorer what inside this folder is C:\Users\[username]\Documents\Backup\Arquivos Confidencial\d\TB\IRKA7VOCLN2BM3QBS22TNWC6FQXHIX\y4zx9x_bxFXyYVxuNTBtBqej2xSvyFMDStgBtPLOCEUk.c9r ?

There’s nothing in that specific folder, it’s empty!

I put a file in this specific folder and manage to decrypt 2 files. ( dir.c9r )


Get another file to open another folder, these are the first 2 folders i started before i got to my files.



only get for now these 2 folders.

© 2021 Skymatic GmbH • Privacy PolicyImpressum