-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
503 Encryption not ready: multikeydecrypt with share key failed #8349
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Same problem on 13.0.2. |
This comment has been minimized.
This comment has been minimized.
I have the same problem on 13.0.2! How can I get back my files?? |
Same problem here on 13.0.4 stable release. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@Escubaer, when it comes to programming, I tend not to believe in "random" events. The described problem is triggered by something, which I am currently unable to identify. This also seems to be the case for @CamZie, according to his/her latest comment. Besides, you do have a point when you say:
I believe that this issue has been assigned the wrong label, as it is certainly not a feature, but a bug /cc @tflidd |
It just says that this topic is related to the server-side-encryption. There are different tags for feature requests ;-) But regarding the number of users reporting this problem, it is probably more than just a single coincidence. I will put a bug-label to it. |
This comment has been minimized.
This comment has been minimized.
I had this wired error once more today and I tested around but can't get any clue why that happens: Upload from: ------------> Server Thumbnail Creation --------> Download to Windows Client iOS App ----------------------------> OK --------------------------------> Fail Error in Logfile always: |
Yet another user has this problem and they keep receiving this error when trying to access their files. Any news on this as it is getting more and more critical? |
Issue still present on 13.0.5. As a workaround, is it safe to follow https://docs.nextcloud.com/server/13/admin_manual/configuration_files/encryption_configuration.html and decrypt files with occ ? No, or I may do something wrong... After using : php occ encryption:decrypt-all user1 The files are still encrypted on the storage, and users get a "bad signature" on all files. Better have a good backup. In nextcloud.log : A decrypted file "About.txt": First few lines of About.txt: |
It seems that his behaviour is sometimes triggered by a password change, although I do have users in the same installation that have never changed their password, yet they experience this problem. Any help would be greatly appreciated, as an increasing number of my users are permanently losing access to their files! |
A clue about this issue: it seems related to public link shared files only: A. I share a file with a user of my nextcloud instance: the user can open the file. |
@m33m33, thanks for posting. Initially, I also thought that this was the case, but, in my experience, it does not only happen with shared files. |
Are there any updates or news for this issue? Just as @RandieM and @m33m33 mentioned, I have also noticed that these are mostly triggered by a password change or shared files, but some of my users also do not have either of them but are still experiencing this problem. Any help would be greatly appreciated. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Another clue about this issue: it seems image format files are not affected. A. I share a picture (.jpg) with a public link : the destination user can open the link and the image shows in NC viewer. |
@m33m33 The behavior you describe in your point A might be the effect of the cache: my assumption here is that image files get cached unencrypted and this picture file you shared with a public link is then accessed directly from the cache, that's why it works. Have a look at my comment here and the answers below on the nextcloud forum: https://help.nextcloud.com/t/nextcloud-14-focus-on-security-and-compliance/36116/2 In my comment I have asked the nextcloud core team why they don't seem to care about fixing and even replying to all the server-side encryption issues... |
You are right. I am fooled by the preview from cache, if I click on "download" the picture don't show and the multikey failure message appears :( |
I have the feeling that this issue mixes many potential different problems together. E.g. the original issue says that the user gets a "503 Nextcloud unavailable or in maintenance mode" which I never saw and I don't know how this could be triggered by the server side encryption. The other error messages posted here make more sense but I still struggle to find the necessary information and what all this reports have in common in order to try to reproduce it. So my request to everyone in this issue. Can someone of you describe a step by step scenario with the latest Nextcloud version (13.0.6 or 14, because they contain some changes to make the file cache updates more robust) where they can reliable reproduce the issue? If I have something like this I'm happy to give it another try and see if I can reproduce it. |
This comment has been minimized.
This comment has been minimized.
Any update guys? I have made a replica of the server and can give access to anyone over remote. I want people to understand this issue. I have master key enabled. A newly created user was able to check all the file after first login but after a random time, while the user did not make much activity, now he is not able to see the files which he uploaded and never shared. This is quite a serious issue. Please help. Inbox me at tushar.sharma.9@gmail.com |
This comment has been minimized.
This comment has been minimized.
I had similar problem after I moved my NextCloud instance with encrypted data to another machine (actually, I moved it to to dockerized environment). I could see my files, but I could not download it or view. In logs I could see: For me, the solution was adding this line to |
This problem still an issue on nextcloud 21.0.5.
|
you can fix files with "bad signature" using this new command: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#problems-when-downloading-or-decrypting-files |
Thanks for the command. We tried the solution you mentioned but we received the following error:
It looks like it will only work for encryption with master key but not with |
I also experienced this error with a Nextcloud installation on Cloudron, which was recently updated from v23.0.2 to v23.0.3. The exact error was:
Some important things to note:
What I noticed:After the update I noticed that 3 of the 4 key files on the external storage had a recent timestamp from around the time the update took place, more specifically:
When I looked in the original data directory of the Cloudron app I noticed all 4 keys had an older timestamp from october 22. How I solved the issue:I simply copied the keys for the original data directory of the Cloudron app to the external storage location:
Now everything worked again So for some reason some of the keys were changed, probably as a result of the update to v23.0.3. I hope this can help other people with the same issue. |
Hello everyone, is there any update regarding this issue or a possible fix? A few days ago I have discovered the same problem with downloading some files. After a little investigation, I have found the same error as mentioned here. I have no idea when this problem happened for the first time on my installation. I do backups of all keys for up to 14 days but probably the problem occurs long before, if is root of the problem related to the NC update (currently I run 24.0.2 and previously I had 23.0.3.2 but probably the problem was already in there). I have now about 100GB of unavailable data in my NC due to the error "multikeydecrypt with share key failed". Is there a way how to get my data back or should I jump off the roof right now? |
that error message usually means that the encryption file keys are not found if the files are located on an external storage, it is likely that you had the keys stored in the wrong location due to a bug (see next message) if you have a single user you should be able to copy the keys from data/$userid/files_encryption/... to data/files_encryption/keys/... if you need quick access you can try to locally revert #32705 |
the bug was as follows:
This means that with v22.2.8 the encryption code is looking for the keys in the user's home instead of the global folder. |
I do not use external storage. I have mounted a mount point in /mnt/userdata. I have tried now to copy all keys from data/$userid/files_encryption/ to data/files_encryption/keys/ but the issue persist. Here is the full error message:
I am pretty desperate already 😔 |
No body? Are my data gone? Really? |
Unfortunately, I think so. Just like many others here. I also can't understand the hype around Nextcloud at all. A basic feature (for a cloud product) that has been advertised for years, but is still in alpha status and has bugs that have not been fixed for years. |
So I got hit with this too upgrading to 24.0.5.1. I was worried for a second, but found a way to resolve, but will take some time... run this to decrypt all files from /var/www/nextcloud directory or wherever nextcloud is installed
Then let's disable encryption Lastly verify encryption is disabled
|
decrypt-all does not working in my case. |
Hitting the same bug, setting up a new nextcloud. At first, I thought this is a config problem on my side, but reading this issue ... well, first I thought its a joke, but it seems its not. |
I also got the multikeydecrypt error and was already out of ideas, but then I found something in the german forum Came down to the openssl settings, then everything worked again, so I thought I add it here even only the comments from 2022 could be possibly affected by this. |
would be good to add the openSSL legacy thing to the docs: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#problems-when-downloading-or-decrypting-files |
Thank you and chris_nc. That did it for me. What a moment to not remain updating... |
I have a dockerized setup and tried this approach but got the following message:
But I do not get the option to press any key it aborts without any interaction from my side. EDIT: |
That's more of a workaround. 😊 No encryption can be a security risk depending in the environment. Nextcloud seems to have some fundamental unaddressed bugs with encryption. 🤔 |
Housekeeping itemThis Issue is a collection of situations with similar (or, in some cases, the same) basic error messages. Unfortunately, this does not mean the same underlying cause(s) in all cases. Another big factor here is that the OP's original matter in 2018 was quite likely different than those reporting in >=late 2020 (with Nc v21) and, again, with those >=2022 (Nc v25). Some of these the bug scenarios mentioned in this issue have since addressed (some of the refs below link to specific examples). Others were things such as the OpenSSL v1 -> v3 transition of various Linux distros (which deprecated then in-use ciphers by default, which at one point broke things). Refs:
What I suggest we do at this point: If you encounter a problem today in a supported release of Nextcloud Server, report it along with as many details as possible (stack trace, history of the deployment, type of encryption in use, history of the encrypted file/folders in question, distro in-use, etc.). This is not one of those situations where saying "me too" is helpful. You may see a similar error but not be encountering it for the same reason.Unfortunately:
From there my hope is we can nudge things forward to determine if:
I get this is not ideal, but neither is keeping this Issue open as-is. It's too cluttered and aged through too many code changes. For the above reasons, plus this Issue not seeing any new traffic in nearly a year, I'm going to close it out. My goal is to shift the matters described above to a more actionable stage of reporting. And, in turn, to be able to analyze any Server-Side Encryption related bugs that would otherwise end up lost in this Issue. P.S. I'm here in my capacity as volunteer on the open source side of this project. If you need engineering support or an SLA, I suggest working directly with Nextcloud GmbH for that (and through the appropriate channels such as https://portal.nextcloud.com). Footnotes
|
Steps to reproduce
Expected behaviour
Nextcloud should allow downloading of files without any errors.
Actual behaviour
Cannot download some files. User is receiving errors that the server is temporarily unavailable (503) or that the server is in maintenance.
Server configuration
Operating system: Debian 8.10
Web server: NGINX 1.12
Database: MariaDB 10.0
PHP version: PHP 5.6
Nextcloud version: 12.0.2
Updated from an older Nextcloud/ownCloud or fresh install: Updated from an older Nextcloud version.
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using encryption: yes
Client configuration
Browser:
Operating system: Nextcloud-iOS/2.19.2
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: