@eehmke - Sorry, that still doesnāt work for me. Hmmmā¦
just
October 5, 2022, 11:33am
16
Did you consider looking through past pasting of this error on the forum and Github? afaik, you have previously enabled and then disabled the server encryption module.
Search results for 'Invalid private key for encryption app. Please update your private key password in your personal settings to recover access to your encrypted files' - Nextcloud community .
opened 05:25PM - 26 Feb 18 UTC
bug
1. to develop
feature: encryption (server-side)
pending documentation
25-feedback
<!--
Thanks for reporting issues back to Nextcloud! This is the issue tracker oā¦ f Nextcloud, if you have any support question please check out https://nextcloud.com/support
This is the bug tracker for the Server component. Find other components at https://github.com/nextcloud/
For reporting potential security issues please see https://nextcloud.com/security/
To make it possible for us to help you please fill out below information carefully.
You can also use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
If you are a customer, please submit your issue directly in the Nextcloud Portal https://portal.nextcloud.com so it gets resolved more quickly by our dedicated engineers.
Note that Nextcloud is an open source project backed by Nextcloud GmbH. Most of our volunteers are home users and thus primarily care about issues that affect home users. Our paid engineers prioritize issues of our customers. If you are neither a home user nor a customer, consider paying somebody to fix your issue, do it yourself or become a customer.
-->
### Steps to reproduce
1. enable Default encryption module
2. logout and login again (as recommend)
3. go to Security settings to change password
### Expected behaviour
Default encrytion module should be enable and work without problems. No clue why changing password is necessary.
### Actual behaviour
At login an error message pops up saying: "Invalid private key for encryption app. Please update your private key password in your personal settings to recover access to your encrypted files"
Trying to change the password is not possible, because an old password that could be entered never has been set. This even holds true for fresh accounts that are set up after enabling Default encryption module.
See discussion here: https://help.nextcloud.com/t/invalid-private-key-for-encryption-app-please-update-your-private-key-password-in-your-personal-settings-to-recover-access-to-your-encrypted-files/27108/13
### Server configuration
**Operating system**:
**Web server:**
shared hoster
**Database:**
mysql 5.6.34
**PHP version:**
5.6
**Nextcloud version:** (see Nextcloud admin page)
13.0.0
**Updated from an older Nextcloud/ownCloud or fresh install:**
from 12.0.5
**Where did you install Nextcloud from:**
updater
**Signing status:**
<details>
<summary>Signing status</summary>
```
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
"No errors have been found."
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
Activity
2.6.1
AppOrder
0.4.1
Audio Player
2.2.5
Auditing / Logging
1.3.0
Brute-force settings
1.0.3
Calendar
1.6.0
Collaborative tags
1.3.0
Comments
1.3.0
Contacts
2.1.0
Default encryption module
2.0.0
Deleted files
1.3.0
External storage support
1.4.1
Federation
1.3.0
File sharing
1.5.0
First run wizard
2.2.1
Gallery
18.0.0
Log Reader
2.0.0
Mail
0.7.10
Monitoring
1.3.0
Nextcloud announcements
1.2.0
Notifications
2.1.2
Password policy
1.3.0
PDF viewer
1.2.0
Share by mail
1.3.0
Talk
3.1.0
Tasks
0.9.6
Text editor
2.5.1
Theming
1.4.1
Update notification
1.3.0
Usage survey
1.1.0
Versions
1.6.0
Video player
1.2.0
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
```
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
```
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here.
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, ā¦)
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'nextcloud.domain-name.de',
1 => 'owncloud.domain-name.de',
),
'datadirectory' => '/home/webpages/provider-name/user-name/nextcloud/data',
'overwrite.cli.url' => 'https://nextcloud.domain-name.de',
'dbtype' => 'mysql',
'version' => '13.0.0.14',
'dbname' => 'db_abc_1',
'dbhost' => 'user-name.provider-name-db.de',
'dbtableprefix' => 'oc_',
'dbuser' => 'USERxyc',
'dbpassword' => '',
'logtimezone' => 'UTC',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_domain' => 'domain-name.de',
'mail_from_address' => 'mail',
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpsecure' => 'ssl',
'mail_smtpport' => '465',
'mail_smtphost' => 'mail.provider-name.de',
'mail_smtpname' => 'mail@domain-name.de',
'mail_smtppassword' => '',
'mail_smtpauthtype' => 'PLAIN',
'updater.release.channel' => 'stable',
);
</details>
**Are you using external storage, if yes which one:** local/smb/sftp/...
3x WebDAV
1 x Unknown: googledrive -> does not work anymore
**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)
<details>
<summary>LDAP config</summary>
```
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
```
</details>
### Client configuration
**Browser:**
Firefox 56
**Operating system:**
Linux
### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>
```
Insert your webserver log here
```
</details>
#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>
```
Insert your Nextcloud log here
```
</details>
#### Browser log
<details>
<summary>Browser log</summary>
```
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
```
</details>
@just - I restored a backup of my system that was made prior to this error condition so I am good now. However, I donāt recall ever selecting anything to be encrypted, so I donāt know what any encryption key would ever be needed for my installation.
1 Like
Hi all im working on updating from RC2 to RC3 and im still getting this. HAs this been fixed ?
1 Like
just
October 6, 2022, 2:13pm
19
Clearly not fixed, at least for you.
1 Like
I think it should be fixed for RC4.
1 Like
eehmke
October 6, 2022, 5:17pm
21
Additional you need to delete the .step file in the data folder. Just did this today to upgrade from RC1 to RC2.
@AndyXheli - are you by any chance using PHP 8.1? I am and Iām getting the same error as you. Iām also seeing some odd messages in the nextcloud.log file about deprecated event type?
just
October 7, 2022, 11:07am
23
Did you check your errors and odd messages against those reported to the nextcloud server github repo?
Hey @Alexander_Robinson1 no im running
PHP 8.0.24 (cli) (built: Sep 29 2022 22:26:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.24, Copyright (c) Zend Technologies
with Zend OPcache v8.0.24, Copyright (c), by Zend Technologies
Thereās an open issue on github [Bug]: NC 25 error when trying upgrade from beta 7 to RC1 with GUI Ā· Issue #34201 Ā· nextcloud/server Ā· GitHub
so if anyone is having issues please make your updates there.
Apologies all, but I am rather confused by this:
a) I cannot find the value in the admin screen anywhere but of course I can run the code any I get:
Insert as āupdater.secretā: something _really_long
The plaintext value is: something_else_really_long
b) I then edit the config/config.php file and overwrite update.secret with something_really_long
c) then restart apache2 and php8.1-fpm
d) do I then either
i] enter my password or something_different into web update screen
ii] restart the webupdate process, i.e. go back to the previous screen
also I cannot find any .step file
how do I best proceed ?
thank you
I use php8.1 and the server side encryption app has not been enabled
@John30k did yout try that : " Instead of clicking that button you can now invoke the command line based updater by going into the updater/ directory in the Nextcloud directory and executing the updater.phar as the web server user. (i.e. sudo -u www-data php /var/www/nextcloud/updater/updater.phar
)"
from Upgrade via built-in updater ā Nextcloud latest Administration Manual latest documentation
works fine for me.
yip thanks, I tried that about 30 minutes ago
@thierry1 - thanks! The manual update command worked for me.
nomad
October 7, 2022, 6:03pm
30
Didnāt work for me. I get the message
root@box:~# sudo -u www-data php /opt/mailcow-dockerized/data/web/nextcloud/updater/updater.phar
Nextcloud Updater - version: v25.0.0beta3-17-gef6cf2d
Could not find config.php. Is this file in the "updater" subfolder of Nextcloud?
The Nextcloud instance I use for testing was installed by the Mailcow Helper script Nextcloud - mailcow: dockerized documentation
blizzz
October 7, 2022, 6:24pm
31
When you watch the output closely you spot:
Could not find config.php. Is this file in the "updater" subfolder of Nextcloud?
=> run it from within your nextcloud root directory, otherwise the updater will not know where to find your config.php.
nomad
October 7, 2022, 7:40pm
32
I tried running it from the Nextcloud root folder, but I git the same message, could not find config.php Maybe there is something special with Mailcowās Nextcloud installation?
Kerasit
October 11, 2022, 6:14am
33
You are using php8.1-fpm. Are you certain 8.1 is not the culprit? As others has stated here, they see same behavior when running php8.1
This topic was automatically closed after 9 days. New replies are no longer allowed.