Open viendocraz opened 1 year ago
This is no longer an issue. I am not sure what did or didn't make a difference but leaving some further info in case it helps anyone.
I think this occurred because I moved to a different server but kept the same domain. I also upgraded the desktop client (Windows 10) from v3.4.2 to v3.8.1. I am pretty sure I deleted the data folder here too: C:\Users\<USER NAME>\AppData\Roaming\Nextcloud
. On Android I cleared cache and data before uninstalling and reinstalling the app to whatever the latest version on Fdroid was. I think I should have known there was a problem because the mnemonic on the desktop was the same as with the previous server. In hindsight I should have expected a new mnemonic as it was a new server installation. Something must have hung around on my desktop to make the client think this was the correct mnemonic.
All of this seems to have caused the problem described above.
What I did subsequently is..
<PATH TO NEXTCLOUD>/config/config.php
and then deleted the nextcloud
directory.nextcloud
directory.v3.8.1
and then deleted the following dirs:
C:\Users\<USER NAME>\AppData\Roaming\Nextcloud
; andC:\Users\<USER NAME>\AppData\Local\Nextcloud
v3.4.2
on the Desktop instead of the latest version (restarting the machine after uninstalling and installing) (again, I'm not sure what made or didn't make a difference, perhaps the latest version works fine)config.php
file that had been newly generated from the installation (as it has some bits that are unique to a new installation like instanceid
, passwordsalt
, secret
etc.) and pasted in all my usual config below it from the backed up version.Hope this helps..
Re-opening as the issue has appeared on a different device (Windows PC). Again it used to access the old server location. Therefore before trying to access with the Nextcloud Desktop client I deleted the app data folders (named Nextcloud
in local
and roaming
). I did not uninstall. On starting the client and setting everything up again, the old mnemonic from the old server was still present. Therefore this is still a problem.
How can I reset the situation on the server so that the old mnemonic./key no longer shows?
What can I do on the Desktop client to delete all traces of the mnemonic/key when moving server?
Leaving this here as it may help others.
The Nextcloud client stores your keys on your computer, so even if you re-install the client and delete the app roaming folder, it will still try to encrypt/decrypt using the old key.
To get over this go to control panel, then Credential Manager and delete all generic credentials with Nextcloud as a name under the Windows Credentials tab (this is for Windows but I presume an equivalent solution is available for other operating systems).
Next time you open the client it should ask you for your mnemonic and then you can enter the updated one.
Hope this helps someone as it took me a while to find this info.
⚠️ Before submitting, please verify the following: ⚠️
Bug description
The E2E key (12 word mnemonic) is different between Android client and Desktop client. No matter what I try to do to refresh I cannot use the same key on both Android and Desktop. This causes the Android app to crash if get the key from the Desktop app first. If I get the key from the Android app first then I cannot access those files and I get an error.
Steps to reproduce
Try to create an encrypted folder on either Android app or Desktop app. A mnemonic will be provided.
The mnemonic is different on each device.
Causes sync problems.
Expected behavior
If the encrypted app is produced on the Desktop, that mnemonic should be used on the Android app and vice versa.
Which files are affected by this bug
/var/www/nextcloud-data/appdata_/end_to_end_encryption
Operating system
Windows
Which version of the operating system you are running.
Windows 10
Package
Appimage
Nextcloud Server version
26.0.1
Nextcloud Desktop Client version
3.8.1
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs