-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
User receives invalid key warning despite having never changed password #8328
Comments
discussion on IRC:
cc @schiesbn |
I faced this issue with encryption enabled, and folders shared to a group. We still not fully solved our problem, but based on some hints about "do a reshare", we removed the user from the group and added him as single user to the share. But the process of sharing 10000-s of files for about a size of 30Gb it fails somewhere, leaving some files without a share-key for the user, but this is an other issue. |
Yes, that's correctly. In this case the user should get a message along the line "Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you." if he tried to access the file where no share-key exists. But encryption should work for all other files.
You don't need to remove the user from the group. You just need to trigger the re-calculation of the users list. This can simply be happen by sharing the file additionally to the user (or also to any other user) and afterwards remove the single share again. |
This is unsolved for us: "But the process of sharing 10000-s of files for about a size of 30Gb it fails somewhere, leaving some files without a share-key for the user, but this is an other issue" I could imagine a cli php script which i can run as long as i need |
Ended up solving my user's issues last week. He was receiving several error message depending on what state we left his account on the owncloud server. But in the end we deleted his data directory which contained his private key. That resulted in an error message when he logged back in asking him to logout and back in again. However, that action did not change anything. It turns out there was an old public key in data/public-keys and once we deleted that he was able to login without any errors and use the service normally. I'll leave this open though since other people seem to be having the issue. |
@fleish great to hear that you could solve the issue. If only one key is gone it's hard to decide what to do. In the case of your user it would have been easier to just create a new key pair. But if a user still have encrypted file it could be better to exit with an error and give the user/admin the chance to restore the keys from a backup. Because it is not always possible to do the right thing in such a situation we decided that it is better to stay in a error mode and let the admin investigate the issue and decide what to do to reduce the risk of data-lose. |
@schiesbn so what’s the call on this? Close, or are there tasks to do? |
User receives the message "Invalid private key for Encryption App. Please update your private key password in your personal settings to recover access to your encrypted files”
The below is also logged:
{"app":"Encryption library","message":"Private key for user "****" is not valid! Maybe the user password was changed from outside if so please change it back to gain access","level":3,"time":"2014-04-23T16:14:47+00:00"}
However, this user has never changed their password so we are not sure why this is happening.
The text was updated successfully, but these errors were encountered: