From 85db71171b6b4d6b81bcefd158a81b89d204b702 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 18 Jan 2023 15:21:18 +0100 Subject: [PATCH 1/2] Add section for troubleshooting quota issues Signed-off-by: Vincent Petry --- .../issues/general_troubleshooting.rst | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index a93668674..6e9e75f91 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -374,6 +374,29 @@ For a safe moving of data directory, supported by Nextcloud, recommended actions .. warning Note, you may need to configure your webserver to support symlinks. +Troubleshooting quota or size issues +------------------------------------ + +Sometimes it can happen that the used space reported in the web UI or with ``occ user:info $userId`` +does not match the actual data stored in the user's ``data/$userId/files`` directory. + +.. note:: + + Metadata, versions, trashbin and encryption keys are not counted in the used space above. + Please refer to the quota documentation for details. + +Running the following command can help fix the sizes and quota for a given user:: + + sudo -u www-data php occ files:scan -vvv + +If **encryption was enabled earlier on the instance and disabled later on**, it is likely that some +size values in the database did not correctly get reset upon decrypting. +You can run the following SQL query to reset those after **backing up the database**: + +.. code-block:: sql + + UPDATE oc_filecache SET unencrypted_size=0 WHERE encrypted=0; + Troubleshooting downloading or decrypting files ----------------------------------------------- From 42d1e88f4e37799f4f34a3b82d0b816249347739 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 18 Jan 2023 16:00:47 +0100 Subject: [PATCH 2/2] Add link to quota docs in troubleshooting Signed-off-by: Vincent Petry --- admin_manual/issues/general_troubleshooting.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index 6e9e75f91..6684f90e8 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -383,7 +383,7 @@ does not match the actual data stored in the user's ``data/$userId/files`` direc .. note:: Metadata, versions, trashbin and encryption keys are not counted in the used space above. - Please refer to the quota documentation for details. + Please refer to the `quota documentation `_ for details. Running the following command can help fix the sizes and quota for a given user::