-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Encryption Module: moving keys will brake Nextcloud #6769
Comments
root@ncbox:/usr/local/src# sudo -u www-data php /var/www/nextcloud/occ app:list
root@ncbox:/usr/local/src# sudo -u www-data php /var/www/nextcloud/occ config:list |
The folder must be somewhere in your data folder, either physically or as a mount. Otherwise Nextcloud will not be able to access it. I fixed the documentation: nextcloud/documentation#570 |
do you need further information? |
please re-open this issue, it isn‘t fixed. |
Can you check whether there is a |
And also make sure that the owner of the files is www-data, not root. |
Hi, the ownership was set as written in the documentation. Even on another system, so it is reproducable on two systems. There is no data in the new key-folder: Looking forward to your response...thank you. |
that is my permissions.sh for this testenvironment:
|
Okay apparently it has to be relative, sorry |
There was a wrong handling of the return, I fixed that, but now it throws an exception instead of falsely continuing: #6805 To make your instance temporarily work again, execute the following query: DELETE FROM `oc_appconfig`
WHERE `appid` = 'core'
AND `configkey` = 'encryption_key_storage_root'; |
Thanks for your assistance! |
Ubuntu 16.0.3 LTS X64 on ARM64 (oDroidC2)
Nextcloud 12.0.3 (plain/new installation from scratch)
PHP 7.1.10
MariaDB 10.0.31
Redis-Server 3.0.6
web-user: www-data
web-root: /var/www/nextcloud
data-dir: /var/nc_data
The encryption was configured properly on my test environement for all users:
When trying to move the keys as described in Nextclouds Admin-Documentation here the server will crash:
mkdir /etc/keys
chown -R root:www-data /etc/keys
chmod -R 0770 /etc/keys
sudo -u www-data php occ encryption:change-key-storage-root ../../../etc/keys/
No entries were generated while moving the keys. If trying to open Nextcloud the following entries are thrown:
Running any occ the following errors appear:
Although moving the keys was mentioned as "successfull" the keys remain in the user location instead of "/etc/keys:":
What went wrong and what would help to repair this instance?
Cheers, Carsten
The text was updated successfully, but these errors were encountered: