Skip to content

Conversation

@powerflo
Copy link

@powerflo powerflo commented Jan 7, 2023

The "fix permissions" step is really slow when the nextcloud folder contains a lot of data. In a docker setup the data directory is in nextcloud/data so the folder can be really big. Even on my small test setup the "fix permissions" step took more than 20 minutes. Using "chmod -R ..." reduces the time to around 20 seconds.

Signed-off-by: Florian Wallner [email protected]

The "fix permissions" step is really slow when the nextcloud folder contains a lot of data. In a docker setup the data directory is in nextcloud/data so the folder can be really big.
Even on my small test setup the "fix permissions" step took more than 20 minutes.
Using "chmod -R ..." reduces the time to  around 20 seconds.

Signed-off-by: Florian Wallner <[email protected]>
@theCalcaholic theCalcaholic force-pushed the devel branch 2 times, most recently from 8d181e6 to d9cb654 Compare January 8, 2023 20:16
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 8, 2023 20:50
@theCalcaholic theCalcaholic force-pushed the devel branch 5 times, most recently from dce6a9f to cdf99f6 Compare January 22, 2023 00:21
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 00:56
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 13:10
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 13:47
@theCalcaholic theCalcaholic force-pushed the devel branch 2 times, most recently from ec7a07e to 9ed15a5 Compare October 10, 2023 20:01
@theCalcaholic theCalcaholic force-pushed the devel branch 16 times, most recently from 1ea55df to 287fe06 Compare January 26, 2024 00:10
@theCalcaholic theCalcaholic force-pushed the devel branch 2 times, most recently from e24d3a0 to f032fd7 Compare August 11, 2024 09:50
@theCalcaholic theCalcaholic force-pushed the devel branch 8 times, most recently from 75bffeb to 31d5ed9 Compare August 24, 2024 17:39
@theCalcaholic theCalcaholic force-pushed the devel branch 17 times, most recently from f14678a to 0e40867 Compare September 7, 2024 00:52
@schoetju
Copy link
Contributor

I would like to join in saying that improving the performance of “fix permissions” would be really helpful. On my instance the step also takes about 15 minutes (and I get nervous when it doesn't seem to continue during the update).
As I understand it, the changes suggested by powerflo are functionally identical with significantly better performance.
@theCalcaholic Is there any concern that the change is patchy or buggy? Can we / community somehow support?

@korhadris
Copy link

korhadris commented May 30, 2025

As a fix that will avoid the recursive chmod as well as fixing #2005, I'd recommend that when the copy is performed, that it is done as the www-data user directly. There's probably multiple places where the sudo -u www-data should be added to fix #2005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants