From f50bfe1d1633fb04befb72a4f2dfdb5c93930550 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Fri, 19 Apr 2024 14:00:11 +0200 Subject: [PATCH] Create changingpassword.md Signed-off-by: Kjeld Schouten --- .../nextcloud/docs/changingpassword.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 charts/premium/nextcloud/docs/changingpassword.md diff --git a/charts/premium/nextcloud/docs/changingpassword.md b/charts/premium/nextcloud/docs/changingpassword.md new file mode 100644 index 00000000000..62c1105cc5e --- /dev/null +++ b/charts/premium/nextcloud/docs/changingpassword.md @@ -0,0 +1,43 @@ +--- +title: Changing Database Password +--- + +Sadly enough, Nextcloud Containers do not correctly update database passwords when changed. +To do so, please execute the following steps to do so manually: + +## Other Platforms + +Due to other platforms do all having the same storage backend, it depends on your storage backend how you do this. +It might be advisable to change the password within nextcloud *before* changing the password on the cnpg database. + +In summary: +- Access the config PVC +- Edit config.php to ensure "dbpassword" reflects your password + +## TrueNAS SCALE + +1. Mount Nextcloud with HeavyScript, ex: +heavyscript pvc --mount nextcloud + +2. Change to the mounted path, then to the nextcloud-config folder, ex: +cd /mnt/mounted_pvc/nextcloud/nextcloud-config + + +3. grep out dbpassword, ex: +cat config.php | grep "dbpassword" + + +4. Copy the value from the grep command, should look something like: dF6h35JFX5v6AzfFpviFAoBbZU9cghKrwHWJf9GY5oRmYJEaiTHkYz93JPUgRf +Change to your home directory, or exit the terminal, ex: +cd ~ + + +5. Unmount Nextcloud with HeavyScript, ex: +heavyscript pvc --unmount nextcloud + + +6. Open TrueNAS UI > Apps > Nextcloud > Edit, and scroll down to the CNPG section and replace PLACEHOLDERPASSWORD under the password field, with the grep value (from step 3-4), then save +If a failure happens here regarding cannot upgrade between pg versions then change the Postgres Version under CNPG settings to 15 if its 16 and attempt to save again + +7. Start with heavyscript, ex: +heavyscript app --start nextcloud