Open bcutter opened 9 months ago
Update: I went through https://github.com/nextcloud/end_to_end_encryption/issues/32#issuecomment-466037407 and reset all E2EE keys and meta data to basically start from scratch.
After freshly creating a new folder and setting it as E2Eencrypted on a Windows endpoint, I accessed it using the iOS client. After providing the new passphrase, I again get this ⚠️⚠️⚠️
Interestingly:
To sum up:
So, where's the core issue here? And:
For now my E2EE is completely broken / unusable on iOS.
Another update: tested the E2EE sync with
SO: E2EE is working fine for ALL synced clients, except iOS. Everything is pointing back to the iOS app ⚠️
This PLUS the fact I did not use E2EE content in the iOS app for a few days PLUS the fact nothing changed on the server side really makes me guess https://github.com/nextcloud/ios/releases/tag/5.1.0 broke something here.
This could also be due to the Windows client using E2EEv2 for new folders and migrating older ones since recent versions.
This could also be due to the Windows client using E2EEv2 for new folders and migrating older ones since recent versions.
I don't know if this is the case (please note: last Windows desktop client update to 3.12 was at something like 18/19th of February, many days before the issue came up). I also don't know why it works for Android. I only see the NC iOS app not working at all now when it comes to E2EE.
I provided everything I can, now someone with knowledge of the app and E2EE needs to look at that. Please. Thank you.
don't worry soon a fix
don't worry soon a fix
I really like that post - even every single word is finest English, I can almost feel the Mario-alike Italian groove in it (checked your profile and indeed - Italian!) - love it 🙂
Back on topic:
don't worry soon a fix
Any estimation (definition of "soon")?
Bothers me on an everyday basis...
Please use the version in TestFlight !
I can't.
Please note I don't have a test flight so I won't be able to test the fix prior it is actually shipped as part of a new release in the app store.
https://github.com/nextcloud/ios/issues/2809#issuecomment-1967532630
it's in readme, it's sufficient read it
What does the way back from beta/TestFlight release to stable look like?
Edit: had a look at TestFlight. Oh wow, all my usage information is sent to Nextcloud and Apple. Ehm, no. Now I remember why I never used TestFlight.
@marinofaggiana please note the update (v5.2.0.9, installed from the app store, app also force closed etc. to prevent any caching issues) did unfortunately not fix the issue. It remains unchanged:
Hi @bcutter your error happen when the metadata is illegible, what was it created or modified with? I think not with iOS because I have make test of V 1.2 and works.
I was able to reproduce it. A directory created and encrypted on the desktop app 3.12 can not be accessed on iOS. A directory created and encrypted on iOS can be accessed on desktop. So maybe there is something wrong with the Desktop App?
But i was not able to choose the E2E directory to Auto Upload Photos. Is this intended behaviour?
Created on latest 3.12/3.12.1 desktop client (Windows).
Side information: For me as a user it doesn't matter which client creates, accesses, edits or deletes E2EE content. The server component and all E2EE clients need to take care they are compatible. That's what we expect especially when running up to date versions.
How to proceed? Do you @marinofaggiana want to give the desktop client or server component experts a push?
I was able to reproduce it. A directory created and encrypted on the desktop app 3.12 can not be accessed on iOS. A directory created and encrypted on iOS can be accessed on desktop. So maybe there is something wrong with the Desktop App?
Will make test with our Desktop team
But i was not able to choose the E2E directory to Auto Upload Photos. Is this intended behaviour?
Yes, Encryption cannot be performed in the background, so autoloading was deliberately excluded.
Yes, Encryption cannot be performed in the background, so autoloading was deliberately excluded.
Thanks for that Info. So sad! On Android this seem to work so i was hoping its a bug on iOS. Then it should maybe not allowed to encrypt the chosen Auto Upload directory. But sorry for hijacking this issue.
Will make test with our Desktop team
Thanks. With 5.2.1 E2EE still broken.
Soon a desktop update.
Soon a desktop update.
@marinofaggiana While I could see some E2EE related fixes in https://github.com/nextcloud/desktop/releases/tag/v3.12.2 like
I could not spot any difference (and updating to 3.12.2 made absolutely zero difference on the iOS app). I even can't judge if those changes affect this issue here at all in a positive way. Therefore: can you please link an issue or even PR of the desktop repo here so we can watch the actual progress? Thank you.
it's fixed @bcutter try it
More details please. As I wrote:
and updating to 3.12.2 made absolutely zero difference on the iOS app
E. g., is there a need to re-create an E2EE folder using the desktop client to resolve the conflicts on the iOS side?
Your information is very minimalistic :-)
No, was only an error of decode metadata version, so nothing happened to the data. #https://github.com/nextcloud/desktop/pull/6543
OK. Here is what I did: 1) Updated desktop client on one of several Windows endpoints to 3.12.2 2) Checked back to the iOS app
Expectation: Issue is solved Reality: Nothing changed. Still error message.
So please assist @marinofaggiana.
For more recent folders, the app also says "Server E2EE version 2.0, not compatible".
It looks like the issue is with both legacy and modern versions of E2EE.
So it's (still) a thing on the iOS side? Or even the server (E2EE app)? For sure the changes on the desktop endpoint effectively changed nothing. Unfortunately...
Hi, calm :D
1 - please report version NC iOS, Server, and Desktop 2 - it's a old e2ee folder or a new folder 3- have you create a new e2ee folder ?
Hi, calm :D
Not possible. Speed is key here.
1 - please report version NC iOS, Server, and Desktop
2 - it's a old e2ee folder or a new folder
3- have you create a new e2ee folder ?
See 2.
Edit: Same with latest iOS version. New look (icons changed, didn't they?), same behavior.
@bcutter can you create a new folder e2ee and try it ? (desktop <> iOS) thanks
@bcutter can you create a new folder e2ee and try it ? (desktop <> iOS) thanks
@marinofaggiana Yes I can - and I did. Results:
1) Readable on iOS (also writable) without an error message
2) Strangely, a text file with content "Test encrypted" and a carriage return is shown as this:
Therefore:
Even working around a) manually because of b) I don't trust the whole thing enough yet to migrate my E2EE content manually. Please advise.
Edit/Update:
Once I (temporarily) renamed the existing E2EE folder (like E2EE-encrypted
--> E2EE-encrypted-renamed
), it was immediately readable by the iOS app. So it seems like the root folder needs to be changed by the desktop client to upgrade from 1.2 to 2.0, right? That might hopefully be a relevant information to you in terms of migration path.
@bcutter in reality the thing is very simple, the desktop version introduced a version error in the metadata file, the iOS client was therefore unable to read it generating an error, just re-modify (a rename or a delete or add a new file) the desktop part with the correct version (3.12.2) and everything is resolved. we always talk about version 1.2, with 2.0 this doesn't happen. Regarding file encryption, nothing changes from version 1.2 to 2.0 so if there are ever any problems the encrypted file is safe.
About:
I alerted the desktop team to check the end of file
with 2.0 this doesn't happen
I am seeing the same error with folders using version 2.0 (desktop, ios, server, and e2ee at latest versions)
Please note: E2EE was working fine the last days. Today I updated from NC 27.1.8.1 to NC 28.0.4.1, E2EE app got updated from 1.13.1 to 1.14.5.
Once I tried to add a file in a e2ee folder on a Windows endpoint, I got this:
No sync possible for the whole affected encrypted e2ee anymore.
I tested this:
Therefore I had to disable e2ee app, switch to the e2ee folder on the web interface and deleted it, than re-enabled e2ee app. Now I could create a new e2ee folder with the same name.
Whatever you guys fixed (thanks for this), it seems to not survive a NC (major) update, in my case from v27 to v28 series.
This could be that problem when the server returns 500 on GET metadata in case the metadata was first uploaded via the v1 endpoint and then was being fetched (GET) via the v2
This could be that problem when the server returns 500 on GET metadata in case the metadata was first uploaded via the v1 endpoint and then was being fetched (GET) via the v2
Good point. Now I re-created that folder again so it is a v2 e2ee folder. BUT it should have been migrated already (https://github.com/nextcloud/ios/issues/2809#issuecomment-2016516189). Everything was working until the NC server and e2ee app update.
It was never working for me with v2 folders either and I've always been on v28 since the issue started.
Also the desktop client isn't syncing anymore showing metadata setup errors as linked in https://github.com/nextcloud/desktop/issues/6452#issuecomment-2023975679_
E2EE has been unusable for over a month now, with the desktop client not being able to sync both e2ee and regular files.
For me everything is working fine for some while. Even I fear saying that as purely saying it might provoke something to break again.
I'm seeing a lot of people mentioning 2 things.
I'm having this issue as well but I'm not using iOS nor old metadata. I'm running a 3 weeks brand new Nextcloud install. The Nextcloud desktop client version is 3.13.0
which I believe is the latest version.
Step that lead to this error;
This is where the client started throwing the errors.
I can't really share my logs because there is so much personal information in them which would take a lot of time to anonymize.
Steps to reproduce
Expected behaviour
Folder content is shown, including the plain text name of the new created folder.
Actual behaviour
Error message is shown. Newly created folder is not shown in plain text.
Screenshots
Accessing E2EE folder with a newly created sub folder:
Going to an older subfolder which contains another newly created sub folder:
Status of E2EE on iOS:
Logs
When only accessing E2EE folder initially there was once in the server log:
(few parts masked with xxx | XXX)
Now when creating a new E2EE folder on the iOS app, after it synced to a Windows endpoint, trying to delete that folder on the Windows endpoint, desktop client shows an error and server log contains:
If now content is added to a (with iOS app) newly created E2EE folder, it will never be synced to a Windows endpoint (trying forever) - nothing in server logs for this:
Reasoning or why should it be changed/implemented?
There's obviously a serious E2EE issue - again! So move this to whereever you think: iOS, desktop, end_to_end_encryption.
I think it all started with https://github.com/nextcloud/desktop/issues/5564 back then - BUT I had a rather working setup (except for https://github.com/nextcloud/desktop/issues/5918 on Windows endpoints/the desktop client).
Environment data
iOS version: 16.7.5
Nextcloud iOS app version: 5.1.0.7
Server operating system: Raspberry Pi OS
Web server: nginx
Database: MariaDB
PHP version: 8.3
Nextcloud version: 27.1.5
Seriously: how can I start with E2EE from scratch? I only and every see issues with it, despite the fact I need it.