-
-
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
[Bug]: filelocking and a lot of php-fpm-processes through preview generation #44190
Comments
Are you Office previews ultimately actually being successfully generated? I see you have the previewgenerator app installed. How frequently is it running? I assume you're not seeing any libreoffice/office.bin processes since you're using Nextcloud Office (which should handle it's own preview generation)? |
Previews are generated when enabled - also for office documents. Since we are using Nextcloud Office with a Collabora on-premise-server, yes, i do not see any libreoffice/office.bin processes. |
@ETES-Stuttgart we figured that this happens at times when Nextcloud tries to access the Collabora instance via a private IP. Does setting |
I added the setting to my config, as suggested and when testing, I could no longer reproduce the issue. What I do not get is, when (and why) I need to set this? Thanks again & best regards :) |
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Bug description
We have two issues in our Nextcloud, which seem to have the same source:
When I disable the preview generation with
'enable_previews' => false,
, both issues are gone!conceirning 1)
I cannot exactly tell when the processes are spawned, there is a coherence with the amount of users working with Nextcloud, anyway, we have setups around the same size with no issues conceirning the amount of php-fpm-children spawned.
conceirning 2)
I can see a php-fpm-process has opened the newly created file; and as long as it is open, I cannot save the file in Collabora Online.
It is unclear how long the process keeps the file open and it seems to differ from time to time.
Anyway, we often have this issue in the first ~ 10 minutes of the file-creation.
Steps to reproduce
Expected behavior
The amount php-fpm-processes should stay in a reasonable height; we normally are fine with something like 50 children max. For this instance we have increased it to > 400 to not have crashes while using Nextcloud.
The preview-generation of newly created (Office) files should not lock the file, therefore we can edit those files from the moment, they're created
Installation method
None
Nextcloud Server version
28
Operating system
RHEL/CentOS
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
[root@cloud ~]# php-fpm -v
PHP 8.2.16 (fpm-fcgi) (built: Feb 13 2024 15:22:59)
Copyright (c) The PHP Group
Zend Engine v4.2.16, Copyright (c) Zend Technologies
with Zend OPcache v8.2.16, Copyright (c), by Zend Technologies
[root@cloud ~]# sudo -u apache php /var/www/html/nextcloud/occ status
The text was updated successfully, but these errors were encountered: