-
-
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
"Private Key missing for user: please try to log-out and log-in again" while resetting password... #427
Comments
cc @schiessle @boldandbusted Did the user ever logged in after the user was added and encryption was enabled? |
Hello, |
Hi, |
I have the same problem on stable9 and it seems on webdav calls from the sync client 2.2.3. |
Hello, I had the same error message, after I had activated the Addon for the encryption. And would login with a another user account (no Admin). Solution: i delete or rename both keys, and login again br Raiko |
@MorrisJobke Nope. Still the same issue, now with NextCloud 10.0.1. UPDATE: Raiko's fix fixed it, but what a hack. :) |
I'm aware if this issue. The Problem is that the keys still exists but of course Nextcloud can no longer decrypt the private key. The idea was that password should give you a basic access to your Nextcloud, e.g. to access your calendar and contacts again but at the same time keep the old keys in case a admin can later recover the users files. Of course there is also the case where no way to recover the files, if no revovery key is enabled and if the user has no chance to get back the old password. Probably a new UI/OCC command like suggested in #2908 would be needed. I will have a look and suggest a solution. |
I have the same problem. It first showed up on version 9.0.51 and it is still there in the newest version 11. The password actually resets, but the error message still pops up. I am using nginx, postgreSQL, debian 8.6, php 5.6.29. |
Maybe a missing openssl.cnf, e.g. like in #2907? |
I do have an openssl.cnf file in /etc/ssl/ . Is this the one you are talking about? |
Still active in 12. Any ETA? |
@schiessle , I have the same issue: user forgot his password. I have change his password from the user management console. When logged in he cannot access his old files (that's OK, they've been encrypted), but he cannot access NEW files as well. |
Got the same problem on a shared hosting. I've installed NC, uploaded my files. Then I've activated encryption module, following these steps. I have a popin that suggest me to change my pwd The text is not clear at all. I don't have any "old something", and I don't understand how should I complete this thing. When I click on submit, I can see 503 error in the devtools, with the message
I've tried to create a new user, and I got the same problem... Any idea ? |
Same issue here, enabled the basic encryption and it asks to "set my old private key" (whatever that means), which did NOT exist because the module wasn't enabled... |
Steps to reproduce
homeserver-02 nextcloud # sudo -u apache php occ user:resetpassword <user_admin>
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
Warning: Resetting the password when using encryption will result in data loss!
Do you want to continue?yes
Enter a new password:
Confirm the new password:
[OCA\Encryption\Exceptions\PrivateKeyMissingException]
Private Key missing for user: please try to log-out and log-in again
user:resetpassword [--password-from-env] [--]
Expected behaviour
User password is changed without error.
Actual behaviour
Error thrown, with message proscribing a catch-22 scenario
Server configuration
Operating system:
Gentoo Linux
Web server:
Apache 2
Database:
MySQL
PHP version:
homeserver-02 nextcloud # sudo -u apache php -v
PHP 5.6.23-pl0-gentoo (cli) (built: Jul 8 2016 12:27:41)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-
Nextcloud version: (see Nextcloud admin page)
9.0.52
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from Owncloud 8.2.1
Where did you install Nextcloud from:
Gentoo Portage
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
LDAP configuration (delete this part if not used)
LDAP config
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log
Browser log
The text was updated successfully, but these errors were encountered: